yards-to-meters
v1.0.1
Published
Converts yards to meters
Downloads
2
Maintainers
Readme
yardstometers.js
JavaScript conversion of yards to meters.
Install
$ npm install yards-to-meters
Usage
Node.js
var YardsToMeters = require("yardstometers");
var ytm = new YardsToMeters();
ytm.get(1);
// => 0.9144
Browser
(Add necessary <script>
tag reference to yardstometers.js
)
// YardsToMeters is autoloaded to window.YardsToMeters
var ytm = new YardsToMeters();
ytm.get(1);
// => 0.9144
Tests
Jasmine
$ npm test
License
MIT. By Josh Ause.