xchg

1.0.1 • Public • Published

Myanmar Exchange Rate (CB Bank)

Usage

Require axios

npm install axios --save

npm install xchg --save

const xchg = require('xchg');

xchg.allInKyat((res)=>{
    console.log(res);
}, $DATE )
xchg.rate( $CURRENCY_CODE ,(res)=>{
    console.log(res);
}, $DATE )
xchg.rate( $CURRENCY_CODE ,(res)=>{
    console.log(res);
}) //latest rate
  • allInKyats function will give all results in Kyats

  • get function will give base on 1 $CURRENCY_CODE

  • $DATE can be empty or (DD-MM-YYYY)

  • $DATE empty || null value will get today Exchange Rate

  • $CURRENCY_CODE , Example - 'USD' , 'MMK' , 'SGD' ( it will give results base on 1 )

Package Sidebar

Install

npm i xchg

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

4.09 kB

Total Files

3

Last publish

Collaborators

  • necessarylion