Socket
Socket
Sign inDemoInstall

getopts

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getopts - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

28

index.js

@@ -17,5 +17,5 @@ const SHORTSPLIT = /$|[!-@\[-`{-~].*/g

for (var j = 0; j < len; j++) {
if (i !== j) {
curr.push(alias[j])
for (var k = 0; k < len; k++) {
if (i !== k) {
curr.push(alias[k])
}

@@ -42,4 +42,4 @@ }

} else {
for (var j = 0, end = alias.length; j < end; j++) {
out[alias[j]] = true
for (var k = 0, end = alias.length; k < end; k++) {
out[alias[k]] = true
}

@@ -107,3 +107,3 @@ }

for (var i = 0, j = 0, len = argv.length, _ = out._; i < len; i++) {
for (var i = 0, k = 0, len = argv.length, _ = out._; i < len; i++) {
var arg = argv[i]

@@ -131,6 +131,6 @@

key,
len === (j = i + 1) ||
argv[j][0] === "-" ||
len === (k = i + 1) ||
argv[k][0] === "-" ||
bools[key] !== undefined ||
argv[(i = j)],
argv[(i = k)],
alias,

@@ -147,9 +147,9 @@ unknown

match[0] ||
len === (j = i + 1) ||
argv[j][0] === "-" ||
len === (k = i + 1) ||
argv[k][0] === "-" ||
bools[arg[end - 1]] !== undefined ||
argv[(i = j)]
argv[(i = k)]
for (j = 1; j < end; ) {
set(out, arg[j], ++j !== end || value, alias, unknown)
for (k = 1; k < end; ) {
set(out, arg[k], ++k !== end || value, alias, unknown)
}

@@ -156,0 +156,0 @@ }

@@ -1,2 +0,2 @@

Copyright © 2015-present [Jorge Bucaran](https://github.com/JorgeBucaran)
Copyright © 2015-present [Jorge Bucaran](https://github.com/jorgebucaran)

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "getopts",
"description": "Node.js CLI options parser.",
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",
"license": "MIT",
"repository": "getopts/getopts",
"repository": "jorgebucaran/getopts",
"author": "Jorge Bucaran",
"files": ["index.js"],
"files": [
"index.js"
],
"keywords": [

@@ -21,5 +23,5 @@ "cli",

"devDependencies": {
"nyc": "^11.2.1",
"nyc": "^11.4.1",
"tape": "^4.8.0"
}
}
# Getopts
[![Travis CI](https://img.shields.io/travis/JorgeBucaran/getopts/master.svg)](https://travis-ci.org/JorgeBucaran/getopts)
[![Codecov](https://img.shields.io/codecov/c/github/JorgeBucaran/getopts/master.svg)](https://codecov.io/gh/JorgeBucaran/getopts)
[![Travis CI](https://img.shields.io/travis/jorgebucaran/getopts/master.svg)](https://travis-ci.org/jorgebucaran/getopts)
[![Codecov](https://img.shields.io/codecov/c/github/jorgebucaran/getopts/master.svg)](https://codecov.io/gh/jorgebucaran/getopts)
[![npm](https://img.shields.io/npm/v/getopts.svg)](https://www.npmjs.org/package/getopts)

@@ -5,0 +5,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