{"name":"resolve-dir","description":"Resolve a directory that is either local, global or in the user's home directory.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/resolve-dir","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/resolve-dir.git"},"bugs":{"url":"https://github.com/jonschlinkert/resolve-dir/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"expand-tilde":"^2.0.0","global-modules":"^1.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","homedir-polyfill":"^1.0.1","mocha":"^3.5.0"},"keywords":["dir","directory","expansion","file","filepath","fp","global","home","modules","npm","path","resolve","tilde","user","user-home","userhome"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["expand-tilde","findup-sync","resolve-modules"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"4542230bd91e295ce2bc78e96aaf75825a979c8a","_id":"resolve-dir@1.0.1","_shasum":"79a40644c362be82f26effe739c9bb5382046f43","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"email":"blaine.bublitz@gmail.com","name":"phated"},{"email":"github@sellside.com","name":"jonschlinkert"}],"dist":{"shasum":"79a40644c362be82f26effe739c9bb5382046f43","tarball":"http://registry-npm.ywwl.com/resolve-dir/download/resolve-dir-1.0.1.tgz","integrity":"sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAJOHD1eC1a8XJyvaqs0+TLBMV8mdcHkQERCHLVv9FxQIgUjMHedGwCL2RJhn4R1E3Rg5Bju10fQGhWsiBuEM1Cl4="}],"size":2560,"noattachment":false,"key":"/resolve-dir/-/resolve-dir-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-dir-1.0.1.tgz_1501976992589_0.25468260515481234"},"directories":{},"readme":"# resolve-dir [![NPM version](https://img.shields.io/npm/v/resolve-dir.svg?style=flat)](https://www.npmjs.com/package/resolve-dir) [![NPM downloads](https://img.shields.io/npm/dm/resolve-dir.svg?style=flat)](https://npmjs.org/package/resolve-dir) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/resolve-dir.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/resolve-dir)\n\n> Resolve a directory that is either local, global or in the user's home directory.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save resolve-dir\n```\n\n## Usage\n\n```js\nvar resolve = require('resolve-dir');\n```\n\nReturns a local directory path unchanged\n\n```js\nresolve('a')\n//=> 'a'\n```\n\nResolves the path to user home\n\n```js\nresolve('~')\n//=> '/Users/jonschlinkert'\nresolve('~/foo')\n//=> '/Users/jonschlinkert/foo'\n```\n\nResolves the path to global npm modules\n\n```js\nresolve('@')\n//=> '/usr/local/lib/node_modules'\nresolve('@/foo')\n//=> '/usr/local/lib/node_modules/foo'\n```\n\n## About\n\n### Related projects\n\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* [findup-sync](https://www.npmjs.com/package/findup-sync): Find the first file matching a given pattern in the current directory or the nearest… [more](https://github.com/cowboy/node-findup-sync) | [homepage](https://github.com/cowboy/node-findup-sync \"Find the first file matching a given pattern in the current directory or the nearest ancestor directory.\")\n* [resolve-modules](https://www.npmjs.com/package/resolve-modules): Resolves local and global npm modules that match specified patterns, and returns a configuration object… [more](https://github.com/jonschlinkert/resolve-modules) | [homepage](https://github.com/jonschlinkert/resolve-modules \"Resolves local and global npm modules that match specified patterns, and returns a configuration object for each resolved module.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\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**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/resolve-dir/blob/master/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 18, 2016._","publish_time":1501976992684,"_cnpm_publish_time":1501976992684,"dist-tags":{"latest":"1.0.1"}}