Socket
Socket
Sign inDemoInstall

args

Package Overview
Dependencies
10
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 5.0.0

7

lib/help.js

@@ -29,4 +29,3 @@ 'use strict'

parts.push([
'',
`Usage: ${this.printMainColor(name)} ${this.printSubColor(
` Usage: ${this.printMainColor(name)} ${this.printSubColor(
optionHandle + cmdHandle + value

@@ -42,3 +41,3 @@ )}`,

parts.push(['', firstBig(group) + ':', '', ''])
parts.push(['', firstBig(group) + ':', ''])

@@ -65,3 +64,3 @@ if (group === 'examples') {

const usageFilter = this.config.usageFilter
const { usageFilter } = this.config

@@ -68,0 +67,0 @@ // If filter is available, pass usage information through

'use strict'
const spawn = require('child_process').spawn
const { spawn } = require('child_process')
const path = require('path')

@@ -142,3 +142,3 @@ const camelcase = require('camelcase')

this.details.options.forEach(opt => {
availableOptions.push.apply(availableOptions, opt.usage)
availableOptions.push(...opt.usage)
})

@@ -180,3 +180,3 @@

generateExamples() {
const examples = this.details.examples
const { examples } = this.details
const parts = []

@@ -190,3 +190,3 @@

const description = this.printMainColor('- ' + examples[item].description)
parts.push(` ${description}\n\n ${usage}\n\n`)
parts.push(` ${description}\n ${usage}\n`)
}

@@ -232,3 +232,3 @@

let usage = items[item].usage
let { usage } = items[item]
let initial = items[item].defaultValue

@@ -264,5 +264,3 @@

for (const item of items) {
let usage = item.usage
let description = item.description
const defaultValue = item.defaultValue
let { usage, description, defaultValue } = item
const difference = longest - usage.length

@@ -406,3 +404,3 @@

for (const child of children) {
const usage = child.usage
const { usage } = child
const type = usage.constructor

@@ -409,0 +407,0 @@

{
"name": "args",
"version": "4.0.0",
"version": "5.0.0",
"description": "Minimal toolkit for building CLIs",

@@ -16,3 +16,3 @@ "files": [

"engines": {
"node": "> 4.0.0"
"node": ">= 6.0.0"
},

@@ -49,12 +49,12 @@ "keywords": [

"husky": "0.14.3",
"lint-staged": "7.0.4",
"prettier": "1.11.1",
"xo": "0.20.3"
"lint-staged": "7.2.0",
"prettier": "1.13.5",
"xo": "0.21.1"
},
"dependencies": {
"camelcase": "5.0.0",
"chalk": "2.3.2",
"chalk": "2.4.1",
"leven": "2.1.0",
"mri": "1.1.0"
"mri": "1.1.1"
}
}

@@ -19,3 +19,3 @@ # args

Install the package (you'll need at least version 4.0.0 of [Node](https://nodejs.org/en/)):
Install the package (you'll need at least version 6.0.0 of [Node](https://nodejs.org/en/)):

@@ -22,0 +22,0 @@ ```bash

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