| .. | |||
| async | 4 months ago | ||
| bin | 4 months ago | ||
| non-secure | 4 months ago | ||
| url-alphabet | 4 months ago | ||
| LICENSE | 4 months ago | ||
| README.md | 4 months ago | ||
| index.browser.cjs | 4 months ago | ||
| index.browser.js | 4 months ago | ||
| index.cjs | 4 months ago | ||
| index.d.cts | 4 months ago | ||
| index.d.ts | 4 months ago | ||
| index.js | 4 months ago | ||
| nanoid.js | 4 months ago | ||
| package.json | 4 months ago | ||
English | Русский | 简体中文 | Bahasa Indonesia
A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
“An amazing level of senseless perfectionism, which is simply impossible not to respect.”
A-Za-z0-9_-). So ID size was reduced from 36 to 21 symbols.import { nanoid } from 'nanoid'
model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"
Supports modern browsers, IE [with Babel], Node.js and React Native.
Read full docs here.