css-unit-converter
Converts CSS values from one unit to another
Last updated 5 years ago by andyjansson .
MIT · Repository · Bugs · Original npm
$ cnpm install css-unit-converter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.2                                ...           latest (5 years ago)

1 Versions

  • 1.1.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org