nodejs-currency-converter

1.0.2 • Public • Published

NodeJS Currency Converter

Build Status Dependencies Status DevDependencies Status

A simple currency converter based on fixer.io.

Getting started

Installation

This package can be installed using npm

npm install nodejs-currency-converter

Usage

Import nodejs-currency-converter and use it as a Promise.

const convertCurrency = require('nodejs-currency-converter');

convertCurrency(1, 'USD', 'BRL').then(response => response);

Without the last parameter, the function will return the currency based on the current day conversion. To pass the date to convert, pass the last parameter in the format YYYY-MM-DD.

const convertCurrency = require('nodejs-currency-converter');

convertCurrency(1, 'EUR', 'BRL', '2015-08-29').then(response => response);

Issues

If any issues are found, they can be reported here.

License

This project is licensed under the MIT license.

Package Sidebar

Install

npm i nodejs-currency-converter

Weekly Downloads

151

Version

1.0.2

License

MIT

Unpacked Size

6.7 kB

Total Files

8

Last publish

Collaborators

  • arthurmbandeira