lihai 8d6c751f49 feat: push 2 年之前
..
.npmignore 8d6c751f49 feat: push 2 年之前
CHANGELOG.md 8d6c751f49 feat: push 2 年之前
LICENSE 8d6c751f49 feat: push 2 年之前
README.md 8d6c751f49 feat: push 2 年之前
index.js 8d6c751f49 feat: push 2 年之前
package.json 8d6c751f49 feat: push 2 年之前

README.md

css-unit-converter Build Status

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