This repository has been archived on 2020-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
Syllabus/themes/piratecare/node_modules/css-unit-converter
Marcell Mars c832f9bfdb hugo stuff... 2020-03-05 05:10:52 +01:00
..
.npmignore hugo stuff... 2020-03-05 05:10:52 +01:00
CHANGELOG.md hugo stuff... 2020-03-05 05:10:52 +01:00
LICENSE hugo stuff... 2020-03-05 05:10:52 +01:00
README.md hugo stuff... 2020-03-05 05:10:52 +01:00
index.js hugo stuff... 2020-03-05 05:10:52 +01:00
package.json hugo stuff... 2020-03-05 05:10:52 +01: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