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

tr-currency

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tr-currency

This library supporting Angular version 18

  • 19.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
105
increased by114.29%
Maintainers
0
Weekly downloads
 
Created
Source

TrCurrency

This library supporting Angular version 18

Install

npm i tr-currency

Code usage

This package have an standalone pipe. If you want to use it you have to import TrCurrencyPipe your standalone component or your module.

Installation

import { TrCurrencyPipe } from 'tr-currency';

imports: [ 
    TrCurrencyPipe
]

Usage

{{money | trCurrency}}

Output

14505.50 ==> 14.505,00

Usage

//If you want to use symbol, you can use parameter that.
{{money | trCurrency : '₺'}}

Output

14505.50 ==> 14.505,50

Usage

//If you want the symbol to be first, you can stil do it with a parameter.
{{money | trCurrency : '₺' : true}}

Output

14505.50 ==> ₺14.505,50

Usage

//If you want the more or less fraction, you can stil do it with a parameter.
{{money | trCurrency : '₺' : true, 1}}
{{money | trCurrency : '₺' : true, 2}}
{{money | trCurrency : '₺' : true, 3}}

Output

14505.50 ==> ₺14.505,5
14505.50 ==> ₺14.505,50
14505.50 ==> ₺14.505,500

FAQs

Package last updated on 27 Nov 2024

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