{"name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","version":"0.2.2","homepage":"https://github.com/doowb/resolve-file","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/resolve-file.git"},"bugs":{"url":"https://github.com/doowb/resolve-file/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.10.0","expand-tilde":"^2.0.1","extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","global-modules":"^0.2.3","homedir-polyfill":"^1.0.0","lazy-cache":"^2.0.1","resolve":"^1.1.7"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.4","gulp-mocha":"^2.2.0","gulp-unused":"^0.1.2","mocha":"^2.5.3","npm-install-global":"^0.1.0"},"keywords":["file","resolve"],"verb":{"related":{"list":["cwd","expand-tilde","look-up","resolve"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb"]},"gitHead":"64aacce8f474e9bfecc8ef4d37253e82a041b01b","_id":"resolve-file@0.2.2","_shasum":"14dbec5a19d384f5d6dc64a29fd662815d317696","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"14dbec5a19d384f5d6dc64a29fd662815d317696","tarball":"http://registry-npm.ywwl.com/resolve-file/download/resolve-file-0.2.2.tgz","integrity":"sha512-3t2k4iUeMlX3PbjgZPcKzILg8HEtl0VW/lS8G+k4FCgj3kNn1uTOv6YJtm192rYMFpq9abzfJ2xd5W6ibOwVag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGZjY/KcwzbcAN8qB3wGTc9MeCb5zBaUTLY7uX9TMByQIgdhSsqWk48dogNGsUY+s/xK+0KwKm2jrIdqks16cgysk="}],"size":4067,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.2.2.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resolve-file-0.2.2.tgz_1476916299842_0.24254241050221026"},"directories":{},"readme":"# resolve-file [![NPM version](https://img.shields.io/npm/v/resolve-file.svg?style=flat)](https://www.npmjs.com/package/resolve-file) [![NPM downloads](https://img.shields.io/npm/dm/resolve-file.svg?style=flat)](https://npmjs.org/package/resolve-file) [![Linux Build Status](https://img.shields.io/travis/doowb/resolve-file.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/resolve-file) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/resolve-file.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/resolve-file)\n\n> Resolve an absolute file path from local directories, local node_modules or global node_modules.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save resolve-file\n```\n\n## Usage\n\n```js\nvar resolveFile = require('resolve-file');\n```\n\n## API\n\n### [resolve](index.js#L33)\n\nResolve the path to a file located in one of the following places:\n\n* local to the current project (`'./index.js'`)\n* absolute (`'/usr/something.rc'`)\n* node module \"main\" file (`'cwd'`)\n* specific file inside a node module (`'cwd/LICENSE'`)\n* file located in user's home directory (`'~/.npmrc'`)\n\n**Example**\n\n```js\nvar fp = resolve('./index.js')\n//=> /path/to/resolve-file/index.js\n```\n\n**Params**\n\n* `name` **{String}**: Filename to resolve\n* `options` **{Object}**: Additional options to specify `cwd`\n* `returns` **{String}**: Resolved `filepath` if found\n\n### [.file](index.js#L61)\n\nResolve the path to a file located in one of the following places:\n\n* local to the current project (`'./index.js'`)\n* absolute (`'/usr/something.rc'`)\n* node module \"main\" file (`'cwd'`)\n* specific file inside a node module (`'cwd/LICENSE'`)\n* file located in user's home directory (`'~/.npmrc'`)\n\n**Example**\n\n```js\nvar file = resolve.file('./index.js')\n//=> {\n//=>   cwd: '/path/to/resolve-file',\n//=>   path: '/path/to/resolve-file/index.js'\n//=> }\n```\n\n**Params**\n\n* `name` **{String}**: Filename to resolve\n* `options` **{Object}**: Additional options to specify `cwd`\n* `returns` **{Object}**: File object with resolved `path` if found.\n\n## About\n\n### Related projects\n\n* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://github.com/jonschlinkert/cwd) | [homepage](https://github.com/jonschlinkert/cwd \"Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)\")\n* [expand-tilde](https://www.npmjs.com/package/expand-tilde): Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the… [more](https://github.com/jonschlinkert/expand-tilde) | [homepage](https://github.com/jonschlinkert/expand-tilde \"Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.\")\n* [look-up](https://www.npmjs.com/package/look-up): Faster drop-in replacement for find-up and findup-sync. | [homepage](https://github.com/jonschlinkert/look-up \"Faster drop-in replacement for find-up and findup-sync.\")\n* [resolve](https://www.npmjs.com/package/resolve): resolve like require.resolve() on behalf of files asynchronously and synchronously | [homepage](https://github.com/substack/node-resolve#readme \"resolve like require.resolve() on behalf of files asynchronously and synchronously\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor**<br/> | \n| --- | --- |\n| 13 | [doowb](https://github.com/doowb) |\n| 7 | [jonschlinkert](https://github.com/jonschlinkert) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](http://twitter.com/doowb)\n\n### License\n\nCopyright © 2016, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT license](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 19, 2016._","publish_time":1476916301382,"_cnpm_publish_time":1476916301382,"dist-tags":{"latest":"0.3.0"}}