Created
April 14, 2019 16:46
-
-
Save bernardobelchior/a04ffb3792a859366337d22e3712adf4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(RED) { | |
function LowerCaseNode(config) { | |
RED.nodes.createNode(this,config); | |
var node = this; | |
node.on('input', function(msg) { | |
msg.payload = msg.payload.toLowerCase(); | |
node.send(msg); | |
}); | |
} | |
RED.nodes.registerType("lower-case", LowerCaseNode) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment