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

opts.extensions should include '.json' #19

Closed
SLaks opened this issue May 10, 2013 · 3 comments
Closed

opts.extensions should include '.json' #19

SLaks opened this issue May 10, 2013 · 3 comments

Comments

@SLaks
Copy link

SLaks commented May 10, 2013

Node's require() can resolve JSON files without passing the extension.

@ghost
Copy link

ghost commented Jul 21, 2016

I would like to see this too. It is documented in Node's pseudocode as well.

3. If X.json is a file, parse X.json to a JavaScript Object.  STOP

eush77 pushed a commit to eush77/node-resolve that referenced this issue Nov 15, 2016
@ljharb
Copy link
Member

ljharb commented Dec 13, 2016

It also needs to include the .node extension.

@ljharb
Copy link
Member

ljharb commented Jun 16, 2018

Closing this in favor of #166, to centralize further discussion.

@ljharb ljharb closed this as completed Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants