Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created May 20, 2015 22:31
Show Gist options
  • Save hail2u/1f119892a160edfe0fb7 to your computer and use it in GitHub Desktop.
Save hail2u/1f119892a160edfe0fb7 to your computer and use it in GitHub Desktop.
cssfmt
#!/usr/bin/env node
"use strict";
var fs = require("fs");
var postcss = require("postcss");
console.log(postcss().use(postcss.plugin("fmt", function () {
return function (css) {
return css.clone();
};
})).process(fs.readFileSync(process.argv[2])).css);
/*eslint-env node*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment