Package Exports
- @xmr-core/xmr-money
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xmr-core/xmr-money) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@xmr-core/xmr-money
Helpers for formatting and parsing Moneroj.
Features
- Format a Moneroj BigNumber into string
- Format with the XMR coin symnol
- Convert units into base units
Usage
import { formatMoneyFullSymbol } from "@xmr-core/xmr-money";
const amt = "30000";
const parsedAmtWithSym = formatMoneyFullSymbol(amt);Installation
yarn add @xmr-core/xmr-moneyLicense
The project is licensed under the MIT license.