This module allows you to convert currency based on google finance converter by scraping the results. It does NOT use the Google API. PLEASE DO NOT ABUSE THIS.
This is not sponsored, supported, or affiliated with Google Inc.
npm install --save google-currency
This prints out the value from USD to IDR.
const converter = require('google-currency')
const options = {
from: "USD",
to: "IDR",
amount: 1
}
converter(options).then(value => {
console.log(value) // Return object
})