yourId
A simple id generator. Thats fast, easy, and fun to use.
Installation
$ npm install yourid
Usage
var yourId = require("yourid");
// Generate a new id
console.log(
yourId.generate({
length: 10, // the length of the random id string
keyspace: "customkeyspace", // the keyspace to use
prefix: "yourPrefix", // set a prefix
includePrefix: true, // you can set it to FALSE or TRUE
})
); // => Random ID String length 10 & Prefix yourPrefix
Top comments (0)