tr-currency
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"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 | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
17409
10
162
47
1
1