Constructor
new Catflake(options)
Create a Catflake factory
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The options to configure Catflake with
Properties
|
Methods
deconstruct(snowflake) → {DeconstructedSnowflake}
Deconstructs a snowflake
Parameters:
Name | Type | Description |
---|---|---|
snowflake |
string | number | BigInteger | The snowflake to deconstruct |
Returns:
- Type
- DeconstructedSnowflake
generate() → {string|BigInteger|Promise.<(string|BigInteger)>}
Generates a snowflake
Returns:
- Type
- string | BigInteger | Promise.<(string|BigInteger)>