Lines Matching full:cb
58 ## resolve(id, opts={}, cb)
60 Asynchronously resolve the module path string `id` into `cb(err, res [, pkg])`, where `pkg` (if def…
80 * `opts.readPackage(readFile, pkgfile, cb)` - function to asynchronously read and parse a package.j…
83 * cb - callback
126 isFile: function isFile(file, cb) {
129 return cb(null, stat.isFile() || stat.isFIFO());
131 if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
132 return cb(err);
135 isDirectory: function isDirectory(dir, cb) {
138 return cb(null, stat.isDirectory());
140 if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
141 return cb(err);
144 realpath: function realpath(file, cb) {
147 if (realPathErr && realPathErr.code !== 'ENOENT') cb(realPathErr);
148 else cb(null, realPathErr ? file : realPath);
151 readPackage: function defaultReadPackage(readFile, pkgfile, cb) {
153 if (readFileErr) cb(readFileErr);
157 cb(null, pkg);
159 cb(null);