JSPM

@robinpath/currency

0.3.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 98
    • Score
      100M100P100Q33701F
    • License MIT

    Live exchange-rate lookup and currency conversion with optional credentialed providers (exchangerate-api, fixer.io)

    Package Exports

    • @robinpath/currency

    Readme

    @robinpath/currency

    Currency module for RobinPath.

    Category Functions Auth License

    Why use this module?

    The currency module lets you:

    • getLatestRates
    • convert
    • convertBatch
    • getHistoricalRates
    • listCurrencies

    All functions are callable directly from RobinPath scripts with a simple, consistent API.

    Installation

    robinpath add @robinpath/currency

    Quick Start

    No credentials needed — start using it right away:

    currency.convert

    Available Functions

    Function Description
    currency.getLatestRates getLatestRates
    currency.convert convert
    currency.convertBatch convertBatch
    currency.getHistoricalRates getHistoricalRates
    currency.listCurrencies listCurrencies
    currency.getRate getRate
    currency.getSupportedCodes getSupportedCodes
    currency.getTimeSeriesRates getTimeSeriesRates
    currency.formatCurrency formatCurrency
    currency.getPopularRates getPopularRates

    Examples

    convert

    currency.convert

    convertBatch

    currency.convertBatch

    getHistoricalRates

    currency.getHistoricalRates

    Integration with RobinPath

    import { RobinPath } from "@wiredwp/robinpath";
    import Module from "@robinpath/currency";
    
    const rp = new RobinPath();
    rp.registerModule(Module.name, Module.functions);
    rp.registerModuleMeta(Module.name, Module.functionMetadata);
    
    const result = await rp.executeScript(`
      currency.convert
    `);

    Full API Reference

    See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

    License

    MIT