Created
May 20, 2015 22:31
-
-
Save hail2u/1f119892a160edfe0fb7 to your computer and use it in GitHub Desktop.
cssfmt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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