New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tr-currency

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tr-currency - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

esm2022/lib/tr-currency.pipe.mjs

23

package.json
{
"name": "tr-currency",
"version": "0.0.7",
"version": "0.0.8",
"peerDependencies": {
"@angular/common": "^16.0.2",
"@angular/core": "^16.0.2"
"@angular/common": "^16.2.0",
"@angular/core": "^16.2.0"
},

@@ -11,6 +11,19 @@ "dependencies": {

},
"sideEffects": false,
"repository": {
"type": "git",
"url": "git@github.com:TanerSaydam/my-tr-currency-library.git"
"url": "https://github.com/TanerSaydam/npm-tr-currency"
},
"module": "fesm2022/tr-currency.mjs",
"typings": "index.d.ts",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./index.d.ts",
"esm2022": "./esm2022/tr-currency.mjs",
"esm": "./esm2022/tr-currency.mjs",
"default": "./fesm2022/tr-currency.mjs"
}
}
}
# TrCurrency
This library supporting Angular version 16
## 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.
Example:
`
## Installation
```typescript
imports: [
TrCurrencyPipe
]
`
```
Usage:
`{{money | trCurrency}}`.
## Usage
```typescript
{{money | trCurrency}}
```
Output: `14505.50 ==> 14.505,00`
## Output
```typescript
14505.50 ==> 14.505,00
```
Usage:
`{{money | trCurrency : '₺'}}`.
## Usage
```typescript
//If you want to use symbol, you can use parameter that.
{{money | trCurrency : '₺'}}
```
Output: `14505.50 ==> 14.505,00 ₺`
## Output
```typescript
14505.50 ==> 14.505,00 ₺
```
Note: If you want to use symbol, you can use parameter that.
## Usage
```typescript
//If you want the symbol to be first, you can stil do it with a parameter.
{{money | trCurrency : '₺' : true}}
```
Example: `{{money | trCurrency: '$'}}`
Output: `14505.50 ==> 14.505,00 $`
## Output
```typescript
14505.50 ==> ₺14.505,00
```
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