{"name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","version":"0.1.0","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"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"dependencies":{"cwd":"^0.7.0","expand-tilde":"^1.2.0","resolve":"^1.1.6"},"verb":{"related":{"list":["cwd","look-up","expand-tilde","resolve"]}},"gitHead":"88577bc6cd5ae28439e77698c68543c4ddc658c0","_id":"resolve-file@0.1.0","_shasum":"f7ccfd59d10553acd14b5a403f146717e9bb6055","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"f7ccfd59d10553acd14b5a403f146717e9bb6055","tarball":"http://registry-npm.ywwl.com/resolve-file/download/resolve-file-0.1.0.tgz","integrity":"sha512-NkdRZQK1idGzwVpKWaigd3G5LYbxVSYZ43f3CpzqU/iPc7M6W8++cCAjaP3oGR7/BDi8NGMluZOiGCgzo9i/Pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP03eXzcib9+03vigsfdKWuk+5/mmMD3tjS2gLF2t3uAiEAkVbmXbBwXV5DVNmpvYpHiaZqe8HkiKrCKBac1KblSR8="}],"size":2669,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"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":1438448400664,"_cnpm_publish_time":1438448400664,"dist-tags":{"latest":"0.3.0"}}