centimeters-to-inches
v1.1.1
Published
Converts centimeters to inches
Downloads
6
Maintainers
Readme
centimeterstoinches.js
JavaScript conversion of centimeters to inches.
Install
$ npm install centimeters-to-inches
Usage
Node.js
var CentimetersToInches = require("centimeters-to-inches");
var cti = new CentimetersToInches();
cti.get(1);
// => 0.393700787402
Browser
(Add necessary <script>
tag reference to centimeterstoinches.js
)
// CentimetersToInches is autoloaded to window.CentimetersToInches
var cti = new CentimetersToInches();
cti.get(1);
// => 0.393700787402
Tests
Jasmine
$ npm test
License
MIT. By Josh Ause.