Skip to content

aidakdev/superflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Superflake

official-product-badge

Superflake is a revolutionary technology based on Twitter's Snowflake created with TypeScript.

Superflake is generated by concatenating:

  • a 42-bit timestamp,
  • a 10-bit node ID, and
  • a 12-bit sequential number.

By the way, Superflake's default epoch is 1616275800 (March 20, 2021).

Installation

npm i superflake

Example

import Superflake from 'superflake'

let flake = new Superflake({ nodeId: 1 }).gen()
// => 6925192012375265280

About

❄️ The open-source Superflake technology.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published