|
|
il y a 3 semaines | |
|---|---|---|
| .. | ||
| bin | il y a 3 semaines | |
| non-secure | il y a 3 semaines | |
| url-alphabet | il y a 3 semaines | |
| LICENSE | il y a 3 semaines | |
| README.md | il y a 3 semaines | |
| index.browser.js | il y a 3 semaines | |
| index.d.ts | il y a 3 semaines | |
| index.js | il y a 3 semaines | |
| nanoid.js | il y a 3 semaines | |
| package.json | il y a 3 semaines | |
<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.