![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | bin/ | 8 months ago | - | |
![]() | non-secure/ | 8 months ago | - | |
![]() | url-alphabet/ | 8 months ago | - | |
![]() | LICENSE | 8 months ago | 1.1K | |
![]() | README.md | 8 months ago | 1.5K | |
![]() | index.browser.js | 8 months ago | 935 | |
![]() | index.d.ts | 8 months ago | 2.2K | |
![]() | index.js | 8 months ago | 1.4K | |
![]() | nanoid.js | 8 months ago | 197 | |
![]() | package.json | 8 months ago | 857 |
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 in Evil Martians, product consulting for developer tools.
Read full docs here.