Author: | ryouaki |
---|---|
Views Total: | 179 views |
Official Page: | Go to website |
Last Update: | October 1, 2021 |
License: | MIT |
Preview:

Description:
A lightweight and fast UUID (universally unique identifier) generator & parser for both browser and node.js.
How to use it:
1. Install and import the lsp-uuid.
# NPM $ npm i lsp-uuid
import { uuid, parseUUID } from 'lsp-uuid'
2. Generate a UUID.
const id = uuid() // => 5f0d49fa5880000
3. Parse a UUID.
parseUUID(id) /* { flg: 0, timestamp: 1632979380578, count: 0 } */