easy-uid

v0.0.1
Easy unique id generator for node and browser.
uid generator random tiny easy ES6

easy-uid

Build Status Coverage Status NPM package version code style: prettier

Easy uid is the smallest (70 bytes) random URL-friendly uid generator based on Math.random for browser and node without external dependencies. It is useful for generating uid where is no need horizontal scaling and cryptographically security. For example: React Components key, element ids, etc.

Installation

npm i easy-uid --save

Usage

import uid from 'easy-uid';

uid(); //1cdcjhb913ov1a

Metadata

  • ISC
  • Whatever
  • Miroslav Jancarik
  • released 9/7/2018

Downloads

Maintainers