This package has been deprecated

Author message:

Package no longer supported. Contact support@npmjs.com for more info.

postcss-round-float

1.0.0 • Public • Published

postcss-round-float

A PostCSS plugin for rounding floating-point numbers in CSS file

INSTALL

$ npm install postcss-round-float

USAGE

var fs = require("fs");
var postcss = require("postcss");

var css = fs.readFileSync("input.css", "utf8");
postcss([
  require("postcss-round-float")(2)
]).process(css).then(function (result) {
  fs.writeFileSync("output.css", result.css);
});

You can specify how many decimal places to keep by integer (I set 2 decimal places in this example).

LICENSE

MIT: http://hail2u.mit-license.org/2016

Package Sidebar

Install

npm i postcss-round-float

Weekly Downloads

77

Version

1.0.0

License

MIT

Last publish

Collaborators

  • npm