UNPKG

node-red-capitalize-first-word-in-sentence

Version:

Node to capitalixe first word in the sentence

26 lines (24 loc) 764 B
<script type="text/javascript"> RED.nodes.registerType('capitalize-case',{ category: 'function', color: '#BDBDBD', defaults: { name: {value:""} }, inputs:1, outputs:1, icon: "file.png", label: function() { return this.name||"capitalize-case"; } }); </script> <script type="text/x-red" data-template-name="capitalize-case"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="capitalize-case"> <p>A simple node that capitalizes all first words in the sentence</p> </script>