@billogram/money

Functions for creating and manipulating money objects

Usage no npm install needed!

<script type="module">
  import billogramMoney from 'https://cdn.skypack.dev/@billogram/money';
</script>

README

@billogram/money

Functions for creating and manipulating money objects

Install

yarn add @billogram/money

Usage

import money from '@billogram/money';

const {
    abs,
    add,
    create,
    divide,
    equals,
    hasNonZeroValue,
    hasValue,
    is,
    multiply,
    negate,
    normalize,
    round,
    split,
    subtract,
    to,
} = money;

See types for exported types.

money

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT