|
|
пре 3 недеља | |
|---|---|---|
| .. | ||
| bin | пре 3 недеља | |
| non-secure | пре 3 недеља | |
| url-alphabet | пре 3 недеља | |
| LICENSE | пре 3 недеља | |
| README.md | пре 3 недеља | |
| index.browser.js | пре 3 недеља | |
| index.d.ts | пре 3 недеља | |
| index.js | пре 3 недеља | |
| nanoid.js | пре 3 недеља | |
| package.json | пре 3 недеља | |
<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"
Made at Evil Martians, product consulting for developer tools.
Read full docs here.