File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ The ID generator produces ids faster if the return type is bigint, but this opti
2323const { UniqueID } = require (' nodejs-snowflake' );
2424
2525const uid = new UniqueID ({
26- returnAsNumber : true
26+ returnNumber : true
2727});
2828
2929const ID = uid .getUniqueID (); // This id is in javascript bigint format
@@ -64,7 +64,7 @@ UniqueID constructor takes in the following configuration
6464
6565``` javascript
6666{
67- returnAsNumber : boolean, // Defaults to false. If set to true, the returned ids will be of type bigint or else of type string
67+ returnNumber : boolean, // Defaults to false. If set to true, the returned ids will be of type bigint or else of type string
6868 customEpoch: number, // Defaults to 1546300800000 (01-01-2019). This is UNIX timestamp in ms
6969 machineID: number // A value ranging between 0 - 4095. If not provided then a random value will be used
7070}
You can’t perform that action at this time.
0 commit comments