unidque
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-1 • Public • Published

NPM version NPM downloads

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.

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

Links

License

/unidque/

    Package Sidebar

    Install

    npm i unidque

    Weekly Downloads

    7

    Version

    1.0.0-1

    License

    Apache-2.0

    Unpacked Size

    23.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • jamel_syr
    • naimabd
    • iarth