Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken for html. :( #6

Open
mfrobben opened this issue Dec 18, 2012 · 2 comments
Open

Broken for html. :( #6

mfrobben opened this issue Dec 18, 2012 · 2 comments

Comments

@mfrobben
Copy link

TypeError: Property 'beauty' of object # is not a function
at /Users/mrobben/devproj/sold-backend/node_modules/beautifier/bin/beautifier.js:3:478
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)

@nullifiedaccount3
Copy link

+1

@luileito
Copy link

luileito commented Oct 25, 2016

The style_html function is not exported, so just add this line at the end of /usr/lib/node_modules/beautifier/lib/beautifier.js:

"undefined" !== typeof exports && (exports.html_beautify = style_html);

Cheers,
Luis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants