permutation

0.0.1 • Public • Published

permutations

Find all permutations of string

Install

npm install permutation

Usage

var permutations = require('permutation');
 
permutations('abc') // [ 'abc', 'acb', 'bac', 'bca', 'cab', 'cba' ]
permutations('ab') // [ 'ab', 'ba']
permutations('aa') // [ 'aa', 'aa' ]
permutations('aa', {unique: true}) // [ 'aa' ]

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i permutation

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • miguelmota