Comparing version 2.1.0 to 3.0.0
@@ -26,2 +26,6 @@ 'use strict'; | ||
if (val === false) { | ||
args.push(createArg('no-' + key)); | ||
} | ||
if (typeof val === 'string') { | ||
@@ -28,0 +32,0 @@ args.push(createArg(key, val)); |
{ | ||
"name": "dargs", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Convert an object of options into an array of command-line arguments", | ||
@@ -25,6 +25,7 @@ "repository": "sindresorhus/dargs", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "node test.js" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
"array-equal": "^1.0.0", | ||
"ava": "^0.0.4" | ||
}, | ||
@@ -31,0 +32,0 @@ "engines": { |
@@ -23,3 +23,3 @@ # dargs [![Build Status](https://travis-ci.org/sindresorhus/dargs.svg?branch=master)](https://travis-ci.org/sindresorhus/dargs) | ||
hello: true, // results in only the key being used | ||
cake: false, // ignored | ||
cake: false, // prepends `no-` before the key | ||
camelCase: 5, // camelCase is slugged to `camel-case` | ||
@@ -26,0 +26,0 @@ multiple: ['value', 'value2'], // converted to multiple arguments |
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
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
3072
35
2