Notable Pottery Manufacturer
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

crnc

0.0.0-dev.18 • Public • Published

-c-r-n-c-
currency conversions and formatting for the web

  • works with exchangeratesapi.io out of the box
  • npm install crnc
    import {downloadExchangeRates, convertAndFormatCurrency} from "crnc"

currency tools

  1. async function downloadExchangeRates ( params ): Promise< results >
    download up-to-date currency exchange information from the internet

  2. function convertCurrency ( params ): number
    exchange monetary value from one currency into another

  3. function formatCurrency ( params ): Money
    express monetary value as a human-readable string

  4. function convertAndFormatCurrency ( params ): Money
    exchange and format money in one shot

ecommerce

  1. async function ascertainEcommerceDetails ( params ): Promise< details >
    establish some ecommerce-related currency details

  2. function assumeUserCurrency ( params ): string
    assume what currency the user might want to see

Install

npm i crnc

DownloadsWeekly Downloads

2

Version

0.0.0-dev.18

License

ISC

Unpacked Size

54.7 kB

Total Files

64

Last publish

Collaborators

  • avatar