krarg
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    4

Package Sidebar

Install

npm i krarg

Weekly Downloads

4

Version

1.0.0

License

ISC

Last publish

Collaborators

  • karikera