JSPM

  • Created
  • Published
  • Downloads 11287195
  • Score
    100M100P100Q228811F
  • License MIT

Convert values with PostCSS (e.g. ms -> s)

Package Exports

  • postcss-convert-values

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-convert-values) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

postcss-convert-values Build Status NPM version Dependency Status

Convert values with PostCSS (e.g. ms -> s)

Install

With npm do:

npm install postcss-convert-values --save

Example

var postcss = require('postcss');

var css = 'h1 { font-size: 16px; width: 0em }';
console.log(postcss([ require('postcss-convert-values') ]).process(css).css);

// => 'h1 { font-size: 1pc; width: 0 }'

Note that this plugin only covers conversions for duration and absolute length values. For color conversions, use postcss-colormin.

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Ben Briggs