const { krarg } = require('krarg');
console.log (krarg.isEmpty({})); // true
console.log (krarg.isEmpty({notempty:true})); // false
console.log (krarg.merge({a:1, b:1, d:'value'}, {a:2, c:2, d:'%d%2'})); // {a:1, b:1, c:2, d:value2};
const args = krarg.create({a:true, b:'x', c:false});
console.log (args); // --a --b x
krarg.append(args, {d:true, e:'x', f:false});
console.log (args); // --a --b x --d --e x
krarg
1.0.0 • Public • Published/krarg/
Package Sidebar
Install
npm i krarg
Weekly Downloads
1
Version
1.0.0
License
ISC