
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
dargs-object
Advanced tools
Fork of https://github.com/sindresorhus/dargs. Converts an object of options into an array of command-line arguments. Useful when calling command-line tools. Now object-aware
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Converts an object of options into an array of command-line arguments
Basically the inverse of an argument parser like nopt or minimist.
Forked from https://github.com/sindresorhus/dargs
$ npm install --save dargs-object
var dargs = require('dargs-object');
var obj = {
foo: 'bar',
hello: true, // results in only the key being used
cake: false, // ignored
camelCase: 5, // camelCase is slugged to `camel-case`
multiple: ['value', 'value2'], // converted to multiple arguments
object: {test:'value'},
sad: ':('
};
var options={
excludes:['sad'],
convertCamelCase:true,
joinLists:false
};
console.log(dargs(obj, options));
/*
[
'--foo', 'bar',
'--hello',
'--camel-case', '5',
'--multiple', 'value',
'--multiple', 'value2',
'--object.test', 'value'
]
*/
Type: Object
an object containing options to convert to command-line arguments.
Type: Object
Properties:
MIT © Ryan Bridges, based off the original dargs by Sindre Sorhus
0.2.0
FAQs
Fork of https://github.com/sindresorhus/dargs. Converts an object of options into an array of command-line arguments. Useful when calling command-line tools. Now object-aware
We found that dargs-object 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.