{"maintainers":[{"email":"blaine.bublitz@gmail.com","name":"anonymous"},{"email":"github@sellside.com","name":"anonymous"},{"email":"brian.woodward@gmail.com","name":"anonymous"}],"keywords":["dir","directory","expansion","file","filepath","fp","global","home","modules","npm","path","resolve","tilde","user","user-home","userhome"],"dist-tags":{"latest":"1.0.1"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"description":"Resolve a directory that is either local, global or in the user's home directory.","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._","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/resolve-dir.git"},"users":{"monjer":true},"bugs":{"url":"https://github.com/jonschlinkert/resolve-dir/issues"},"license":"MIT","versions":{"0.1.0":{"name":"resolve-dir","description":"Resolve a directory that is either local, global or in the user's home directory.","version":"0.1.0","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":"^1.2.0","global-modules":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*","user-home":"^2.0.0"},"keywords":["dir","directory","expansion","file","filepath","fp","global","home","modules","npm","path","tilde","user","user-home","userhome"],"gitHead":"723051860040210f948c37fb0ec290e384ac6ac6","_id":"resolve-dir@0.1.0","_shasum":"f432a3b39f50533e85bac66817554d5111ba316d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"f432a3b39f50533e85bac66817554d5111ba316d","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-dir/-/resolve-dir-0.1.0.tgz","integrity":"sha512-gnA4dMry50OStRbEdF+LvCSkg+P7S9klui8/Mmw+X/O7ZSN9C/xlEVyTwAdrHT6NL7pszeyxejEaVHKqgFp4Hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWgUGpm2EfbwjrvWThM/wMc21Vn9rrqp7Kmn3TW2i9SAiEA5uW6TfqF3DRT3W5QKhHdl4pFaQruwdxBhrFsfhiXhaM="}]},"directories":{}},"0.1.1":{"name":"resolve-dir","description":"Resolve a directory that is either local, global or in the user's home directory.","version":"0.1.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","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"expand-tilde":"^1.2.2","global-modules":"^0.2.3"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"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":["findup-sync","expand-tilde","resolve-modules"]},"reflinks":["verb","verb-generate-readme"],"lint":{"reflinks":true}},"gitHead":"a9ba6b37227d5b708c3606bc97ff62b1a679ef56","_id":"resolve-dir@0.1.1","_shasum":"b219259a5602fac5c5c496ad894a6e8cc430261e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"b219259a5602fac5c5c496ad894a6e8cc430261e","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-dir/-/resolve-dir-0.1.1.tgz","integrity":"sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWYYyEV97EZWZjLpfAhJBlVooydtsigtYkAn+jupmQtgIhAI6b8KVVXyRiJ+Efvknr8IdLkxKamMRk6JnxQMb9AFkD"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resolve-dir-0.1.1.tgz_1469811619883_0.7320640422403812"},"directories":{}},"1.0.0":{"name":"resolve-dir","description":"Resolve a directory that is either local, global or in the user's home directory.","version":"1.0.0","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":"^0.2.3"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"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":"48704e7d1b6226c6fe9a1c2759991c824cf86a81","_id":"resolve-dir@1.0.0","_shasum":"77a1b8f9197a60e7733b4f0d977e69ccd9b5fd86","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"77a1b8f9197a60e7733b4f0d977e69ccd9b5fd86","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-dir/-/resolve-dir-1.0.0.tgz","integrity":"sha512-1wnpIDNBrSSu6iaBIOPEevyWgk0L27NVpS3xDk5OCMF/1TWMpOnIucsp+u458FLeLYwboFT+0Wu2LmYnqkshaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ8DrdKUaiPHvmxT/x0PljKirLormhZ/snsiao9owAQgIhAIoFSoJ/iMJHW6o2gw8C7kDWLegEjmQysKcOQHTN80Kt"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resolve-dir-1.0.0.tgz_1476813609482_0.592787156580016"},"directories":{}},"1.0.1":{"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":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"email":"blaine.bublitz@gmail.com","name":"anonymous"},{"email":"github@sellside.com","name":"anonymous"}],"dist":{"shasum":"79a40644c362be82f26effe739c9bb5382046f43","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-dir/-/resolve-dir-1.0.1.tgz","integrity":"sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAJOHD1eC1a8XJyvaqs0+TLBMV8mdcHkQERCHLVv9FxQIgUjMHedGwCL2RJhn4R1E3Rg5Bju10fQGhWsiBuEM1Cl4="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-dir-1.0.1.tgz_1501976992589_0.25468260515481234"},"directories":{}}},"name":"resolve-dir","time":{"modified":"2022-06-26T11:52:16.243Z","created":"2015-09-21T21:50:42.154Z","0.1.0":"2015-09-21T21:50:42.154Z","0.1.1":"2016-07-29T17:00:23.558Z","1.0.0":"2016-10-18T18:00:11.492Z","1.0.1":"2017-08-05T23:49:52.684Z"},"readmeFilename":"README.md","homepage":"https://github.com/jonschlinkert/resolve-dir"}