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![This package contains built-in TypeScript declarations TypeScript icon, indicating that this package has built-in type declarations](https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg)
1.0.0 • Public • Published Package Sidebar
Install
npm i krarg
Weekly Downloads
4
Version
1.0.0
License
ISC