Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoid - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 1.0.7
* Fix documentation.
## 1.0.6

@@ -5,0 +8,0 @@ * Fix documentation.

2

package.json
{
"name": "nanoid",
"version": "1.0.6",
"version": "1.0.7",
"description": "A tiny (146 bytes), secure URL-friendly unique string ID generator",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,2 +8,11 @@ # Nano ID

**Safe.** It uses cryptographically strong random APIs
and tests distribution of symbols.
**Small.** 146 bytes (minified and gzipped). No dependencies.
It uses [Size Limit] to control size.
**Compact.** It uses a larger alphabet than UUID (`A-Za-z0-9_~`).
As result it could reduce ID size from 36 to 21 symbols.
```js

@@ -14,11 +23,2 @@ var nanoid = require('nanoid')

**Safe.** It uses cryptographically strong random APIs
and guarantees a proper distribution of symbols.
**Small.** Only 146 bytes (minified and gzipped). No dependencies.
It uses [Size Limit] to control size.
**Compact.** It uses a larger alphabet than UUID (`A-Za-z0-9_~`)
and has a similar number of unique IDs in just 21 symbols instead of 36.
The generator supports Node.js and [all browsers] starting from IE 11.

@@ -88,3 +88,3 @@

uuid/v4 315,344 ops/sec
shortid 83,250 ops/sec
shortid 33,717 ops/sec
```

@@ -174,3 +174,3 @@

* [Website to choice ID size] and keep ID collision probability low.
* [ID size calculator] to choice smaller ID size depends on your case.
* [`nanoid-dictionary`] with popular alphabets to use with `nanoid/generate`.

@@ -180,2 +180,4 @@ * [`nanoid-cli`] to generate ID from CLI.

[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary
[ID size calculator]: https://alex7kom.github.io/nano-nanoid-cc/
[`nanoid-cli`]: https://github.com/twhitbeck/nanoid-cli

@@ -182,0 +184,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc