node-bestchange

1.0.7 • Public • Published

NODEJS bestchange.ru API

Api for bestchange.ru on nodejs.

Install

$ npm i node-bestchange --save

Usage

async (() => {
    const Api = require('node-bestchange')
    const api = await (new Api()).load();
    
    // btc (93) to Tinkoff (105)
    const rates = await api.getRates().filter(93, 105)
    
    const currencies = await api.getCurrencies() // collection currencies
    console.log(currencies.getData()) // list currencies
})()

Terms of use

To use the API, you need to add a link to https://bestchange.ru where currency rates will be used.

Contribution

Pull requests are always welcome.

Readme

Keywords

Package Sidebar

Install

npm i node-bestchange

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

702 kB

Total Files

12

Last publish

Collaborators

  • yegorus