remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

Get this up on npm! #1

Closed mathiasbynens closed 13 years ago

mathiasbynens commented 13 years ago

As the title says. Please add a package.json file and publish inliner :)

remy commented 13 years ago

Done :)

mathiasbynens commented 13 years ago

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);
});
remy commented 13 years ago

Like that: https://github.com/remy/inliner/blob/master/README.md ?

mathiasbynens commented 13 years ago

What’s with the ./lib/ stuff?

remy commented 13 years ago

I moved it in to a lib directory? Isn't that what all the cool kids do nowadays?

remy commented 13 years ago

oooh - you mean if you're including the module via npm install...oh. yeah. dude - I'm crap at this stuff :)

mathiasbynens commented 13 years ago

If you’ve installed inliner through npm you can just do var inliner = require('inliner'); (like in the example I provided). Nothing fancy :)