Neodymium Plated Magnet

    getbankapi-bnm-utils
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.5 • Public • Published

    bnm-utils

    A library that provide utils for integrating National Bank of Moldova api. Part of getbankapi-bnm monorepo.

    GitHub Multipack

    Getting started.

    Install via npm to use with node: npm i getbankapi-bnm

    Or via cdn to use in browsers:

    <!--index.html-->
    <script src="https://cdn.jsdelivr.net/npm/getbankapi-bnm@latest/build/index.js"></script>

    Get exchange rates

    const bnmApi = require('getbankapi-bnm')
     
    // Get exchange rates for today
    const todayExchangeRates = await bnmApi.getExchangeRates()
     
    // Get exchange rates for a custom date
    const yesterdayDate = new Date().getDate() - 1 // OR with moment.js "moment().subtract(1, 'days').toDate()"
    const yesterdayExchangeRates = await bnmApi.getExchangeRates(yesterdayDate)
     
    console.log(todayExchangeRates, yesterdayExchangeRates)

    Contributing

    1. Fork it!
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Author

    getbankapi-bnm © GHERCIU, Released under the MIT License.
    Authored and maintained by GHERCIU with help from contributors (list).

    If you like this repository star⭐ and watch👀 on GitHub

    Install

    npm i getbankapi-bnm-utils

    DownloadsWeekly Downloads

    1

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    6.52 kB

    Total Files

    5

    Last publish

    Collaborators

    • gherciu_gheorghe