{"library":"uid","type":"library","category":null,"description":"The `uid` package provides a highly optimized and compact utility for generating fixed-length random unique IDs in JavaScript environments, supporting both Node.js and browsers. The current stable version is 2.0.2, with releases focusing on performance, bug fixes, and TypeScript compatibility, indicating an active maintenance and development cadence. Key differentiators include its extremely small footprint (130B to 205B gzipped) and high performance, with benchmarks showing it to be significantly faster than alternatives like `nanoid` in its default non-secure mode. It offers three distinct modes: `uid` (fast, `Math.random`-based, non-secure), `uid/secure` (cryptographically secure via `crypto.getRandomValues`), and `uid/single` (non-secure, no internal cache, ideal for short-lived environments). This flexibility allows developers to choose the appropriate balance of speed, security, and bundle size for their specific use case.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","id","uid","uuid","random","generate","secure","crypto","foid","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install uid","imports":["import { uid } from 'uid';","import { uid } from 'uid/secure';","import { uid } from 'uid/single';","const { uid } = require('uid/secure');"]},{"cmd":"yarn add uid","imports":[]},{"cmd":"pnpm add uid","imports":[]}],"homepage":null,"github":"https://github.com/lukeed/uid","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/uid","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/uid/compatibility"}}