big-currency
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

BigCurrency

This library was generated with Angular CLI version 7.2.0.

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 big-currency

import the module in your AppModule

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

then you can use it as if using CurrencyPipe, but instead of | currency use | bigCurrency

The package uses big.js, so you can fine-tune precision with Big properties sucha as DP and PE.

Package Sidebar

Install

npm i big-currency

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

264 kB

Total Files

30

Last publish

Collaborators

  • amdor