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