How to use the node-red.util function in node-red

To help you get started, we’ve selected a few node-red examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Streampunk / dynamorse-deprecated / server.js View on Github external
).then(function () {
    RED.log.info('Global flow updated with dynamorse configurations.');
    if (!RED.nodes.getFlows().some(function (x) {
      return x.label === 'Dynamorse'
    })) {
      RED.log.info("Creating dynamorse tab.")
      return RED.nodes.addFlow({
        label : 'Dynamorse',
        configs: [ ],
        nodes: [ {
          id : RED.util.generateId(),
          type: 'comment',
          name: 'Streampunk Media',
          info: 'Design and deploy professional media workflows with [_Dynamorse_](https://github.com/Streampunk/dynamorse/blob/master/README.md).\n\n' +
            'For support, development or further information, please e-mail [Streampunk Media Ltd](http://www.streampunk.media) on [furnace@streampunk.media](mailto: furnace@streampunk.media).\n\n' +
            'Dynamorse depends on [codecadon](https://github.com/Streampunk/codecadon) that incorprates binaries compiled from unmodified [LGPL v3 licensed code](https://github.com/Streampunk/codecadon/tree/master/licenses) from the FFMPEG project.',
          x: 122,
          y: 45,
          wires: []
        } ]
      }).then(RED.nodes.loadFlows);
    } else {
      RED.log.info("Dynamorse tab already in place.");
    }
  }).then(
    function () {