A lightweight random uid generator
npm install light-uidA lightweight random uid generator which can be used both with JavaScript and TypeScript.
[![NPM][npm-image]][npm-link]
[![Minzipped Bundle Size][bundlephobia-image]][bundlephobia-link]
with npm
```
npm i -s light-uid
with yarn
``
yarn add light-uid
JavaScript and TypeScript
`javascript
import genUid from 'light-uid';
genUid(); // r8oi9pyhxt1xujmh
genUid(4); // 9no5
genUid(8); // rucg9mf5
genUid(256).length; // 256
``
MIT © [hakobpogh][github-hakobpogh]
[npm-image]: https://img.shields.io/npm/v/light-uid.svg
[npm-link]: https://www.npmjs.com/package/light-uid
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/light-uid
[bundlephobia-link]: https://bundlephobia.com/result?p=light-uid
[github-hakobpogh]: https://github.com/hakobpogh