One of the smallest permutation-generators out there.
$ npm install brutee
var brutee = require('brutee');
brutee('abc', 1'); // returns 'b'
var brutee = require('brutee');
for (var i = 0; i < 100; i++) {
console.log(brutee('abc', i));
}
var brutee = require('brutee');
brutee(['abcdefg', 56, true], 60); // returns 'abcdefg56trueabcdefg'