# Install nanoid with npm

A tiny (118 bytes), secure URL-friendly unique string ID generator. Version 6.0.0 via npm; verified 2026-07-12.

## Install

```sh
sudo av install npm:nanoid
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g nanoid
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:nanoid
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/nanoid>
- **Version:** 6.0.0
- **Source summary:** A tiny (118 bytes), secure URL-friendly unique string ID generator
- **Homepage:** <https://github.com/ai/nanoid#readme>
- **Repository:** <https://github.com/ai/nanoid>
- **Upstream docs:** <https://github.com/ai/nanoid#readme>
- **License:** MIT
- **Issue tracker:** <https://github.com/ai/nanoid/issues>
- **Published:** 2026-07-12T15:11:38.825Z
- **Last updated:** 2026-07-12T15:11:38.825Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- nanoid (cli)
- nanoid (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 6.0.0
- Package-manager updated: 2026-07-12
- Local data: ok
- Upstream repository: https://github.com/ai/nanoid
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for nanoid. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 6.0.0, Legacy: 3.3.17
- **Version Count:** 131
- **Maintainers:** ai
- **Author:** Andrey Sitnik
- **File Count:** 0
- **Created At:** 2017-08-06T05:04:00.915Z
- **Latest Published At:** 2026-07-12T15:11:38.825Z
- **Modified At:** 2026-07-12T15:11:38.825Z


## Related links

- [Security and crypto packages](https://pkg.so/security-crypto-tools/) - Matched curated package taxonomy and local package facts.
- [pulledpork](https://pkg.so/brew/pulledpork/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, ids, security.
- [audit-ci](https://pkg.so/npm/audit-ci/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, string.
- [license-report](https://pkg.so/npm/license-report/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, url.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
