1.0.2 • Published 6 years ago
bnm-api v1.0.2
BNM Open API wrapper
Javascript warapper for Bank Negara open API. (previously known as my-bnm)
Installation
NPM
npm install bnm-apiUsage example
Import
var bnm = require('bnm-api')The wrapper can only be used in async methods or with .then().
bnm.function(value).then(response => console.log(response))or
async function run(){
    return bnm.function(value)
}
run().then(res => console.log(res))For more examples and usage, please refer to the wiki.
Development setup
Describe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.
git clone https://github.com/izqalan/bnm-api
npm install
npm run testContributing
- Fork it (https://github.com/izqalan/bnm-api/fork)
 - Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
 
