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 2.1.0 to 3.0.0

4

index.js

@@ -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));

7

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

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