Repository URL to install this package:
Version:
0.6.0 ▾
|
.. |
async |
bin |
non-secure |
url-alphabet |
LICENSE |
README.md |
index.browser.cjs |
index.browser.js |
index.cjs |
index.d.ts |
index.js |
nanoid.js |
package.json |
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 on GitHub.