nv-facutil-fastid24
v1.0.2
Published
nv-facutil-fastid24 ======================= - generate a random simple id of length 24 - id() -> String - idab() -> ArrayBuffer
Downloads
3
Readme
nv-facutil-fastid24
- generate a random simple id of length 24
- id() -> String
- idab() -> ArrayBuffer
install
- npm install nv-facutil-fastid24
splitted
usage
const {id,idab } = require("nv-facutil-fastid24");
example
> id();
'af627c413efd3feef7c8a99b'
> idab();
ArrayBuffer {
[Uint8Contents]: <c0 44 99 9b d6 6e c1 3f 54 8d cc 7f 9e ab e2 3f 64 32 1e 78 58 ef d1 3f>,
byteLength: 24
}
>
> sync(1000_0000,id)
{ rounds: 10000000, f: [Function: id], costed: 2016.1330000162125 }
> sync(1000_0000,idab)
{ rounds: 10000000, f: [Function: idab], costed: 447.63790398836136 }
>
METHODS
APIS
LICENSE
- ISC