monobank-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

monobank-js

A Node.js wrapper for the Monobank API

Installation

yarn add monobank-js

Usage

import { Monobank } from 'monobank-js'

const monobank = new Monobank({ token: 'token' })

monobank.getCurrency().then(({ data }) => {
  console.log(data)
  // =>
  // [
  //   {
  //     currencyCodeA: 840,
  //     currencyCodeB: 980,
  //     date: 1601068206,
  //     rateBuy: 28.12,
  //     rateSell: 28.4083
  //   },
  //   {
  //     currencyCodeA: 978,
  //     currencyCodeB: 980,
  //     date: 1601068206,
  //     rateBuy: 32.65,
  //     rateSell: 33.1104
  //   },
  // ...
})

Contributing

We would love you to contribute to monobank-js, pull requests are very welcome!

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i monobank-js

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

803 kB

Total Files

62

Last publish

Collaborators

  • hashimoto