light-uid
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i light-uid

Weekly Downloads

70

Version

1.1.0

License

MIT

Unpacked Size

6.52 kB

Total Files

13

Last publish

Collaborators

  • hakobpogh