New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

light-uid

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-uid

A lightweight random uid generator

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

uid

FAQs

Package last updated on 27 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts