JSPM

accounting-big

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 166
  • Score
    100M100P100Q80412F
  • License MIT

Arbitrary-precision number, money and currency formatting

Package Exports

  • accounting-big

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 (accounting-big) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

accounting-big

Version Build Status Coverage Status Dependency Status

Arbitrary-precision number, money and currency formatting for the browser or the server.

accounting-big is a fork of accounting.js which has been updated to support arbitrary-precision numbers. It can handle any number without risk of rounding or precision errors, which is extremely important when working with money.

Installation

yarn add accounting-big

Usage

import 'accounting' from 'accounting-big';

accounting.formatMoney('1234567.2');
// => "$1,234,567.20"

The full API can be found on the accounting.js website.

Testing

yarn test