Sha256: b7b2b33d58ad6d6cf7e37f7a6f60ce1432348169b5ce33cb7594d8c01cde3beb
Contents?: true
Size: 589 Bytes
Versions: 23
Compression:
Stored size: 589 Bytes
Contents
# css-unit-converter [![Build Status][ci-img]][ci] Converts CSS values from one unit to another [PostCSS]: https://github.com/postcss/css-unit-converter [ci-img]: https://travis-ci.org/andyjansson/css-unit-converter.svg [ci]: https://travis-ci.org/andyjansson/css-unit-converter ## Installation ```js npm install css-unit-converter ``` ## Usage ```js var convert = require('css-unit-converter'); //convert 1 inch to pc convert(1, 'in', 'pc'); // 6 //convert 10px to cm with a maximum of 10 decimals convert(10, 'px', 'cm', 10); // 0.2645833333 ```
Version data entries
23 entries across 23 versions & 7 rubygems