Comparing version 0.1.0 to 1.0.0
{ | ||
"name": "dargs", | ||
"version": "0.1.0", | ||
"description": "Converts an object of options into an array of command-line arguments. Useful when calling command-line tools.", | ||
"version": "1.0.0", | ||
"description": "Converts an object of options into an array of command-line arguments", | ||
"repository": "sindresorhus/dargs", | ||
"keywords": [ | ||
@@ -12,4 +13,2 @@ "options", | ||
], | ||
"homepage": "https://github.com/sindresorhus/dargs", | ||
"bugs": "https://github.com/sindresorhus/dargs/issues", | ||
"author": { | ||
@@ -20,7 +19,2 @@ "name": "Sindre Sorhus", | ||
}, | ||
"main": "dargs.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/sindresorhus/dargs.git" | ||
}, | ||
"scripts": { | ||
@@ -30,15 +24,11 @@ "test": "mocha" | ||
"devDependencies": { | ||
"mocha": "~1.9.0" | ||
"mocha": "*" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
"node": ">=0.10.0" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT" | ||
} | ||
], | ||
"license": "MIT", | ||
"files": [ | ||
"dargs.js" | ||
"index.js" | ||
] | ||
} |
@@ -1,13 +0,17 @@ | ||
# dargs [![Build Status](https://secure.travis-ci.org/sindresorhus/dargs.png?branch=master)](http://travis-ci.org/sindresorhus/dargs) | ||
# dargs [![Build Status](https://travis-ci.org/sindresorhus/dargs.svg?branch=master)](https://travis-ci.org/sindresorhus/dargs) | ||
> Converts an object of options into an array of command-line arguments | ||
Basically the inverse of an argument parser like nopt or minimist. Useful when calling command-line tools. | ||
## Getting started | ||
Install: `npm install --save dargs` | ||
## Install | ||
```sh | ||
$ npm install --save dargs | ||
``` | ||
#### Example | ||
#### Usage | ||
```js | ||
@@ -41,14 +45,17 @@ var dargs = require('dargs'); | ||
## Documentation | ||
## API | ||
### dargs(options, excludes) | ||
### options | ||
#### options | ||
Object of options to convert to command-line arguments. | ||
Type: `object` | ||
Options to convert to command-line arguments. | ||
### excludes | ||
#### excludes | ||
Array of keys to exclude. | ||
Type: `array` | ||
Keys to exclude. | ||
@@ -58,2 +65,2 @@ | ||
MIT License • © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
65
2336
1