ai / nanoid
Get started
From the repository's own files at c0d01e30b0ec. Commands have not been executed.
Prerequisites
node ^22 || ^24 || >=26from package.jsonpnpm (root lockfile; version not captured)from pnpm-lock.yaml
Commands
package.json| Task | Run | What it runs |
|---|---|---|
| start | pnpm run start | vite --host 0.0.0.0 test/demo/ |
| test | pnpm run test | pnpm run /^test:/ |
Install and use
README.mdnpm install nanoid
CDN
For quick hacks, you can load Nano ID from CDN. Though, it is not recommended to be used in production because of the lower loading performance.
import { nanoid } from "https://cdn.jsdelivr.net/npm/nanoid/nanoid.js";