Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 924 Bytes

File metadata and controls

39 lines (23 loc) · 924 Bytes

CurrencyStack node library Build Status

client library for CurrencyStack

Installation

yarn add CurrencyStack-node

usage

Get currency conversion rates:

const currencyStack = require("./dist/index");

const main = async () => {
    const currencyStackClient = new currencyStack.Client('api key here');

    const response = await currencyStackClient.currencyApi.GetCurrencyConvertion("AED", ["USD", "EUR", "egp"])
        .catch(e => console.log(e.toString()));

    console.log(response);
};


main();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT