0.1.3 • Published 1 year ago

superflake v0.1.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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
0.1.2

1 year ago

0.1.3

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago