node-filing-cabinet icon indicating copy to clipboard operation
node-filing-cabinet copied to clipboard

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

Open boneskull opened this issue 5 years ago • 1 comments

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.

boneskull avatar Aug 11 '20 22:08 boneskull

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?

mrjoelkemp avatar Aug 15 '20 12:08 mrjoelkemp