Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bignumber-currency

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bignumber-currency

An Angular pipe for handling currencies with big numbers. Derived from Angular currency pipe.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

BigNumberCurrency

Purpose

Originally Angular CurrencyPipe does not let you use big numbers, they rely on JavaScript number precision. This Angular library solves that issue.

Usage

After installing with

npm i bignumber-currency

import the module in your AppModule

@NgModule({
	declarations: [
		AppComponent
	],
	imports: [
		BigNumberCurrencyModule
	],
	bootstrap: [AppComponent]
})
export class AppModule {
}

then you can use it as if using CurrencyPipe, but instead of | currency use | bigNumberCurrency the difference is that you can pass a BigNumber as input (or anything else originally supported of course). See tests for examples.

The package uses bignumber.js, so you can fine-tune precision with BigNumber's properties and config.

Keywords

FAQs

Package last updated on 22 Sep 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc