Skip to content

Kikobeats/force-resolve

Repository files navigation

Force Resolve

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

Ensure to resolve the path of a NPM dependency. Similar to force-require but return the path of the dependency instead.

Install

npm install force-resolve --save

Usage

var forceResolve = require('force-resolve');

// [
//   '/Users/kikobeats/Projects/force-resolve/node_modules/mocha',
//   '/usr/local/lib/node_modules/mocha'
// ]

API

forceResolve.(<String>, [cb])

Try to load a dependency based in the name. If cb is provided then the call will be resolved as sync interface.

License

MIT © Kiko Beats

About

Ensure to resolve the path of a NPM dependency.

Resources

License

Stars

Watchers

Forks

Packages

No packages published