Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mcollina/hyperid
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed May 7, 2020
2 parents 45682fe + 8153322 commit 4928174
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ that is 33 characters in length, by default `fixedLength` is `false`.
- `options: Object`
If `{ fixedLength: true }` is passed in, the function will always generate an id
that is 33 characters in length, by default `fixedLength` is `false`.
If `{ urlSafe: true }` is passed in, the function will generate url safe ids.
If `{ urlSafe: true }` is passed in, the function will generate url safe ids.
If `{ startFrom: <int> }` is passed in, the first counter will start from that
number, which must be beteen 0 and 2147483647. Fractions are discarded, only the
number, which must be between 0 and 2147483647. Fractions are discarded, only the
integer part matters.

### instance()
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"version": "2.0.4",
"description": "Uber-fast unique id generation, for Node.js and the browser",
"main": "hyperid",
"files": [
"hyperid.js",
"index.d.ts",
"test"
],
"scripts": {
"typescript": "tsc --project ./test/tsconfig.json",
"test": "standard && tape test/test.js test/uniqueness.js | tap-dot && npm run typescript"
Expand Down

0 comments on commit 4928174

Please sign in to comment.