senchalabs / cssbeautify

Reindent and reformat CSS

Home Page:http://www.senchalabs.org/cssbeautify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add support for Node module

pdehaan opened this issue · comments

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

Implemented in 5dfc9fd.

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 #31.