Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
0
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 0.2.1
* Fix documentation (by Piper Chester).
## 0.2

@@ -5,0 +8,0 @@ * Add `size` argument to `nanoid()`.

30

package.json
{
"name": "nanoid",
"version": "0.2.0",
"description": "A tiny, secure URL-friendly unique string ID generator",
"version": "0.2.1",
"description": "A tiny (179 bytes), secure URL-friendly unique string ID generator",
"keywords": [

@@ -21,8 +21,8 @@ "uuid",

"docdash": "^0.4.0",
"eslint": "^4.4.1",
"eslint-config-logux": "^16.0.0",
"eslint": "^4.7.0",
"eslint-config-logux": "^16.2.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-es5": "^1.1.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jest": "^20.0.3",
"eslint-plugin-jest": "^21.1.0",
"eslint-plugin-node": "^5.1.1",

@@ -33,12 +33,13 @@ "eslint-plugin-promise": "^3.5.0",

"html-webpack-plugin": "^2.30.1",
"jest": "^20.0.4",
"jsdoc": "^3.5.4",
"lint-staged": "^4.0.3",
"jest": "^21.1.0",
"jsdoc": "^3.5.5",
"lint-staged": "^4.2.1",
"microtime": "^2.1.6",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.2",
"shortid": "^2.2.8",
"size-limit": "^0.8.2",
"size-limit": "^0.11.3",
"uuid": "^3.1.0",
"webpack-dev-server": "^2.7.1",
"yaspeller-ci": "^0.6.0"
"webpack-dev-server": "^2.8.2",
"yaspeller-ci": "^0.7.0"
},

@@ -48,5 +49,6 @@ "scripts": {

"spellcheck": "yarn docs && yaspeller-ci *.md docs/*.html",
"clean": "rimraf docs/ coverage/",
"docs": "jsdoc --configure .jsdocrc *.js",
"lint": "eslint *.js test/*.js",
"test": "jest --coverage && yarn lint && yarn spellcheck && size-limit",
"test": "jest --coverage && yarn lint && size-limit && yarn spellcheck",
"demo": "webpack-dev-server --config test/demo/webpack.config"

@@ -67,7 +69,7 @@ },

"path": "index.js",
"limit": "181 B"
"limit": "179 B"
},
{
"path": "generate.js",
"limit": "197 B"
"limit": "196 B"
}

@@ -74,0 +76,0 @@ ],

@@ -13,3 +13,3 @@ # Nano ID

**Small.** Only 181 bytes (minified and gzipped). No dependencies.
**Small.** Only 179 bytes (minified and gzipped). No dependencies.
It uses [Size Limit] to control size.

@@ -56,4 +56,4 @@

Nano ID is similar to UUID v4 (random-based). It uses same number of random bits
in ID, so it has same collision probability:
Nano ID is similar to UUID v4 (random-based). It uses the same number
of random bits in ID, so it has the same collision probability:

@@ -65,6 +65,6 @@ > For there to be a one in a billion chance of duplication,

1. Nano ID uses bigger alphabet for ID, so same random bits
are packed just in 22 symbols instead of 36.
2. Code of Nano ID has 2 times smaller size compare to `uuid/v4` package:
181 bytes instead of 435.
1. Nano ID uses a bigger alphabet for ID, so the same random bits
are packed in just 22 symbols instead of 36.
2. Nano ID code is 2 times smaller in size than `uuid/v4` package:
179 bytes instead of 435.

@@ -132,1 +132,8 @@ ## Usage

```
## Other Programming Languages
* [Go](https://github.com/matoous/go-nanoid)
* [PHP](https://github.com/hidehalo/nanoid-php)
* [Python](https://github.com/puyuan/py-nanoid)
* [Ruby](https://github.com/radeno/nanoid.rb)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc