Today I ran npm i --save money and tried to get it to work in my Node.js application:
"use strict";
const fx = require('money');
let converted = fx.convert(1000, {from: "GBP", to: "HKD"});
Unfortunately, all I get is this:
node_modules\money\money.js:78
if ( !rates[to] || !rates[from] ) throw "fx error";
Today I ran
npm i --save moneyand tried to get it to work in my Node.js application:Unfortunately, all I get is this: