nanoid
A tiny (179 bytes), secure URL-friendly unique string ID generator
Last updated 7 years ago by ai .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install nanoid 
SYNC missed versions from official npm registry.

Nano ID

Nano ID logo by Anton Lovchikov

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.”

  • Small. 116 bytes (minified and brotlied). No dependencies. Size Limit controls the size.
  • Safe. It uses hardware random generator. Can be used in clusters.
  • Short IDs. It uses a larger alphabet than UUID (A-Za-z0-9_-). So ID size was reduced from 36 to 21 symbols.
  • Portable. Nano ID was ported to over 20 programming languages.
import { nanoid } from 'nanoid'
model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"

  Made in Evil Martians, product consulting for developer tools.


Docs

Read full docs here.

Current Tags

  • 5.0.5                                ...           latest (10 months ago)

98 Versions

  • 5.0.5                                ...           10 months ago
  • 5.0.4                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 3.3.7                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 3.3.6                                ...           2 years ago
  • 3.3.5                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           3 years ago
  • 3.3.4                                ...           3 years ago
  • 3.3.3                                ...           3 years ago
  • 3.3.2                                ...           3 years ago
  • 3.3.1                                ...           3 years ago
  • 3.3.0                                ...           3 years ago
  • 3.2.0                                ...           3 years ago
  • 3.1.32                                ...           3 years ago
  • 3.1.31                                ...           3 years ago
  • 3.1.30                                ...           3 years ago
  • 3.1.29                                ...           3 years ago
  • 3.1.28                                ...           3 years ago
  • 3.1.27                                ...           3 years ago
  • 3.1.26                                ...           3 years ago
  • 3.1.25                                ...           3 years ago
  • 3.1.24                                ...           3 years ago
  • 3.1.23                                ...           4 years ago
  • 3.1.22                                ...           4 years ago
  • 3.1.21                                ...           4 years ago
  • 3.1.20                                ...           4 years ago
  • 3.1.19                                ...           4 years ago
  • 3.1.18                                ...           4 years ago
  • 3.1.17                                ...           4 years ago
  • 3.1.16                                ...           4 years ago
  • 3.1.15                                ...           4 years ago
  • 3.1.14                                ...           4 years ago
  • 3.1.13                                ...           4 years ago
  • 3.1.12                                ...           4 years ago
  • 3.1.11                                ...           4 years ago
  • 3.1.10                                ...           4 years ago
  • 3.1.9                                ...           5 years ago
  • 3.1.8                                ...           5 years ago
  • 3.1.7                                ...           5 years ago
  • 3.1.6                                ...           5 years ago
  • 3.1.5                                ...           5 years ago
  • 3.1.4                                ...           5 years ago
  • 3.1.3                                ...           5 years ago
  • 3.1.2                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.1.11                                ...           5 years ago
  • 2.1.10                                ...           5 years ago
  • 2.1.9                                ...           5 years ago
  • 2.1.8                                ...           5 years ago
  • 2.1.7                                ...           5 years ago
  • 2.1.6                                ...           5 years ago
  • 2.1.5                                ...           5 years ago
  • 2.1.4                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.4                                ...           5 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.3.4                                ...           6 years ago
  • 1.3.3                                ...           6 years ago
  • 1.3.2                                ...           6 years ago
  • 1.3.1                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.6                                ...           6 years ago
  • 1.2.5                                ...           6 years ago
  • 1.2.4                                ...           6 years ago
  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.7                                ...           6 years ago
  • 1.0.6                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 33
Last Day 0
Last Week 33
Last Month 0
Dependencies (0)
None
Dev Dependencies (25)

Copyright 2013 - present © cnpmjs.org | Home |