miles-to-kilometers
v1.0.3
Published
Converts miles to kilometers
Downloads
2
Maintainers
Readme
milestokilometers.js
JavaScript conversion of miles to kilometers.
Install
$ npm install miles-to-kilometers
Usage
Node.js
var MilesToKilometers = require("milestokilometers");
var mtk = new MilesToKilometers();
mtk.get(1);
// => 1.60934
Browser
(Add necessary <script>
tag reference to milestokilometers.js
)
// MilesToKilometers is autoloaded to window.MilesToKilometers
var mtk = new MilesToKilometers();
mtk.get(1);
// => 1.60934
Tests
Jasmine
$ npm test
License
MIT. By Josh Ause.