DEV Community

latze
latze

Posted on • Edited on

yourid.js

yourId

A simple id generator. Thats fast, easy, and fun to use.

Installation

$ npm install yourid 
Enter fullscreen mode Exit fullscreen mode

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 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)