Skip to content

hakobpogh/light-uid

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •