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 1.0.0 to 2.0.0

6

index.js

@@ -20,7 +20,7 @@ 'use strict';

if (typeof val === 'string') {
args.push('--' + flag, val);
args.push('--' + flag + '=' + val);
}
if (typeof val === 'number' && isNaN(val) === false) {
args.push('--' + flag, '' + val);
args.push('--' + flag + '=' + ('' + val));
}

@@ -30,3 +30,3 @@

val.forEach(function (arrVal) {
args.push('--' + flag, arrVal);
args.push('--' + flag + '=' + arrVal);
});

@@ -33,0 +33,0 @@ }

{
"name": "dargs",
"version": "1.0.0",
"version": "2.0.0",
"description": "Converts an object of options into an array of command-line arguments",

@@ -5,0 +5,0 @@ "repository": "sindresorhus/dargs",

@@ -35,7 +35,7 @@ # dargs [![Build Status](https://travis-ci.org/sindresorhus/dargs.svg?branch=master)](https://travis-ci.org/sindresorhus/dargs)

[
'--foo', 'bar',
'--foo=bar',
'--hello',
'--camel-case', '5',
'--multiple', 'value',
'--multiple', 'value2'
'--camel-case=5',
'--multiple=value',
'--multiple=value2'
]

@@ -42,0 +42,0 @@ */

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