Last active
April 14, 2019 21:41
-
-
Save bernardobelchior/b206713ecdb678736ab6bf2f2e45ba82 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) { | |
var LowerCaseNode = /** @class */ (function () { | |
function LowerCaseNode(config) { | |
RED.nodes.createNode(this, config); | |
this.on('input', function (msg) { | |
msg.payload = msg.payload.toLowerCase(); | |
this.send(msg); | |
}); | |
} | |
return LowerCaseNode; | |
}()); | |
RED.nodes.registerType("lower-case", LowerCaseNode); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment