Cryptographically secure UIDs
> A small package for generating cryptographically secure UIDs in the browser, safe for both cookie and URL usage.



This package is a mirror of uid-safe, but meant to be used in a browser env.
Additionally, it comes bundled with TypeScript typings.
* Installation
* Usage
* Browser Support
* Contribute
bash
npm add crypto-uid
`Or with Yarn:
`bash
yarn add crypto-uid
`#### CDN
For CDN, you can use unpkg:
https://unpkg.com/crypto-uid/dist/bundles/crypto-uid.umd.min.js
The global namespace for crypto-uid is
cryptoUid:
`js
const id = cryptoUid(6);
`
$3
---------#### ES6
Generate a random UID:
`ts
import uid from 'crypto-uid';
const id = uid(6);
`#### CommonJS
Generate a random UID:
`ts
const uid = require('crypto-uid');
const id = uid(6);
`
$3
-------------------
You can expect this lib to run wherever Web Crypto API is supported.
$3
--------------
If you wish to contribute, please use the following guidelines:
* Use Conventional Commits
* Use [ci skip]` in commit messages to skip a build