Socket
Socket
Sign inDemoInstall

cbr-rates

Package Overview
Dependencies
93
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cbr-rates

Get currency rates from Central Bank of Russia


Version published
Maintainers
1
Install size
1.84 MB
Created

Readme

Source

cbr-rates Build Status

Get currency rates from Central Bank of Russia

cbr-rates-cli - CLI for this module.

Install

npm install --save cbr-rates

Usage

import cbrRates from 'cbr-rates';

cbrRates().then(rates => {
  console.log(rates.usd); // {par: ..., value: ...}
});

cbrRates(new Date()).then(rates => {
  console.log(rates.usd); // {par: ..., value: ...}
});

API

cbrRates([date])

Return a promise that resolves to last currency rates or rates for specified date.

date

Type: date
Default: new Date()

Date for which to get rates.

License

MIT

Keywords

FAQs

Last updated on 19 Apr 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc