rDrama/node_modules/css-unit-converter
Aevann1 67a1595b9b fdsfd 2021-12-13 22:28:32 +00:00
..
CHANGELOG.md fdsfd 2021-12-13 22:28:32 +00:00
LICENSE fdsfd 2021-12-13 22:28:32 +00:00
README.md fdsfd 2021-12-13 22:28:32 +00:00
index.d.ts fdsfd 2021-12-13 22:28:32 +00:00
index.js fdsfd 2021-12-13 22:28:32 +00:00
package.json fdsfd 2021-12-13 22:28:32 +00:00

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