Skip to content

Instantly share code, notes, and snippets.

@tleen
Created August 3, 2013 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tleen/6146417 to your computer and use it in GitHub Desktop.
Save tleen/6146417 to your computer and use it in GitHub Desktop.
Using html-minifier in node
Not totally obvious from the documentation, but to use html-minifier in node, you need to import the .minify function
! var minify = require('html-minifier');
var minify = require('html-minifier').minify,
Did not see a node usage pattern out there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment