Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returns empty path for require'd json file w/ no extension #90

Open
boneskull opened this issue Aug 11, 2020 · 1 comment
Open

returns empty path for require'd json file w/ no extension #90

boneskull opened this issue Aug 11, 2020 · 1 comment

Comments

@boneskull
Copy link

So, given foo.json, apparently this is valid:

require('./foo')

(And they say you shouldn't require JSON files...)

At any rate, when filing-cabinet receives a partial of ./foo, it returns an empty string instead of /path/to/foo.json.

@mrjoelkemp
Copy link
Collaborator

Thanks for reporting! I wonder if we need to add json to https://github.com/dependents/node-filing-cabinet/blob/master/index.js. Would that work?

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

No branches or pull requests

3 participants