nperm

Indexed permutations

npm install nperm
2 downloads in the last week
5 downloads in the last month

Indexed permutations

var nperm = require('nperm').nperm;
console.log(nperm(['a', 'b', 'c'], 4));
npm loves you