{"_id":"resolve-file","_rev":"227894","name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:43:59.000Z","created":"2015-08-01T17:00:00.664Z","0.3.0":"2016-12-31T04:09:03.637Z","0.2.2":"2016-10-19T22:31:41.382Z","0.2.1":"2016-08-17T20:14:47.681Z","0.2.0":"2016-06-06T17:42:36.175Z","0.1.0":"2015-08-01T17:00:00.664Z"},"users":{},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/resolve-file.git"},"versions":{"0.3.0":{"name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","version":"0.3.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","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.10.0","expand-tilde":"^2.0.2","extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","homedir-polyfill":"^1.0.1","lazy-cache":"^2.0.2","resolve":"^1.2.0"},"devDependencies":{"global-modules":"^0.2.3","gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","gulp-unused":"^0.2.0","mocha":"^3.2.0","npm-install-global":"^0.1.2"},"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":"0c041012ad034812194e01929c3c93c3e2f822dc","_id":"resolve-file@0.3.0","_shasum":"11e1fb464566d3a7c500cb7e9481e8f0b00a14ef","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"11e1fb464566d3a7c500cb7e9481e8f0b00a14ef","size":4114,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-file/download/resolve-file-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resolve-file-0.3.0.tgz_1483157341730_0.664218001300469"},"directories":{},"publish_time":1483157343637,"_cnpm_publish_time":1483157343637,"_hasShrinkwrap":false},"0.2.2":{"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","size":4067,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-file/download/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":{},"publish_time":1476916301382,"_cnpm_publish_time":1476916301382,"_hasShrinkwrap":false},"0.2.1":{"name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","version":"0.2.1","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":"^1.2.2","extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","global-modules":"^0.2.2","lazy-cache":"^2.0.1","os-homedir":"^1.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":"ad5dd13924b3e51d93f6c4654b748c3c2d9d6f9d","_id":"resolve-file@0.2.1","_shasum":"e08549c626e5331969d361d42b71a5a6c4d6a224","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"e08549c626e5331969d361d42b71a5a6c4d6a224","size":3954,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-file/download/resolve-file-0.2.1.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.1.tgz_1471464885801_0.4940551535692066"},"directories":{},"publish_time":1471464887681,"_cnpm_publish_time":1471464887681,"_hasShrinkwrap":false},"0.2.0":{"name":"resolve-file","description":"Resolve an absolute file path from local directories, local node_modules or global node_modules.","version":"0.2.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","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.10.0","expand-tilde":"^1.2.2","extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","global-modules":"^0.2.2","lazy-cache":"^2.0.1","os-homedir":"^1.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":"858a280641501c76ad30d8ad17fd417ccee5df0f","_id":"resolve-file@0.2.0","_shasum":"1a037ade6d627bccc2fa3437c7f2328cb4f15889","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"1a037ade6d627bccc2fa3437c7f2328cb4f15889","size":3999,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-file/download/resolve-file-0.2.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resolve-file-0.2.0.tgz_1465234954477_0.3938974204938859"},"directories":{},"publish_time":1465234956175,"_cnpm_publish_time":1465234956175,"_hasShrinkwrap":false},"0.1.0":{"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","size":2669,"noattachment":false,"key":"/resolve-file/-/resolve-file-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-file/download/resolve-file-0.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1438448400664,"_cnpm_publish_time":1438448400664,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/doowb/resolve-file","bugs":{"url":"https://github.com/doowb/resolve-file/issues"},"license":"MIT"}