Socket
Socket
Sign inDemoInstall

command-line-usage

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-usage - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

7

lib/content-section.js
'use strict'
const Section = require('./section')
const Content = require('./content')

@@ -13,4 +12,8 @@ class ContentSection extends Section {

if (section.raw) {
this.add(section.content)
const arrayify = require('array-back')
const chalkFormat = require('./chalk-format')
const content = arrayify(section.content).map(line => chalkFormat(line))
this.add(content)
} else {
const Content = require('./content')
const content = new Content(section.content)

@@ -17,0 +20,0 @@ this.add(content.lines())

@@ -10,3 +10,3 @@ 'use strict'

const arrayify = require('array-back')
arrayify(content).forEach(line => this.list.push(chalkFormat(line)))
arrayify(content).forEach(line => this.list.push(line))
}

@@ -13,0 +13,0 @@ emptyLine () {

{
"name": "command-line-usage",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "5.0.2",
"version": "5.0.3",
"description": "Generates command-line usage information",

@@ -28,3 +28,3 @@ "repository": "https://github.com/75lb/command-line-usage.git",

"chalk": "^2.3.2",
"table-layout": "^0.4.2",
"table-layout": "^0.4.3",
"typical": "^2.6.1"

@@ -31,0 +31,0 @@ },

@@ -17,3 +17,3 @@ [![view on npm](http://img.shields.io/npm/v/command-line-usage.svg)](https://www.npmjs.org/package/command-line-usage)

```js
const getUsage = require('command-line-usage')
const commandLineUsage = require('command-line-usage')

@@ -40,3 +40,3 @@ const sections = [

]
const usage = getUsage(sections)
const usage = commandLineUsage(sections)
console.log(usage)

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