Lightweight implementation of Martin Fowlers Money pattern.
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --save safe-money
The UMD build is also available on jsdelivr:
<script src="https://cdn.jsdelivr.net/npm/safe-money/dist/safe-money-browser.min.js"></script>
You can find the library on window.SafeMoney
.
import SafeMoney from 'safe-money'
See the contributing file.