JSPM

@xmr-core/xmr-money

0.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q47595F
  • License See LICENSE.TXT. Copyright (c) 2014-2018, MyMonero.com. All rights reserved.

Helpers for formatting and parsing Moneroj

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-money

License


The project is licensed under the MIT license.