@litert/uuid
v2.1.0
Published
A uuid generator library for NodeJS.
Downloads
154
Readme
LiteRT/UUID
A uuid generator library for NodeJS.
Requirement
- TypeScript v5.0.0 (or newer)
- Node.js v18.0.0 (or newer)
Installation
Install by NPM:
npm i @litert/uuid --saveDocuments
Algorithms
A 64-bit integer UUID algorithm provided by X (Twitter).
The Snowflake-SI algorithm generates safe integer (53-bits integer) for JavaScript, with capacity 128 uuids per milliseconds, and 64 machine parallel working.
UUIDv4
The UUID version 4 algorithm generates random UUIDs.
UUIDv5
The UUID version 5 algorithm generates UUIDs based on SHA-1 hash of a namespace and a name.
Examples
License
This library is published under Apache-2.0 license.
