Class

SnowflakeUtil

Fluxer snowflake IDs (Twitter layout, custom epoch). Public API is string-only — never number — to avoid precision loss above 2^53.

Constructor

new SnowflakeUtil()

Properties

NameTypeDescription
EPOCHstaticread-only1420070400000n

Methods

static isValid(snowflake)

snowflake: stringboolean

Whether value is a non-negative decimal snowflake string (≤ 20 digits).

SnowflakeUtil.isValid(snowflake);