Socket
Socket
Sign inDemoInstall

coa

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coa - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

coa.d.ts

6

lib/arg.js

@@ -5,3 +5,3 @@ 'use strict';

CoaParam = require('./coaparam'),
Color = require('./color');
chalk = require('chalk');

@@ -49,5 +49,5 @@ /**

res.push(Color('lpurple', this._name.toUpperCase()), ' : ', this._title);
res.push(chalk.magentaBright(this._name.toUpperCase()), ' : ', this._title);
this._req && res.push(' ', Color('lred', '(required)'));
this._req && res.push(' ', chalk.redBright('(required)'));

@@ -54,0 +54,0 @@ return res.join('');

@@ -10,5 +10,5 @@ /* eslint-disable class-methods-use-this */

Q = require('q'),
chalk = require('chalk'),
CoaObject = require('./coaobject'),
Color = require('./color'),
Opt = require('./opt'),

@@ -216,4 +216,4 @@ Arg = require('./arg'),

&& res.push([
'', '', Color('lred', this._fullName()), Color('lblue', 'COMMAND'),
Color('lgreen', '[OPTIONS]'), Color('lpurple', '[ARGS]')
'', '', chalk.redBright(this._fullName()), chalk.blueBright('COMMAND'),
chalk.greenBright('[OPTIONS]'), chalk.magentaBright('[ARGS]')
].join(' '));

@@ -223,4 +223,4 @@

&& res.push([
'', '', Color('lred', this._fullName()),
Color('lgreen', '[OPTIONS]'), Color('lpurple', '[ARGS]')
'', '', chalk.redBright(this._fullName()),
chalk.greenBright('[OPTIONS]'), chalk.magentaBright('[ARGS]')
].join(' '));

@@ -238,3 +238,3 @@

_usage() {
return Color('lblue', this._name) + ' : ' + this._title;
return chalk.blueBright(this._name) + ' : ' + this._title;
}

@@ -377,3 +377,3 @@

for(const item of desc)
item._def &&
item._def !== undefined &&
!params.hasOwnProperty(item._name) &&

@@ -380,0 +380,0 @@ item._saveVal(params, item._def);

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

CoaParam = require('./coaparam'),
Color = require('./color');
chalk = require('chalk');

@@ -136,3 +136,3 @@ /**

if(this._short) {
res.push('-', Color('lgreen', this._short));
res.push('-', chalk.greenBright(this._short));
this._flag || res.push(' ' + nameStr);

@@ -143,3 +143,3 @@ res.push(', ');

if(this._long) {
res.push('--', Color('green', this._long));
res.push('--', chalk.green(this._long));
this._flag || res.push('=' + nameStr);

@@ -150,3 +150,3 @@ }

this._req && res.push(' ', Color('lred', '(required)'));
this._req && res.push(' ', chalk.redBright('(required)'));

@@ -153,0 +153,0 @@ return res.join('');

{
"name": "coa",
"description": "Command-Option-Argument: Yet another parser for command line options.",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "http://github.com/veged/coa",

@@ -17,2 +17,3 @@ "author": "Sergey Berezhnoy <veged@ya.ru> (http://github.com/veged)",

"index.js",
"coa.d.ts",
"README.ru.md"

@@ -28,2 +29,4 @@ ],

"dependencies": {
"@types/q": "^1.5.1",
"chalk": "^2.4.1",
"q": "^1.1.2"

@@ -50,3 +53,4 @@ },

},
"types": "./coa.d.ts",
"license": "MIT"
}
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