Skip to content

Commit

Permalink
Update the size in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 11, 2019
1 parent c21904c commit e6c0f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

A tiny, secure, URL-friendly, unique string ID generator for JavaScript.

* **Small.** 141 bytes (minified and gzipped). No dependencies.
* **Small.** 139 bytes (minified and gzipped). No dependencies.
[Size Limit] controls the size.
* **Safe.** It uses cryptographically strong random APIs.
Can be used in clusters.
Expand Down Expand Up @@ -63,7 +63,7 @@ There are three main differences between Nano ID and UUID v4:
1. Nano ID uses a bigger alphabet, so a similar number of random bits
are packed in just 21 symbols instead of 36.
2. Nano ID code is 3 times less than `uuid/v4` package:
141 bytes instead of 435.
139 bytes instead of 435.
3. Because of memory allocation tricks, Nano ID is 16% faster than UUID.


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nanoid",
"version": "2.1.2",
"description": "A tiny (141 bytes), secure URL-friendly unique string ID generator",
"description": "A tiny (139 bytes), secure URL-friendly unique string ID generator",
"keywords": [
"uuid",
"random",
Expand Down Expand Up @@ -67,7 +67,7 @@
"size-limit": [
{
"path": "index.js",
"limit": "141 B"
"limit": "139 B"
},
{
"path": "generate.js",
Expand Down

0 comments on commit e6c0f40

Please sign in to comment.