JSPM

variations-stream

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60
  • Score
    100M100P100Q72184F

Streams all the variations (with repetitions) of a set

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.

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