UNPKG

resolve-dep

Version:

Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used.

48 lines (29 loc) 1.12 kB
# resolve-dep [![NPM version](https://badge.fury.io/js/resolve-dep.png)](http://badge.fury.io/js/resolve-dep) > Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used. ## Install Install with [npm](npmjs.org): ```bash npm i resolve-dep --save ``` ## Options ### deps Type: `String|Array` Default value: `all` Valid values: `all|dependencies|devDepencies|peerDependencies` Any valid npm dependency field that can be used in package.json is a valid value for this option. ### config Type: `Object` Default value: `package.json` Pass an explicit config object to use instead of package.json. ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) **Brian Woodward** + [github/doowb](https://github.com/doowb) + [twitter/doowb](http://twitter.com/doowb) ## License Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license *** _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 06, 2014._