Unique user ID generator.
The repository contains pre-compiled files, but if you want to add your files and compile, then run the following commands in the repository folder.
- npm install
- npm run production
- npm run development
The build required NodeJs version 6 or higher.
import UserID from "UserID.ts"; let ID = (new UserID()).getID();
let UserID = required("UserID.js"); let ID = (new UserID()).getID();
Note that when you first start the module it needs some time to calculate finally UID.
So initialize it in the first time as early as possible in the code.