Generates a unique key of given length
$ npm install --save unique-keygen
var uniqueKeygen = require('unique-keygen');
function generateUniqueKey(len) {
console.log(uniqueKeygen(len)) // prints the generated unique key of length 'len'
}
Pull requests and stars are highly welcome.