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