Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
async/ | 2 years ago | - | ||
bin/ | 2 years ago | - | ||
non-secure/ | 2 years ago | - | ||
url-alphabet/ | 2 years ago | - | ||
LICENSE | 39 years ago | 1.1K | ||
README.md | 39 years ago | 1.5K | d7c1522 post receive test [كارل مبارك] | |
index.browser.cjs | 39 years ago | 1.0K | ||
index.browser.js | 39 years ago | 1.0K | ||
index.cjs | 39 years ago | 1.3K | ||
index.d.ts | 39 years ago | 2.2K | ||
index.js | 39 years ago | 1.3K | ||
nanoid.js | 39 years ago | 169 | ||
package.json | 2 years ago | 2.7K |
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.