node-red-contrib-array-permutations

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i node-red-contrib-array-permutations

Weekly Downloads

3

Version

0.0.5

License

GPL-3.0

Unpacked Size

532 kB

Total Files

37

Last publish

Collaborators

  • peter.prib