Dirk Alders 97486731b5 Dashboard 2 - EG-West | vor 4 Monaten | |
---|---|---|
.. | ||
async | vor 4 Monaten | |
bin | vor 4 Monaten | |
non-secure | vor 4 Monaten | |
url-alphabet | vor 4 Monaten | |
LICENSE | vor 4 Monaten | |
README.md | vor 4 Monaten | |
index.browser.cjs | vor 4 Monaten | |
index.browser.js | vor 4 Monaten | |
index.cjs | vor 4 Monaten | |
index.d.cts | vor 4 Monaten | |
index.d.ts | vor 4 Monaten | |
index.js | vor 4 Monaten | |
nanoid.js | vor 4 Monaten | |
package.json | vor 4 Monaten |
<img src=“https://ai.github.io/nanoid/logo.svg” align=“right”
alt="Nano ID logo by Anton Lovchikov" width="180" height="94">
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.
<img src=“https://evilmartians.com/badges/sponsored-by-evil-martians.svg”
alt="Sponsored by Evil Martians" width="236" height="54">
Read full docs here.