css-unit-converter
Converts CSS values from one unit to another
Last updated 7 years ago by andyjansson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (7 years ago)

4 Versions

  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE