Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

money-converter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

money-converter - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "money-converter",
"version": "1.0.1",
"version": "1.0.2",
"description": "A npm module that looks at mutliple exchanges when determining the fx rate",

@@ -5,0 +5,0 @@ "main": "convert.js",

@@ -16,2 +16,4 @@ # Money Converter

make sure to include the base currency in the list of currencies you pass into the constructor
```javacript

@@ -28,3 +30,3 @@ var MoneyConverter = require('monver-converter');

function(done) {
money = new MoneyConverter('USD', ['CAD', 'GBP', 'EUR'], done)
money = new MoneyConverter('USD', ['CAD', 'GBP', 'EUR', 'USD'], done)
}

@@ -36,13 +38,12 @@

money.convert(1000, {from: 'USD', to: 'EUR'});
// => 913.83
// => 914
money.convert(10, {from: 'CAD', to 'EUR'});
// => 6.65
}
])
money.convert(10, {from: 'CAD', to: 'EUR'});
// => 6.655501347120076
money.convert(1, {from: 'GBP', to: 'USD'});
// => 1.50534397109739
done();
}
]);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc