Skip to content

Commit f85d496

Browse files
committed
Fixed typo in configuration
1 parent c6478de commit f85d496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The ID generator produces ids faster if the return type is bigint, but this opti
2323
const { UniqueID } = require('nodejs-snowflake');
2424

2525
const uid = new UniqueID({
26-
returnAsNumber: true
26+
returnNumber: true
2727
});
2828

2929
const 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
}

0 commit comments

Comments
 (0)