readme
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 13s
Build and test / build-and-test (20.x) (push) Successful in 15s

This commit is contained in:
James Brumond 2023-08-26 16:11:22 -07:00
parent abfbabf71f
commit 0f053e7787
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -1,11 +1,25 @@
Utility for generating Snowflake UIDs (see: <https://en.wikipedia.org/wiki/Snowflake_ID>) Utility for generating Snowflake UIDs (see: <https://en.wikipedia.org/wiki/Snowflake_ID>)
Features:
- **Zero** dependencies
- Configurable epoch time
- Configurable instance size, allowing timestamp and sequence to be larger
--- ---
## Install ## Install
<!-- --> ```bash
# Update project npm config to refer to correct registry for the @js scope
echo '@js:registry=https://gitea.jbrumond.me/api/packages/js/npm/' >> ./.npmrc
npm install --save @js/snowflake-uid
# optional - additional supporting typescript definitions
npm install --save-dev @js/types
```