Socket
Socket
Sign inDemoInstall

accounting-big

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    accounting-big

Arbitrary-precision number, money and currency formatting


Version published
Weekly downloads
383
decreased by-4.96%
Maintainers
1
Install size
397 kB
Created
Weekly downloads
 

Changelog

Source

1.0.1

  • [FIXED] Bundled code is now transpiled to ES5 for older browsers.

Readme

Source

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

Keywords

FAQs

Last updated on 19 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc