Lines Matching refs:resolve
1 # resolve <sup>[![Version Badge][2]][1]</sup>
3 …the [node `require.resolve()` algorithm](https://nodejs.org/api/modules.html#modules_all_together)…
16 asynchronously resolve:
19 var resolve = require('resolve/async'); // or, require('resolve')
20 resolve('tap', { basedir: __dirname }, function (err, res) {
28 /home/substack/projects/node-resolve/node_modules/tap/lib/main.js
31 synchronously resolve:
34 var resolve = require('resolve/sync'); // or, `require('resolve').sync
35 var res = resolve('tap', { basedir: __dirname });
41 /home/substack/projects/node-resolve/node_modules/tap/lib/main.js
47 var resolve = require('resolve');
48 var async = require('resolve/async');
49 var sync = require('resolve/sync');
58 ## resolve(id, opts={}, cb)
60 Asynchronously resolve the module path string `id` into `cb(err, res [, pkg])`, where `pkg` (if def…
78 * opts.realpath - function to asynchronously resolve a potential symlink to its real path
112 * opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.
169 ## resolve.sync(id, opts)
171 Synchronously resolve the module path string `id`, returning the result and
188 * opts.realpathSync - function to synchronously resolve a potential symlink to its real path
220 * opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.
280 npm install resolve
287 [1]: https://npmjs.org/package/resolve
288 [2]: https://versionbadg.es/browserify/resolve.svg
289 [5]: https://david-dm.org/browserify/resolve.svg
290 [6]: https://david-dm.org/browserify/resolve
291 [7]: https://david-dm.org/browserify/resolve/dev-status.svg
292 [8]: https://david-dm.org/browserify/resolve#info=devDependencies
293 [11]: https://nodei.co/npm/resolve.png?downloads=true&stars=true
294 [license-image]: https://img.shields.io/npm/l/resolve.svg
296 [downloads-image]: https://img.shields.io/npm/dm/resolve.svg
297 [downloads-url]: https://npm-stat.com/charts.html?package=resolve
298 [codecov-image]: https://codecov.io/gh/browserify/resolve/branch/main/graphs/badge.svg
299 [codecov-url]: https://app.codecov.io/gh/browserify/resolve/
300 …/img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/browserify/resolve
301 [actions-url]: https://github.com/browserify/resolve/actions