directory() and exports.json() #694

eabruzzese opened this Issue Nov 18, 2012 · 2 comments


None yet
2 participants

I'm relatively new to NodeJS, so forgive my ignorance in this regard. This is more than likely my own lack of knowledge, but I can't figure out what I'm doing wrong.

As I understand it, the exports.json() method should allow me to output a directory listing as a JSON object. Is that correct? If so, how would I go about doing that? I'm using purely connect in this case.

Thank you,



tj commented Dec 6, 2012

hmm there may be a bug, ill take a look


tj commented Dec 6, 2012

added some tests, and confirmed that it's fine:

GET / .json

tj closed this Dec 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment