Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abskmj/exchangeratesapi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abskmj/exchangeratesapi

Node client for exchangeratesapi.io

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

Node client for exchangeratesapi.io

Get all the rates on current date

let exchange = require('@abskmj/exchangeratesapi').getClient();

exchange({}, function(error, response){
    if(error){
        return console.error(error.stack || error);
    }
    
    console.log(response);
});

Get all the rates on a particular date

let exchange = require('@abskmj/exchangeratesapi').getClient();

exchange({ date:"2018-01-01" }, function(error, response){
    if(error){
        return console.error(error.stack || error);
    }
    
    console.log(response);
});

Get all the rates of a particular currency

let exchange = require('@abskmj/exchangeratesapi').getClient();

exchange({ base:"USD" }, function(error, response){
    if(error){
        return console.error(error.stack || error);
    }
    
    console.log(response);
});

Get specific rates of a particular currency

let exchange = require('@abskmj/exchangeratesapi').getClient();

exchange({ 
    base:"USD",
    symbols: "GBP,AUD"
}, function(error, response){
    if(error){
        return console.error(error.stack || error);
    }
    
    console.log(response);
});

Supports callbacks and promises

exchange().then(response =>{
    console.log(response);
});

Keywords

FAQs

Package last updated on 13 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc