scurker / currency.js

A javascript library for handling currencies

Home Page:https://currency.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Npm 2.0.4 doesn't match src/currency.js

mgatto opened this issue · comments

src/currency.js uses ES6 const and so forth while version 2.0.4 on npm reverts to var and other code differences. Which one is authoritative, when both have been current for 2-3 years? Should npm be updated?

This is intentional. The package that gets shipped in npm is transpiled from the source code and both an es module and a common js module are both included in the npm package. Bundlers will typically pick the correct one based on package.json metadata.