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

expand-args

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expand-args - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

22

index.js

@@ -30,3 +30,17 @@ /*!

if (Array.isArray(orig)) {
res[key] = expandEach(orig);
if (key !== '_') {
res[key] = expandEach(orig);
continue;
} else {
var len = orig.length, i = -1;
while (++i < len) {
var ele = orig[i];
if (/\W/.test(ele)) {
extend(res, expand(ele));
} else {
res._ = res._ || [];
res._.push(ele);
}
}
}
continue;

@@ -44,2 +58,3 @@ }

}
res[key] = orig;

@@ -50,2 +65,7 @@ }

function extend(a, b) {
for (var key in b) a[key] = b[key];
return a;
};
function expandEach(arr) {

@@ -52,0 +72,0 @@ return arr.map(function (ele) {

2

package.json
{
"name": "expand-args",
"description": "Expand parsed command line arguments using expand-object.",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/jonschlinkert/expand-args",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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