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

1.0.1 • Public • Published

CurrencySymbol

This library was generated with Angular CLI version 10.2.5.

A simple lightweight library that returns a currency symbol from the country code.

Example

import { Component } from '@angular/core';
import { CurrencySymbolService } from 'currency-symbol';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  currency;

  constructor(private currencySymbolService: CurrencySymbolService) {
    this.currency = this.currencySymbolService.currencySymbol('GB');
  }
}

/country-currency-symbol/

    Package Sidebar

    Install

    npm i country-currency-symbol

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    21.5 kB

    Total Files

    18

    Last publish

    Collaborators

    • sushmitha_shettigar