Comparing version 1.0.2 to 1.0.3
@@ -6,3 +6,4 @@ const commandLineArgs = require('command-line-args') | ||
{ name: 'format', alias: 'f', type: String }, | ||
{ name: 'help', type: Boolean } | ||
{ name: 'help', type: Boolean }, | ||
{ name: 'version', alias: 'v', type: Boolean } | ||
] | ||
@@ -12,4 +13,5 @@ | ||
if (options.help) { | ||
console.log('csvfmt usage: https://github.com/pokle/csvfmt') | ||
if (options.help || options.version) { | ||
console.error('csvfmt', require(require('path').join(__dirname, 'package.json')).version) | ||
console.error('Usage at: https://github.com/pokle/csvfmt') | ||
process.exit(0); | ||
@@ -19,5 +21,4 @@ } | ||
options.files = options._unknown || [] | ||
delete options._unknown | ||
module.exports = options |
{ | ||
"name": "csvfmt", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "bin": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6597
31
2