npm generate randome ids long code example
Example: node number id generator
npm i nodejs-unique-numeric-id-generator
# yarn
yarn add nodejs-unique-numeric-id-generator
# Node.js
var ID = require("nodejs-unique-numeric-id-generator")
ID.generate(new Date().toJSON()); #output: "118626"