Sha256: b7b2b33d58ad6d6cf7e37f7a6f60ce1432348169b5ce33cb7594d8c01cde3beb

Contents?: true

Size: 589 Bytes

Versions: 23

Compression:

Stored size: 589 Bytes

Contents

# css-unit-converter [![Build Status][ci-img]][ci]

Converts CSS values from one unit to another

[PostCSS]: https://github.com/postcss/css-unit-converter
[ci-img]:  https://travis-ci.org/andyjansson/css-unit-converter.svg
[ci]:      https://travis-ci.org/andyjansson/css-unit-converter


## Installation

```js
npm install css-unit-converter
```

## Usage


```js
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
```

Version data entries

23 entries across 23 versions & 7 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/css-unit-converter/README.md
disco_app-0.18.0 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.18.2 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.16.1 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.15.2 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.18.4 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.18.1 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.14.0 test/dummy/node_modules/css-unit-converter/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/css-unit-converter/README.md
boring_generators-0.5.0 tmp/templates/app_template/node_modules/css-unit-converter/README.md
boring_generators-0.4.0 tmp/templates/app_template/node_modules/css-unit-converter/README.md
enju_library-0.3.8 spec/dummy/node_modules/css-unit-converter/README.md
jester-data-8.0.0 node_modules/css-unit-converter/README.md
ezii-os-5.2.1 node_modules/css-unit-converter/README.md
ezii-os-2.0.1 node_modules/css-unit-converter/README.md
ezii-os-1.1.0 node_modules/css-unit-converter/README.md
ezii-os-1.0.0 node_modules/css-unit-converter/README.md
ezii-os-0.0.0.1.0 node_modules/css-unit-converter/README.md
ezii-os-0.0.0.0.1 node_modules/css-unit-converter/README.md