# Install nanoid with npm

A tiny (118 bytes), secure URL-friendly unique string ID generator. Version 5.1.11 via npm; verified 2026-06-20.

## 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:** 5.1.11
- **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
- **Source archive:** <https://registry.npmjs.org/nanoid/-/nanoid-5.1.11.tgz>
- **Issue tracker:** <https://github.com/ai/nanoid/issues>
- **Published:** 2026-04-30T22:06:42.984Z
- **Last updated:** 2026-06-20T13:40:26.507Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nanoid (cli)
- nanoid (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.1.11
- Package-manager updated: 2026-06-20
- 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. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 5.1.11
- **Version Count:** 119
- **Maintainers:** ai
- **Author:** Andrey Sitnik
- **Publisher:** ai
- **Engines:** Node: ^18 || >=20
- **Integrity:** sha512-v+KEsUv2ps74PaSKv0gHTxTCgMXOIfBEbaqa6w6ISIGC7ZsvHN4N9oJ8d4cmf0n5oTzQz2SLmThbQWhjd/8eKg==
- **Shasum:** 559dbdbc41737da341ac938c25514563d2dd94c7
- **Unpacked Size:** 13,678
- **File Count:** 0
- **Created At:** 2017-08-06T05:04:00.915Z
- **Latest Published At:** 2026-04-30T22:06:42.984Z
- **Modified At:** 2026-04-30T22:06:43.090Z


## Related links

- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched curated package taxonomy and local package facts.
- [boring-name-generator](https://www.automicvault.com/pkg/npm/boring-name-generator/) - Local package facts share a topical domain. Shared terms: generator, random, unique.
- [native-machine-id](https://www.automicvault.com/pkg/npm/native-machine-id/) - Local package facts share a topical domain. Shared terms: id, unique, uuid.
- [uuidjs](https://www.automicvault.com/pkg/npm/uuidjs/) - Local package facts share a topical domain. Shared terms: generator, unique, uuid.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
