Collision-resistant ids optimized for horizontal scaling and performance. For node and browsers.
npm install @fireflysemantics/cuid
```
npm i -S @fireflysemantics/cuid
npm i -S tslib
This version of cuid is built mainly for the Typescript / Browser use case only. For node or react native, use cuid.
Identifiers generated with cuidSlug will be shorter:
`cuid: ${cuid()}
import { cuid, cuidSlug as slug } from '@fireflysemantics/cuid';
console.log( );slug: ${slug()}
console.log( );`
Generating Collision Resistant Fast Unique IDs with Typescript
Run npm run b to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with npm run p.
Run npm t to execute the unit tests via delightful Jest.
This version of cuid is built mainly for the Typescript / Browser use case only. For node or react native, use cuid.
Run npm run b to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with npm run p.
Run npm t` to execute the unit tests via delightful Jest.