1.0.2 • Published 9 years ago

string-combinations v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

string-combinations

This module is used to generate all possible combinations of a given input String.

Input : Any valid String
Output : An array of all possible combinations

Example Usage

var combinations = require('string-combinations');
var result = combinations.generate("abcde");

Sample Output

'a', 'b', 'ab', 'c', 'ac', 'bc', 'abc', 'd', 'ad', 'bd', 'abd', 'cd', 'acd', 'bcd', 'abcd', 'e', 'ae', 'be', 'abe', 'ce', 'ace', 'bce', 'abce', 'de', 'ade', 'bde', 'abde', 'cde', 'acde', 'bcde', 'abcde'

Contact Info

Please raise any issues at this page