Skip to content

Cannot get it to work on Node.js #31

Description

@bennycode

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions