A tiny (116 bytes), secure URL-friendly unique string ID generator
Weekly downloads
Readme
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.
A tiny (116 bytes), secure URL-friendly unique string ID generator
The npm package nanoid receives a total of 17,703,209 weekly downloads. As such, nanoid popularity was classified as popular.
We found that nanoid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.