4.0.0 • Published 5 years ago

flakery v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Flakery

version types bundle size license

A tiny (~750 B) library for creating Twitter Snowflakes.

Installation

npm install flakery

Usage

import { Client } from 'flakery'

const flakery = new Client()

// Example 1: Create a Snowflake.
const snowflake = flakery.next() // => '794278747242106880'

// Example 2: Extract the timestamp.
const timestamp = flakery.getTime(snowflake) // => 1609441210328
4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago