node-filing-cabinet
node-filing-cabinet copied to clipboard
returns empty path for require'd json file w/ no extension
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.
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?