@axetroy/nid
v1.0.0
Published
Generate random number
Downloads
2
Readme
Struct
A Modern, Scalable , Graceful, Easy Use data structure validator
Usage
npm install @axetroy/nid
const Nid = require('@axetroy/nid');
const nid = Nid(8);
console.log(+nid); // ouput as a number
console.log('' + nid); // ouput as a string
// print all element
console.log(nid[0])
console.log(nid[1])
console.log(nid[2])
console.log(nid[3])
console.log(nid[4])
console.log(nid[5])
console.log(nid[6])
console.log(nid[7])
// generate as a raw string, API like golang
console.log(Nid.New(8));