Package Exports
- variations-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (variations-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
variations-stream
A readable stream that generates all the variations (with repetitions) of a set.
Install
Node.js
npm install variations-stream
Usage
var variationsStream = require('variations-stream');
variationsStream('abc', 2)
.on('data', function(comb) {
console.log(comb);
});
/* Prints:
a
b
c
aa
ba
ca
ab
bb
cb
ac
bc
cc
*/
Credits
- Mario Casciaro - Author