.. | |||
async | 16 days ago | ||
bin | 16 days ago | ||
non-secure | 16 days ago | ||
url-alphabet | 16 days ago | ||
LICENSE | 16 days ago | ||
README.md | 16 days ago | ||
index.browser.cjs | 16 days ago | ||
index.browser.js | 16 days ago | ||
index.cjs | 16 days ago | ||
index.d.cts | 16 days ago | ||
index.d.ts | 16 days ago | ||
index.js | 16 days ago | ||
nanoid.js | 16 days ago | ||
package.json | 16 days 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.