New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

command-line-basics

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-basics - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

4

CHANGES.md
# CHANGES for command-line-basics
## 0.5.3
- Fix: Avoid duplication, e.g., if `sections` is borrowing from `definitions`
## 0.5.2

@@ -4,0 +8,0 @@

2

package.json
{
"name": "command-line-basics",
"version": "0.5.2",
"version": "0.5.3",
"description": "Auto-add help and version CLI and update notification checks",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -89,1 +89,10 @@ # command-line-basics

```
There is also exported an `autoAdd` method which takes the same arguments
and returns the (potentially `help`/`version` and `header` enhanced)
`definitions` and `sections`. It is also used internally by `cliBasics`.
## To-dos
1. Could auto-add `content` based on `pkg.description` and `Options` as
`sections[1].header`.

@@ -46,3 +46,7 @@ 'use strict';

optionDefinitions.push(versionInfo);
if (cliSections[1] && cliSections[1].optionList) {
if (cliSections[1] && cliSections[1].optionList &&
cliSections[1].optionList.every(
(def) => def.name !== 'version' && def.alias !== 'v'
)
) {
cliSections[1].optionList.push(versionInfo);

@@ -56,3 +60,7 @@ }

optionDefinitions.push(helpInfo);
if (cliSections[1] && cliSections[1].optionList) {
if (cliSections[1] && cliSections[1].optionList &&
cliSections[1].optionList.every(
(def) => def.name !== 'help' && def.alias !== 'h'
)
) {
cliSections[1].optionList.push(helpInfo);

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