Skip to content
Myr

Decrease 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 c0e8f47 · Browse files · 5 files+15 added−7 removed
This commit

State

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

Diff stats

5 files+15 added−7 removed

  • other:+15 added−7 removed

5 files+15 added−7 removed

modified:async/index.browser.js+5 added-1 removed
modified:index.browser.js+5 added-1 removed
modified:package.json+2 added-2 removed
60 unmodified lines
61 },62 "size-limit": [63 {64 "path": "index.js",65 "limit": "143 B"65 "limit": "142 B"66 },67 {68 "path": "generate.js",69 "limit": "177 B"
3 unmodified lines
73 "limit": "110 B"74 },75 {76 "path": "async/index.js",77 "limit": "155 B"77 "limit": "154 B"78 },79 {80 "path": "async/generate.js",81 "limit": "198 B"
96 unmodified lines
modified:README.md+2 added-2 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.** 143 bytes (minified and gzipped). No dependencies.8* **Small.** 142 bytes (minified and gzipped). No dependencies.9It uses [Size Limit] to control size.10* **Safe.** It uses cryptographically strong random APIs11and tests distribution of symbols.12* **Fast.** It’s 16% faster than UUID.
58 unmodified lines
71721. Nano ID uses a bigger alphabet, so a similar number of random bits73 are packed in just 21 symbols instead of 36.742. Nano ID code is 3 times less than `uuid/v4` package:75 143 bytes instead of 435.75 142 bytes instead of 435.767778## Benchmark79
210 unmodified lines
modified:url.js+1 added-1 removed