https://github.com/erfanium/oid-gen
Tiny, fast and independent package to generate bson/mongodb ObjectIDs
https://github.com/erfanium/oid-gen
Last synced: 10 months ago
JSON representation
Tiny, fast and independent package to generate bson/mongodb ObjectIDs
- Host: GitHub
- URL: https://github.com/erfanium/oid-gen
- Owner: erfanium
- License: mit
- Created: 2020-11-11T18:44:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T15:43:38.000Z (over 5 years ago)
- Last Synced: 2025-03-30T11:11:44.098Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```ts
import { oid, oidHex } from '@erfanium/oid-gen'
const objectID: Buffer = oid()
const objectIDHexString: string = oidHex()
```