1.0.2 • Published 6 years ago

bignumber-template v1.0.2

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

Big Number Templates

Have you ever been confused by BigNumber code? Long chaining method make it really hard to read:

(a + b) * (c + d)

becomes:

new BigNumber(a).plus(b).multipliedBy(new BigNumber(c).plus(d))

Have you ever wished things can be simpler? Like:

bnt`(${a} + ${b}) * (${c} + ${d})`

or

bnt(`(a + b) * (c + d)`)({a,b,c,d})

Then your wishes has become true.

Install

npm i --save bignumber-template
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago