Nano ID : Unique String ID Generator for JavaScript

Nano ID : Unique String ID Generator for JavaScript

A tiny, secure, URL-friendly, unique string ID generator for JavaScript.Likewise UUID there is a probability that an ID will be duplicated. But this probability is extremely small.

  • Small. 141 bytes (minified and gzipped). No dependencies. It uses Size Limit to control size.
  • Safe. It uses cryptographically strong random APIs and tests distribution of symbols.
  • Fast. It’s 16% faster than UUID.
  • Compact. It uses a larger alphabet than UUID (A-Za-z0-9_-). So ID size was reduced from 36 to 21 symbols.

Leave a Reply