Skip to content

Instantly share code, notes, and snippets.

@bernardobelchior
Last active April 14, 2019 21:41
Show Gist options
  • Save bernardobelchior/b206713ecdb678736ab6bf2f2e45ba82 to your computer and use it in GitHub Desktop.
Save bernardobelchior/b206713ecdb678736ab6bf2f2e45ba82 to your computer and use it in GitHub Desktop.
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