Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 819 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 819 Bytes

light-uid

A lightweight random uid generator which can be used both with JavaScript and TypeScript.

NPM Minzipped Bundle Size

Install

with npm

npm i -s light-uid

with yarn

yarn add light-uid

Usage

JavaScript and TypeScript

import genUid from 'light-uid';

genUid(); // r8oi9pyhxt1xujmh
genUid(4); // 9no5
genUid(8); // rucg9mf5

genUid(256).length; // 256

License

MIT © hakobpogh