generated from templates/typescript-library
readme
This commit is contained in:
parent
abfbabf71f
commit
0f053e7787
16
readme.md
16
readme.md
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user