Skip to content
Myr

Update size

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 38c1e11 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:package.json+1 added-1 removed
modified:README.md+3 added-3 removed
3 unmodified lines
4 alt="Nano ID logo by Anton Lovchikov" width="180" height="94">56A tiny, secure, URL-friendly, unique string ID generator for JavaScript.78* **Small.** 137 bytes (minified and gzipped). No dependencies.8* **Small.** 127 bytes (minified and gzipped). No dependencies.9 [Size Limit] controls the size.10* **Safe.** It uses cryptographically strong random APIs.11 Can be used in clusters.12* **Fast.** It’s 16% faster than UUID.
48 unmodified lines
61There are three main differences between Nano ID and UUID v4:62631. Nano ID uses a bigger alphabet, so a similar number of random bits64 are packed in just 21 symbols instead of 36.652. Nano ID code is 3 times less than `uuid/v4` package:66 137 bytes instead of 435.652. Nano ID code is 4 times less than `uuid/v4` package:66 127 bytes instead of 435.673. Because of memory allocation tricks, Nano ID is 16% faster than UUID.686970## Benchmark
327 unmodified lines