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}`);