Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dargs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dargs - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

index.js

24

package.json
{
"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)
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