npm.io
0.2.0 • Published 11 years ago

chain-args

Licence
MIT
Version
0.2.0
Deps
1
Vulns
0
Weekly
0

Chain Args

NPM version Code Climate

Chain Args allows you to take a function you'd usually call like this:

setOptions({
    color: 'blue',
    amount: 8
    loud: true
});

And change it to a function you can call like this:

setOptions2()
    .color('blue')
    .amount(8)
    .loud(true);