directory() and exports.json() #694

Closed
eabruzzese opened this Issue Nov 18, 2012 · 2 comments

Comments

Projects
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,

Eric

Member

tj commented Dec 6, 2012

hmm there may be a bug, ill take a look

Member

tj commented Dec 6, 2012

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

GET / .json
["History.md","LICENSE","Makefile","Readme.md","docs","examples","index.js","lib","node_modules","package.json","support","test","test.js"]

tj closed this Dec 6, 2012

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