@leicht.io/croncurrency
Node.js Wrapper around https://exchangeratesapi.io/ which ***is a free service for current and historical foreign exchange rates published by the European Central Bank.***
Last updated 8 months ago by leicht.io .
ISC · Original npm · Tarball · package.json
$ cnpm install @leicht.io/croncurrency 
SYNC missed versions from official npm registry.

CronCurrency

Node.js Wrapper around https://exchangeratesapi.io/ which is a free service for current and historical foreign exchange rates published by the European Central Bank.

This library makes it possible to get the values a single time via an Observable or infinite times using node-cron.

Install

npm install @leicht/croncurrency@0.0.1

Run Demo

npm run development

Build

npm run production

Usage

import {CronCurrency} from "../src/CronCurrency";

GET

import {CronCurrency} from "../src/CronCurrency";

new CronCurrency()
  .base('DKK')
  .with(['EUR', 'GBP', 'USD'])
  .every("* * * * *") // Every minute. Remote this line to make a single request.
  .subscribe(data => {
      console.log('data', data);
      // TODO: Save e.g. in DB
});

Current Tags

  • 0.0.2                                ...           latest (8 months ago)

1 Versions

  • 0.0.2                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |