Closed mathiasbynens closed 13 years ago
Done :)
You might want to add a npm usage example to the README now:
var inliner = require('inliner');
inliner('http://remysharp.com/', function (html) {
// compressed and inlined HTML page
console.log(html);
});
What’s with the ./lib/
stuff?
I moved it in to a lib directory? Isn't that what all the cool kids do nowadays?
oooh - you mean if you're including the module via npm install...oh. yeah. dude - I'm crap at this stuff :)
If you’ve installed inliner through npm you can just do var inliner = require('inliner');
(like in the example I provided). Nothing fancy :)
As the title says. Please add a
package.json
file and publishinliner
:)