Asynchronous require.resolve() implementation
Asynchronous implementation of the node
except you can pass in the file to compute paths relatively to along with your
require.paths without updating the global copy (which doesn't even work in
var resolve = require('node-module-resolver');
Asynchronously search for the package/filename string
according to the
Y=opts.basedir. Callback is fired with the located module or
without arguments if nothing is found.
paths :basedir : __dirnameextensions : '.js'readFileSync : fsreadFileSyncreturn pathexistSyncfile && fsstatSyncfileisFile
Optionally you can specify a
opts.packageFilter function to map the contents
JSON.parse()'d package.json files.
If nothing is found, all of the directories in
opts.paths are searched.
Return whether a package is in core.
To the Node team for documenting what their mad-cap system is, and James Halliday for the synchronous implementation Node-Module-Resolver is forked from.