
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
currency_contry_exchange
Advanced tools
Changes in formats, currencies, documents and labels depending on location
Changes in formats, currencies, documents and labels depending on location
>= v20
# development
$ pnpm run dev
import { Faastlocation } from 'faastlocation';
const location = new Faastlocation();
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.
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
Changes in formats, currencies, documents and labels depending on location
We found that currency_contry_exchange demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.