Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
101
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 5.0.3 to 5.0.4

23

bin/nanoid.js

@@ -11,14 +11,13 @@ #!/usr/bin/env node

if (process.argv.includes('--help') || process.argv.includes('-h')) {
print(`
Usage
$ nanoid [options]
Options
-s, --size Generated ID size
-a, --alphabet Alphabet to use
-h, --help Show this help
Examples
$ nanoid -s 15
S9sBF77U6sDB8Yg
$ nanoid --size 10 --alphabet abc
bcabababca`)
print(`Usage
$ nanoid [options]
Options
-s, --size Generated ID size
-a, --alphabet Alphabet to use
-h, --help Show this help
Examples
$ nanoid -s 15
S9sBF77U6sDB8Yg
$ nanoid --size 10 --alphabet abc
bcabababca`)
process.exit()

@@ -25,0 +24,0 @@ }

{
"name": "nanoid",
"version": "5.0.3",
"description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
"version": "5.0.4",
"description": "A tiny (109 bytes), secure URL-friendly unique string ID generator",
"keywords": [

@@ -6,0 +6,0 @@ "uuid",

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

* **Small.** 130 bytes (minified and gzipped). No dependencies.
* **Small.** 109 bytes (minified and brotlied). No dependencies.
[Size Limit] controls the size.

@@ -16,0 +16,0 @@ * **Safe.** It uses hardware random generator. Can be used in clusters.

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