Comparing version 0.1.3 to 0.2.0
/*! | ||
* money.js / fx() v0.1.3 | ||
* Copyright 2011, Joss Crowcroft | ||
* money.js / fx() v0.2 | ||
* Copyright 2014 Open Exchange Rates | ||
* | ||
@@ -11,3 +11,3 @@ * JavaScript library for realtime currency conversion and exchange rate calculation. | ||
* For details, examples and documentation: | ||
* http://josscrowcroft.github.com/money.js/ | ||
* http://openexchangerates.github.io/money.js/ | ||
*/ | ||
@@ -22,3 +22,3 @@ (function(root, undefined) { | ||
// Current version. | ||
fx.version = '0.1.3'; | ||
fx.version = '0.2'; | ||
@@ -25,0 +25,0 @@ |
{ | ||
"name" : "money", | ||
"description" : "JavaScript currency conversion library.", | ||
"homepage": "http://josscrowcroft.github.com/money.js", | ||
"keywords" : ["money", "fx", "currency", "exchange", "utilities", "accounting"], | ||
"author": "Joss Crowcroft <josscrowcroft@gmail.com> (http://www.josscrowcroft.com)", | ||
"contributors" : [], | ||
"homepage": "http://openexchangerates.github.io/money.js", | ||
"keywords" : ["money", "fx", "currency", "convert", "conversion", "exchange", "rate", "utilities", "accounting", "number", "cart", "ecommerce"], | ||
"author": "Open Exchange Rates <info@openexchangerates.org> (https://www.openexchangerates.org)", | ||
"contributors" : [ | ||
"Open Exchange Rates <info@openxchangerates.org> (https://openexchangerates.org)", | ||
"Joss Crowcroft <josscrowcroft@gmail.com> (http://www.josscrowcroft.com)" | ||
], | ||
"dependencies" : {}, | ||
"repository" : {"type": "git", "url": "git://github.com/josscrowcroft/money.js.git"}, | ||
"repository" : {"type": "git", "url": "git://github.com/openexchangerates/money.js.git"}, | ||
"main" : "money.js", | ||
"version" : "0.1.3" | ||
"version" : "0.2.0" | ||
} |
# money.js / fx() | ||
Dead simple and tiny JavaScript library for realtime currency conversion and exchange rate calculation, from any currency, to any currency. | ||
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](http://josscrowcroft.github.com/open-exchange-rates/)** project, or with static/cached/approximate/justplainwrong exchange rates. | ||
**money.js** is lightweight, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module. | ||
Designed for seamless integration with the **[Open Exchange Rates API](https://openexchangerates.org "Free reliable exchange rates/currency conversion data API")**, but can be integrated with any source of currency data or with static/cached/approximate exchange rates. | ||
Visit the plugin homepage for demos and documentation: **http://openexchangerates.github.io/money.js/** | ||
## Quick Examples: | ||
```javascript | ||
@@ -11,3 +18,3 @@ // Simple syntax: | ||
// With some chaining sugar: | ||
// Method chaining: | ||
fx(1.99).from("USD").to("AED"); | ||
@@ -18,6 +25,6 @@ | ||
// And simple setup, allowing this: | ||
fx(1).convert(); | ||
// Default parameters: | ||
fx(5318008).convert(); | ||
// Oh yeah and nodeJS / AMD: | ||
// Supports nodeJS / AMD: | ||
var fx = require('money'); | ||
@@ -27,20 +34,20 @@ require(["money"], function(fx) { /* ... */ }); | ||
Visit **[josscrowcroft.github.com/money.js](http://josscrowcroft.github.com/money.js/)** for more info, examples and full documentation. | ||
## Changelog | ||
** 0.1.3** - Fix typo in nodeJS module definition | ||
**0.2** | ||
* Now maintained by Open Exchange Rates | ||
* Improved documentation | ||
** 0.1.2** - Strengthened up module definition similar to accounting.js | ||
**0.1.3** - Fixed typo in nodeJS module definition | ||
** 0.1.1** - Add fallback in case base rate is not in rates object (e.g. `"USD": 1`) to avoid errors. | ||
**0.1.2** - Strengthened up module definition similar to accounting.js | ||
** 0.1.0** - Unexciting version number bump. Oh yeah and it has a license now. | ||
**0.1.1** - Added fallback when base rate is not in rates object (e.g. `"USD": 1`) to avoid errors | ||
** 0.0.2** | ||
**0.1.0** - Added license; bumped version | ||
**0.0.2** | ||
* Adds basic parsing to `fx()`, so that you can pass a formatted string, like so: `fx("$1.99 HKD").to("GBP")` | ||
* Some cleanup and improved comments and docs | ||
** 0.0.1** - First release | ||
**0.0.1** - First release |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
51
0
8541
5
1