Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zignis/is-snowflake
❄️ Determine and validate Snowflake IDs
https://github.com/zignis/is-snowflake
Last synced: 27 days ago
JSON representation
❄️ Determine and validate Snowflake IDs
- Host: GitHub
- URL: https://github.com/zignis/is-snowflake
- Owner: zignis
- License: mit
- Created: 2023-09-30T03:29:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-30T03:32:40.000Z (about 1 year ago)
- Last Synced: 2024-09-07T14:48:38.329Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-snowflake
Determine and validate snowflake IDs
## Install
```
yarn add is-snowflake
```## Usage
```js
import { isSnowflake } from 'is-snowflake';assert(isSnowflake('1706300963561668608') === true);
```## What is a snowflake ID?
Twitter has a decent blog about it: https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake