@xmr-core/xmr-money
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

@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.

Package Sidebar

Install

npm i @xmr-core/xmr-money

Weekly Downloads

0

Version

0.0.8

License

See LICENSE.TXT. Copyright (c) 2014-2018, MyMonero.com. All rights reserved.

Unpacked Size

24.4 kB

Total Files

25

Last publish

Collaborators

  • henrynguyen5