0.0.5 • Published 1 year ago

node-red-contrib-array-permutations v0.0.5

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
1 year ago

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.

Array Permutations


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.

Tests


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

Author

Peter Prib