variations-stream

0.1.3 • Public • Published

variations-stream

A readable stream that generates all the variations (with repetitions) of a set.

NPM version Build Status Downloads

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    404
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    404
  • 0.1.2
    2
  • 0.1.1
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i variations-stream

Weekly Downloads

146

Version

0.1.3

License

none

Last publish

Collaborators

  • mariocasciaro