nanoid 5.1.8
A tiny (118 bytes), secure URL-friendly unique string ID generator
nanoid@5.1.8 was published on 2026-04-15. Its manifest declares 0 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is ^18 || >=20.
All nanoid versions · Permanent reference to 5.1.8 · Latest release
Package specifications
| Version | 5.1.8 |
|---|---|
| License declaration | MIT |
| Published | 2026-04-15T14:07:59.978Z |
| Node.js requirement | ^18 || >=20 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 0 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 13.85 KiB |
| Published file count | 12 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | false |
| Direct advisories | 2 |
| Resolved graph dependencies | Unknown |
| Repository stars | 27114 |
| Repository forks | 896 |
Install nanoid 5.1.8
npm install nanoid@5.1.8 pnpm add nanoid@5.1.8 yarn add nanoid@5.1.8
Runtime dependencies
- None declared
Peer requirements
- None declared
Optional dependencies
- None declared
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 0/10 — Found 1/30 approved changesets -- score normalized to 0 |
|---|---|
| Maintained | 10/10 — 30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10 |
| Security-Policy | 10/10 — security policy file detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Token-Permissions | 9/10 — detected GitHub workflow tokens with excessive permissions |
| Pinned-Dependencies | 10/10 — all dependencies are pinned |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 6/10 — SAST tool is not run on all commits -- score normalized to 6 |
Evidence and freshness
- https://registry.npmjs.org/nanoid/5.1.8 — retrieved 2026-10-29T11:07:52.015Z
- https://api.deps.dev/v3/projects/github.com%2Fai%2Fnanoid — retrieved 2026-10-29T05:08:21.235Z
- https://api.deps.dev/v3/systems/npm/packages/nanoid/versions/5.1.8 — retrieved 2026-10-29T11:07:52.553Z