![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | non-secure/ | 2 years ago | - | |
![]() | async/ | 2 years ago | - | |
![]() | url-alphabet/ | 2 years ago | - | |
![]() | bin/ | 2 years ago | - | |
![]() | package.json | 2 years ago | 2.8K | |
![]() | nanoid.js | 40 years ago | 169 | |
![]() | index.js | 40 years ago | 1.3K | |
![]() | index.d.ts | 40 years ago | 2.2K | |
![]() | index.cjs | 40 years ago | 1.3K | |
![]() | index.browser.js | 40 years ago | 1.0K | |
![]() | index.browser.cjs | 40 years ago | 1.0K | |
![]() | README.md | 40 years ago | 1.5K | |
![]() | LICENSE | 40 years ago | 1.1K |
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.