unidque
v1.0.0-1
Published
simple and powerful to generate (id) steely and secure numberID or stringID (URL-friendly)
Downloads
13
Readme
Unique IDentifier is a simple and powerful to generate (id) steely and secure numberID or stringID (URL-friendly) The generation depends on a complex algorithm that relies on information, date and process to generate steely.
- secure
- simple
- powerful
- url-friendly
- support numberID and stringID
- trustable
- Installation
- Example
Installation
npm install unidque
yarn add unidque
Example
const unidque = require("unidque");
//in stringID, sign [".","_"][random] is not fixed, it moves randomly in the string to make it more secure
unidque(); //stringID (default length 35)
//=> IyJ0g7gy92hwy0yz6IyVzyh2aVIyg3yXA_J
unidque(20); //stringID with 20 characters, (minimum:20 maximum:200)
//=> f02Y10Y7v.9Kj6kqYvK6
unidque(true); //numberID (default length 35)
// => 80743258371438287065918637835813207
unidque(20, true); //numberID with 20 digits, (minimum:20 maximum:200)
//=> 64195268060178376012