You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
11 months ago | |
|---|---|---|
| .. | ||
| .npmignore | 11 months ago | |
| CHANGELOG.md | 11 months ago | |
| LICENSE | 11 months ago | |
| README.md | 11 months ago | |
| index.js | 11 months ago | |
| package.json | 11 months ago | |
README.md
css-unit-converter 
Converts CSS values from one unit to another
Installation
npm install css-unit-converter
Usage
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