Package
uid
A tiny (130B to 205B) and fast utility to randomize unique IDs of fixed length
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 9.7m
- +140% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 3 years ago
- v2.0.2
- GitHub stars
- 668
- 18 forks
- Open issues / PRs
- 0 / 2
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
9,650,246 downloads last week, 48,265,449 in the last month. The 12-month change of +140% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 06 in total
- Latest version
- 2.0.2, 31 Mar 20233 years ago
- First published
- 16 Dec 2012
- Last push to GitHub
- 27 Sept 2024727 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 2
- Commits, last 52 weeks
- 0
- Dependents on npm
- 758
Major versions
- v2 first release 2.0.0, 29 Oct 2020
- v1 first release 1.0.0, 4 Mar 2020
- v0 first release 0.0.1, 16 Dec 2012
Recent releases
| Version | Published |
|---|---|
| 2.0.2 | 31 Mar 2023 |
| 2.0.1 | 29 Sept 2022 |
| 2.0.0 | 29 Oct 2020 |
| 1.0.0 | 4 Mar 2020 |
| 0.0.2 | 15 Jul 2013 |
| 0.0.1 | 16 Dec 2012 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=8
- Runtimes
- -
- Unpacked size (npm)
- 15 kB
- Dependencies (1)
@lukeed/csprng
npm install uid- jsDelivr
https://cdn.jsdelivr.net/npm/uid@2.0.2/ - unpkg
https://unpkg.com/uid@2.0.2/ - esm.sh
https://esm.sh/uid@2.0.2
Indexability: Indexed.