senchalabs / cssbeautify

Reindent and reformat CSS
http://www.senchalabs.org/cssbeautify/
Apache License 2.0
674 stars 133 forks source link

add support for Node module #8

Closed pdehaan closed 12 years ago

pdehaan commented 12 years ago

It would be nice to be able to run this as a Node module without needing to modify the source.

ariya commented 12 years ago

Implemented in 5dfc9fdc79be2c2770e5286e55cb9b95e621e329.

kb19 commented 10 years ago

I believe this breaks integration support for front-end frameworks that are being served using node (i.e. I'm using Thorax with Grunt.js). Maybe including something that checks to see if the 'process' variable is undefined could help.

I've opened a pull request here https://github.com/senchalabs/cssbeautify/pull/31.