This is the package I’m trying to integrate in my Meteor app:
Specifically this function:
http://nashdot.github.io/accounting-js/docs/function/index.html#static-function-formatMoney
First things first, I ran npm install accounting-js --save
in my project folder. Everything goes well.
Here’s what it looks like:
Then I imported it in my file:
import formatMoney from 'lib/formatMoney.js' // Problem here!
export default class Format {
static formatMoney(moneyInteger) {
return formatMoney(moneyInteger);
}
}
The package itself seems really easy to use, I know I’m messing up somewhere, anyone have an idea how to integrate it?