Skip to content

money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS

Notifications You must be signed in to change notification settings

gabrielgreen/money.js

 
 

Repository files navigation

money.js / fx()

Dead simple and tiny JavaScript library for realtime currency conversion and exchange rate calculation, from any currency, to any currency.

Can be easily used with the free, hourly-updating exchange rates from the Open Source Exchange Rates API project, or with static/cached/approximate/justplainwrong exchange rates.

// Simple syntax:
fx.convert(1000, {from: "GBP", to: "HKD"});

// With some chaining sugar:
fx(1.99).from("USD").to("AED");

// And settings, allowing this:
fx(1).convert();

// Oh yeah and nodeJS / AMD:
var fx = require('money');
require(["money"], function(fx) { /* ... */ });

Visit josscrowcroft.github.com/money.js for more info, examples and full documentation.

Changelog

0.0.1

  • First release

About

money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS

Resources

Stars

Watchers

Forks

Packages

No packages published