Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: added X.json to the LOAD_AS_FILE sudo code
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
MauriceButler authored and indutny committed Jul 7, 2014
1 parent e2f2a20 commit 71fc4d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/modules.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ in pseudocode of what require.resolve does:
LOAD_AS_FILE(X)
1. If X is a file, load X as JavaScript text. STOP
2. If X.js is a file, load X.js as JavaScript text. STOP
3. If X.node is a file, load X.node as binary addon. STOP
3. If X.json is a file, parse X.json to a JavaScript Object. STOP
4. If X.node is a file, load X.node as binary addon. STOP

LOAD_AS_DIRECTORY(X)
1. If X/package.json is a file,
Expand Down

0 comments on commit 71fc4d9

Please sign in to comment.