1.0.0 • Published 6 years ago

krarg v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

krarg

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