Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
expand-args
Advanced tools
Expand parsed command line arguments using expand-object.
Example
var minimist = require('minimist');
var expandArgs = require('expand-args');
var argv = minimist(['--set=a:b,c:d']);
//=> { _: [], set: 'a:b,c:d' }
expandArgs(argv);
//=> { _: [], set: [{ a: 'b' }, { c: 'd' }] }
Visit expand-objectto see the full range of options and features or to create expansion-related issues.
Install with npm
$ npm i expand-args --save
var expandArgs = require('expand-args');
expandArgs({set: 'a:b'})
//=> {set: {a: 'b'}}
expandArgs({set: 'a.b.c:d'})
//=> {set: {a: {b: {c: 'd'}}}}
expandArgs({set: 'a:b,c:d'})
//=> {set: [{a: 'b'}, {c: 'd'}]}
expandArgs({set: 'a.b.c:d,e,f'})
//=> {set: {a: {b: {c: ['d', 'e', 'f']}}}}
expandArgs({'a:b': true})
//=> {a: 'b'}
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 06, 2015.
FAQs
Expand parsed command line arguments using expand-object.
The npm package expand-args receives a total of 29,277 weekly downloads. As such, expand-args popularity was classified as popular.
We found that expand-args demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.