Socket
Book a DemoInstallSign in
Socket

plugin-tigre-currency

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-tigre-currency

Conversão de valores monetários

latest
npmnpm
Version
1.0.1
Version published
Maintainers
3
Created
Source

Como utilizar:

Instale o plugin:

  • npm install plugin-tigre-currency

Importar o plugin para uso:

  • import { currencyUSA, currencyBRL, currency} from "plugin-tigre-currency";

Utilização:

FunçãoSaída
currencyUSA(10)$10.00
currencyBRL(10)R$ 10,00
currency(10, {locale: 'pt-BR', currency: 'BRL'})R$ 10,00

A função currency pode receber um objeto contendo as seguintes propriedades:

Propriedade
styleDefault currency
precisionDefault 2
localeExemplo: pt-BR ou en-US
currencyExemplo: BRL ou USD

FAQs

Package last updated on 24 Mar 2021

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