Skip to content

Releases: timondev/snowflake-id

@timondev/snowflake-id v1.1.0

08 Feb 09:24
Compare
Choose a tag to compare

Snowflake ID Generator

ID Generator and deconstructor by TimonDEV.

Changelog

  • Added option to have custom epoch value
import { SnowflakeID } from '@timondev/snowflake-id';

const epoch = 1420070400000;
let id = SnowflakeID.generate(epoch);

console.log(`SnowflakeID generated the following id ${id}`);

@timondev/snowflake-id v1.0.0

01 Feb 00:05
3884c70
Compare
Choose a tag to compare

Snowflake ID Generator

ID Generator and deconstructor by TimonDEV.