README
node-penny
Penny add a few helper properties to generate currency from numbers.
See /examples to see how it works.
Spoiler:
require 'penny'
e = 100.EUR.add 11.50.EUR
console.log "#{e}"
d = 100.USD.sub 50.USD
console.log #{d}"
helper properties to generate currency from numbers
<script type="module">
import penny from 'https://cdn.skypack.dev/penny';
</script>
Penny add a few helper properties to generate currency from numbers.
See /examples to see how it works.
Spoiler:
require 'penny'
e = 100.EUR.add 11.50.EUR
console.log "#{e}"
d = 100.USD.sub 50.USD
console.log #{d}"