Socket
Socket
Sign inDemoInstall

command-line-usage

Package Overview
Dependencies
4
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.0.4

7

lib/chalk-format.js
const chalk = require('chalk')
function format (str) {
return chalk(Object.assign([], { raw: [ str ] }))
}
function chalkFormat (str) {
str = str.replace(/`/g, '\\`')
const format = new Function('chalk', `'use strict'; return chalk\`${str}\``)
return format(chalk)
return format(str)
}
module.exports = chalkFormat
{
"name": "command-line-usage",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "5.0.3",
"version": "5.0.4",
"description": "Generates command-line usage information",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc