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

currency_contry_exchange

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency_contry_exchange

Changes in formats, currencies, documents and labels depending on location

  • 1.4.1
  • npm
  • Socket score

Version published
Weekly downloads
82
decreased by-60.39%
Maintainers
0
Weekly downloads
 
Created
Source

TypeScript + Vite

Changes in formats, currencies, documents and labels depending on location

Node version

>= v20 

Running the app

# development
$ pnpm run dev

Import

import { Faastlocation } from 'faastlocation';
const location = new Faastlocation();

Methods the app

labels({ contry = '', label = 'cliente' }): string
Devuelve una etiqueta específica basada en el país y la etiqueta proporcionada.

validateFormaterRut({ contry = '', rut = '', isValidate = false }): string
Valida o formatea un RUT (Rol Único Tributario) según el país especificado.

formaterCurrency({ contry = '', currency = 0 }): string
Formatea una cantidad de moneda específica según el país.

formaterInputProps({ contry = '' }): object
Devuelve propiedades de entrada específicas según el país.

formaterAmount({ contry = '', amount = '' }): string
Formatea una cantidad según el país especificado. 

Example

const location = new Faastlocation();

const label = location.labels({ contry: 'cl', label: 'cliente' });
console.log(label);

const formattedRut = location.validateFormaterRut({ contry: 'pe', rut: '123456789', isValidate: true });
console.log(formattedRut);

const formattedCurrency = location.formaterCurrency({ contry: 'cl', currency: 1000 });
console.log(formattedCurrency);

Note: Before publishing, run npm, commit the version and upload it to git, then change the versioning in the package.json

FAQs

Package last updated on 15 Oct 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