Skip to content
Myr

Update package size in docs

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 c28c36f · 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
11 unmodified lines
1213**Safe.** It uses cryptographically strong random APIs14and guarantees a proper distribution of symbols.1516**Small.** Only 162 bytes (minified and gzipped). No dependencies.16**Small.** Only 146 bytes (minified and gzipped). No dependencies.17It uses [Size Limit] to control size.1819**Compact.** It uses a larger alphabet than UUID (`A-Za-z0-9_~`)20and has a similar number of unique IDs in just 21 symbols instead of 36.
49 unmodified lines
70There are two main differences between Nano ID and UUID v4: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 less than half the size of the `uuid/v4` package:75 162 bytes instead of 435.742. Nano ID code is 3 times less than `uuid/v4` package:75 146 bytes instead of 435.767778## Benchmark79
116 unmodified lines