Skip to content

Commit

Permalink
Addresses #6. Updated .resolve() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
catamphetamine committed Jun 17, 2016
1 parent ccd584d commit 204bfee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Converts anyting (an undefined, a string, a JSON object, a function, a regular e

#### .resolve(path, module)

Resolves a requireable `path` to a real filesystem path to a javascript (or json) file. Resolution is performed relative to the `module` (javascript file) passed as the second parameter (resolves `npm link`, global `node_modules`, etc). It's just an alias to the native Node.js path resolution function.
Resolves a requireable `path` to a real filesystem path to a javascript (or json) file. Resolution is performed relative to the `module` (javascript file) passed as the second parameter (resolves `npm link`, global `node_modules`, etc). It's just an alias to the native Node.js path resolution function. Will throw `Error: Cannot find module '...'` if the `path` isn't resolved to an existing javascript (or json) file.

## Gotchas

Expand Down
2 changes: 1 addition & 1 deletion source/require hacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const require_hacker =
occupied_file_extensions: new Set(),

// logging
log: new Log('require-hook', { debug: false }), // this.options.debug
log: new Log('require-hacker', { debug: false }), // this.options.debug

// installs a require() path resolver
//
Expand Down

0 comments on commit 204bfee

Please sign in to comment.