Package Exports
- google-currency
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (google-currency) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node.js - google
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.
Installation
npm install --save google-currency
API Example
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
})