node-red-contrib-array-permutations
v0.0.5
Published
Node-red permutations of an array as repeat or messages.
Downloads
5
Maintainers
Readme
node-red-contrib-array-permutations
node-red function that takes an array then generates permutation sets of specified size of all cells in a loop, generation of cloned messages or an array containing all possible permutations. For loop then message sent to second output on return to input port it sends the next permutation in loop until all have been processed.
Install
Run the following command in the root directory of your Node-RED install or via GUI install
npm install node-red-contrib-array-permutations
Test
Folder test contains a flow that tests the various combinations.
Version
0.0.5 fix bug with perms, added circular, heap, unique, random
0.0.4 fix bug with loop and ensure all separated messages have unique id.
0.0.3 if error set msg.error and send to error port. Fix bug with loop
0.0.1 base