[{"data":1,"prerenderedAt":46},["ShallowReactive",2],{"integration-node-red-contrib-bigexec\u002F":3},{"_id":4,"categories":5,"description":8,"npmOwners":9,"npmScope":11,"name":4,"ffCertified":12,"downloads":13,"version":15,"updatedAt":16,"maintainers":17,"homepage":20,"bugs":21,"repository":23,"time":26,"lastUpdated":27,"created":28,"license":42,"githubOwner":43,"githubRepo":4,"examples":44,"readme":45},"node-red-contrib-bigexec",[6,7],"catalogue_utility","catalogue","A Big Exec",[10],"jacques44",null,false,{"week":14},3640,"1.3.3","2021-04-09T16:33:35.735Z",[18],{"name":10,"email":19},"jacquesn4444@gmail.com","https:\u002F\u002Fgithub.com\u002FJacques44\u002Fnode-red-contrib-bigexec",{"url":22},"https:\u002F\u002Fgithub.com\u002FJacques44\u002Fnode-red-contrib-bigexec\u002Fissues",{"type":24,"url":25},"git","git+https:\u002F\u002Fgithub.com\u002FJacques44\u002Fnode-red-contrib-bigexec.git",{"modified":27,"created":28,"1.0.0":28,"1.0.1":29,"1.1.1":30,"1.1.2":31,"1.1.3":32,"1.1.4":33,"1.1.5":34,"1.1.6":35,"1.2.0":36,"1.2.1":37,"1.3.0":38,"1.3.1":39,"1.3.2":40,"1.3.3":41},"2022-06-21T18:51:45.154Z","2016-05-01T20:16:02.633Z","2016-05-01T20:46:46.838Z","2016-05-08T18:01:41.568Z","2016-05-09T11:41:42.434Z","2016-05-09T12:06:27.964Z","2016-05-09T21:06:23.162Z","2016-05-12T19:09:13.714Z","2016-05-13T14:44:38.710Z","2016-05-16T15:16:07.270Z","2016-05-17T13:47:49.817Z","2016-05-20T14:19:37.179Z","2016-05-20T14:43:32.845Z","2016-05-25T06:19:25.896Z","2021-04-09T16:33:33.192Z","Apache-2.0","Jacques44",[],"\u003Ch1 id=\"node-red-contrib-bigexec\">\u003Ca class=\"header-anchor\" href=\"#node-red-contrib-bigexec\">node-red-contrib-bigexec\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>\"Big Exec\" is a Big Node for node-red. It's used to execute command\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F18165555\u002F15455714\u002Fed942b5c-205c-11e6-94cb-4b2dce8a113a.png\" alt=\"alt tag\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F18165555\u002F15455716\u002Ff117a5a6-205c-11e6-9bd6-cdbe6409a87b.png\" alt=\"alt tag\" \u002F>\u003C\u002Fp>\n\u003Ch2 id=\"installation\">\u003Ca class=\"header-anchor\" href=\"#installation\">Installation\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cpre>\u003Ccode class=\"language-bash\">npm install node-red-contrib-bigexec\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"principles-for-big-nodes\">\u003Ca class=\"header-anchor\" href=\"#principles-for-big-nodes\">Principles for Big Nodes\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>See \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fnode-red-biglib\">biglib\u003C\u002Fa> for details on Big Nodes.\n\u003Ccode>Big Lib\u003C\u002Fcode> and subsequent \u003Ccode>Big Nodes\u003C\u002Fcode> are a family of nodes built for my own purpose. They are all designed to help me build a complete process for \u003Cstrong>production purposes\u003C\u002Fstrong>. For that I needed nodes able to:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Flow \u003Cstrong>big volume\u003C\u002Fstrong> of data (memory control, work with buffers)\u003C\u002Fli>\n\u003Cli>Work with \u003Cem>a flow of blocks\u003C\u002Fem> (buffers) (multiple payload within a single job)\u003C\u002Fli>\n\u003Cli>Tell what \u003Cem>they are doing\u003C\u002Fem> with extended use of statuses (color\u002Fmessage)\u003C\u002Fli>\n\u003Cli>Use their \u003Cem>second output for flow control\u003C\u002Fem> (start\u002Fstop\u002Frunning\u002Fstatus)\u003C\u002Fli>\n\u003Cli>\u003Cem>Reuse messages\u003C\u002Fem> in order to propagate _msgid, topic\u003C\u002Fli>\n\u003Cli>Depends on \u003Cstrong>state of the art\u003C\u002Fstrong> libraries for parsing (csv, xml, xlsxs, line, ...)\u003C\u002Fli>\n\u003Cli>Acts as \u003Cstrong>filters by default\u003C\u002Fstrong> (1 payload = 1 action) or \u003Cstrong>data generators\u003C\u002Fstrong> (block flow)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>All functionnalities are built under a library named \u003Ccode>biglib\u003C\u002Fcode> and all \u003Ccode>Big Nodes\u003C\u002Fcode> rely on it\u003C\u002Fp>\n\u003Ch2 id=\"dependencies\">\u003Ca class=\"header-anchor\" href=\"#dependencies\">Dependencies\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fnode-red-biglib\">biglib\u003C\u002Fa> library for building node-red flows that supports blocks, high volume\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsubstack\u002Fnode-shell-quote\">node-shell-quote\u003C\u002Fa> quote and parse shell commands\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fdominictarr\u002Fevent-stream\">event-stream\u003C\u002Fa> EventStream is like functional programming meets IO\n\u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fmustache\">mustache\u003C\u002Fa> to upgrade environment variables with templates\u003C\u002Fp>\n\u003Ch2 id=\"capabilities\">\u003Ca class=\"header-anchor\" href=\"#capabilities\">Capabilities\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>This now launches a command using \u003Ccode>spawn\u003C\u002Fcode> which gives 3 streams, 1 for stdin, 1 for stdout and 1 for stderr. This node can launch command which doesn't need any input or a single message as an input or a flow of messages if driven by a Big Node (with control messages)\u003C\u002Fp>\n\u003Cul>\n\u003Cli>It's possible to use payload as extra arguments to the command\u003C\u002Fli>\n\u003Cli>It's possible to use another message property for extra arguments (in cas payload is stdin and the extra property means extra parameters)\u003C\u002Fli>\n\u003Cli>It's possible to set minimum error codes in order to get a warning or error status for the node\u003C\u002Fli>\n\u003Cli>It's possible to set extra environment variables in mustache form to complete existing one (example: \u003Ccode>{ PATH: \"{{PATH}}:.\" }\u003C\u002Fcode>)\u003C\u002Fli>\n\u003Cli>It's possible to tell which encoding is used for stdout for example, if the result of a command is in \u003Ccode>binary\u003C\u002Fcode> form to translate it to utf-8\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"example-flow-files\">\u003Ca class=\"header-anchor\" href=\"#example-flow-files\">Example flow files\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Try pasting in the flow file below that shows the node behaviour\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">[{\"id\":\"d5de2d26.2a21d\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"\",\"command\":\"sh\",\"commandArgs\":\"-c '(echo stdout; echo stderr &gt;&amp;2)'\",\"minError\":1,\"minWarning\":1,\"cwd\":\"\",\"shell\":false,\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"x\":760,\"y\":300,\"wires\":[[\"5fc11ed1.a03ee\"],[\"ea429413.15bd68\"],[\"264e6051.d9b1a\"]]},{\"id\":\"f8c5aa9.f073a58\",\"type\":\"debug\",\"z\":\"f29bfab4.0d6408\",\"name\":\"output\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":570,\"y\":500,\"wires\":[]},{\"id\":\"fe42cda2.01bd3\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"true\",\"command\":\"true\",\"commandArgs\":\"\",\"minError\":1,\"minWarning\":\"\",\"cwd\":\"\",\"shell\":false,\"x\":270,\"y\":100,\"wires\":[[],[],[]]},{\"id\":\"9984f682.667b08\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"sh\",\"command\":\"sh\",\"commandArgs\":\"-c\",\"minError\":\"8\",\"minWarning\":\"1\",\"cwd\":\"\u002Ftmp\",\"shell\":false,\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"format\":\"utf8\",\"payloadIs\":\"argument\",\"x\":710,\"y\":140,\"wires\":[[],[],[]]},{\"id\":\"2bb9bf06.d4464\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"\",\"topic\":\"\",\"payload\":\"\\\"exit 0\\\"\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":550,\"y\":100,\"wires\":[[\"9984f682.667b08\"]]},{\"id\":\"89ba4484.7645b8\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"\",\"topic\":\"\",\"payload\":\"\\\"exit 1\\\"\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":550,\"y\":140,\"wires\":[[\"9984f682.667b08\"]]},{\"id\":\"15f3c5e6.ea0c3a\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"\",\"topic\":\"\",\"payload\":\"\\\"exit 8\\\"\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":550,\"y\":180,\"wires\":[[\"9984f682.667b08\"]]},{\"id\":\"64eb1fc.f9b14e\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"sleep\",\"command\":\"sleep\",\"commandArgs\":\"\",\"minError\":\"8\",\"minWarning\":\"1\",\"cwd\":\"\u002Ftmp\",\"shell\":true,\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"x\":270,\"y\":380,\"wires\":[[],[],[]]},{\"id\":\"f8e2ffe.f071d\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"\",\"topic\":\"\",\"payload\":\"10\",\"payloadType\":\"num\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":110,\"y\":380,\"wires\":[[\"64eb1fc.f9b14e\"]]},{\"id\":\"84c0f395.7b3f1\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"True!\",\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":110,\"y\":100,\"wires\":[[\"fe42cda2.01bd3\"]]},{\"id\":\"8ec7d32f.71383\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"false\",\"command\":\"false\",\"commandArgs\":\"\",\"minError\":1,\"minWarning\":\"\",\"cwd\":\"\",\"shell\":false,\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"x\":270,\"y\":180,\"wires\":[[],[],[]]},{\"id\":\"e80797ae.17f868\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"False!\",\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":110,\"y\":180,\"wires\":[[\"8ec7d32f.71383\"]]},{\"id\":\"c4498d7f.3bb67\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Hello!\",\"topic\":\"\",\"payload\":\"Hello you!\",\"payloadType\":\"str\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":110,\"y\":500,\"wires\":[[\"8d33cea7.72cc3\"]]},{\"id\":\"8d33cea7.72cc3\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"echo\",\"command\":\"echo\",\"commandArgs\":\"\",\"minError\":1,\"minWarning\":\"\",\"cwd\":\"\",\"shell\":false,\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"format\":\"utf8\",\"payloadIs\":\"argument\",\"x\":270,\"y\":500,\"wires\":[[\"d3ea0250.2c16\"],[],[]]},{\"id\":\"d3ea0250.2c16\",\"type\":\"function\",\"z\":\"f29bfab4.0d6408\",\"name\":\"toString()\",\"func\":\"msg.payload = msg.payload.toString()\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"x\":420,\"y\":500,\"wires\":[[\"f8c5aa9.f073a58\"]]},{\"id\":\"31646763.ce9b98\",\"type\":\"bigexec\",\"z\":\"f29bfab4.0d6408\",\"name\":\"unknown\",\"command\":\"\u002FI\u002Fm\u002Fnot\u002Fexisting\",\"commandArgs\":\"\",\"minError\":1,\"minWarning\":1,\"cwd\":\"\",\"shell\":\"\",\"extraArgumentProperty\":\"\",\"envProperty\":\"\",\"x\":280,\"y\":300,\"wires\":[[],[],[]]},{\"id\":\"cb4518e9.34bae8\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"unknown\",\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":120,\"y\":300,\"wires\":[[\"31646763.ce9b98\"]]},{\"id\":\"6f6db996.909248\",\"type\":\"debug\",\"z\":\"f29bfab4.0d6408\",\"name\":\"stdout\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":1110,\"y\":240,\"wires\":[]},{\"id\":\"d12de8f8.2ed218\",\"type\":\"debug\",\"z\":\"f29bfab4.0d6408\",\"name\":\"stderr\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":1110,\"y\":360,\"wires\":[]},{\"id\":\"4dfd7668.b20288\",\"type\":\"inject\",\"z\":\"f29bfab4.0d6408\",\"name\":\"sample echo\",\"topic\":\"\",\"payload\":\"3\",\"payloadType\":\"num\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":570,\"y\":300,\"wires\":[[\"d5de2d26.2a21d\"]]},{\"id\":\"ea429413.15bd68\",\"type\":\"function\",\"z\":\"f29bfab4.0d6408\",\"name\":\"rc\",\"func\":\"if (msg.control &amp;&amp; (msg.control.state == 'end' || msg.control.state == 'error')) return { payload: msg.control.rc }\",\"outputs\":1,\"noerr\":0,\"x\":950,\"y\":300,\"wires\":[[\"c9d0ae96.362f5\"]]},{\"id\":\"c9d0ae96.362f5\",\"type\":\"debug\",\"z\":\"f29bfab4.0d6408\",\"name\":\"rc\",\"active\":true,\"console\":\"false\",\"complete\":\"payload\",\"x\":1110,\"y\":300,\"wires\":[]},{\"id\":\"d7d24f0d.282db\",\"type\":\"comment\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Sample usage of Big Exec (Linux \u002F Mac) command lines\",\"info\":\"\",\"x\":240,\"y\":40,\"wires\":[]},{\"id\":\"5fc11ed1.a03ee\",\"type\":\"function\",\"z\":\"f29bfab4.0d6408\",\"name\":\"toString()\",\"func\":\"msg.payload = msg.payload.toString()\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"x\":960,\"y\":240,\"wires\":[[\"6f6db996.909248\"]]},{\"id\":\"264e6051.d9b1a\",\"type\":\"function\",\"z\":\"f29bfab4.0d6408\",\"name\":\"toString()\",\"func\":\"msg.payload = msg.payload.toString()\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"x\":960,\"y\":360,\"wires\":[[\"d12de8f8.2ed218\"]]},{\"id\":\"e3dc229b.1c23e\",\"type\":\"comment\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Big Line should be better here\",\"info\":\"\",\"x\":1020,\"y\":180,\"wires\":[]},{\"id\":\"1b1197e8.e4ee68\",\"type\":\"comment\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Showing 3 states statuses\",\"info\":\"\",\"x\":770,\"y\":80,\"wires\":[]},{\"id\":\"85fee1ad.7a012\",\"type\":\"comment\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Sending data through stdin\",\"info\":\"\",\"x\":330,\"y\":460,\"wires\":[]},{\"id\":\"e9635a5.f169ca8\",\"type\":\"comment\",\"z\":\"f29bfab4.0d6408\",\"name\":\"Unknow command\",\"info\":\"\",\"x\":310,\"y\":260,\"wires\":[]}]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F18165555\u002F15454183\u002F302a882a-2031-11e6-993a-0fdeea192ff9.png\" alt=\"alt tag\" \u002F>\u003C\u002Fp>\n\u003Ch2 id=\"author\">\u003Ca class=\"header-anchor\" href=\"#author\">Author\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Jacques W\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"license\">\u003Ca class=\"header-anchor\" href=\"#license\">License\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>This code is Open Source under an Apache 2 License.\u003C\u002Fp>\n\u003Cp>You may not use this code except in compliance with the License. You may obtain an original copy of the License at\u003C\u002Fp>\n\u003Cpre>\u003Ccode>http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Please see the\nLicense for the specific language governing permissions and limitations under the License.\u003C\u002Fp>\n\u003Ch2 id=\"feedback-and-support\">\u003Ca class=\"header-anchor\" href=\"#feedback-and-support\">Feedback and Support\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Please report any issues or suggestions via the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FJacques44\u002Fnode-red-contrib-bigexec\u002Fissues\">Github Issues list for this repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>For more information, feedback, or community support see the Node-Red Google groups forum at https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Fnode-red\u003C\u002Fp>\n",1784738655108]