marcuswestin/require

README and examples/connect.js need to be updated

Opened this issue · 2 comments

From what it took to get the 'require/server' working as connect middleware, it looks like you expect an object like

{
    root: 'require',
    path: path.resolve(__dirname,'static'),
    host: HOST,
    port: PORT
}

but this is at odds with the contents of connect.js and the README.
I wasn't quite sure what path and root referred to respectively, but I think I figured it out.

Could you update the docs please? Or I will with what I understood once I get a moment.

Hey,

Thanks for the note! I'm not surprised it's out of date; thanks for the heads up.

Any clarifications you've got, feel free to fork and fix.

Cheers!

Thanks marcus! That was really quick. :)
Sure, I'll do it when I get some time.