{"_id":"resolve-dir","_rev":"26761","name":"resolve-dir","description":"Resolve a directory that is either local, global or in the user's home directory.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""},{"name":"phated","email":""}],"time":{"modified":"2023-03-24T16:59:35.000Z","created":"2015-09-21T21:50:42.154Z","1.0.1":"2017-08-05T23:49:52.684Z","1.0.0":"2016-10-18T18:00:11.492Z","0.1.1":"2016-07-29T17:00:23.558Z","0.1.0":"2015-09-21T21:50:42.154Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/resolve-dir.git"},"versions":{"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":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""},{"name":"phated","email":""}],"dist":{"shasum":"79a40644c362be82f26effe739c9bb5382046f43","size":2560,"noattachment":false,"key":"/resolve-dir/-/resolve-dir-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/resolve-dir/download/resolve-dir-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-dir-1.0.1.tgz_1501976992589_0.25468260515481234"},"directories":{},"publish_time":1501976992684,"_hasShrinkwrap":false,"_cnpm_publish_time":1501976992684},"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":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""},{"name":"phated","email":""}],"dist":{"shasum":"77a1b8f9197a60e7733b4f0d977e69ccd9b5fd86","size":2565,"noattachment":false,"key":"/resolve-dir/-/resolve-dir-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/resolve-dir/download/resolve-dir-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resolve-dir-1.0.0.tgz_1476813609482_0.592787156580016"},"directories":{},"publish_time":1476813611492,"_cnpm_publish_time":1476813611492,"_hasShrinkwrap":false},"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":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""},{"name":"phated","email":""}],"dist":{"shasum":"b219259a5602fac5c5c496ad894a6e8cc430261e","size":2555,"noattachment":false,"key":"/resolve-dir/-/resolve-dir-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/resolve-dir/download/resolve-dir-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resolve-dir-0.1.1.tgz_1469811619883_0.7320640422403812"},"directories":{},"publish_time":1469811623558,"_cnpm_publish_time":1469811623558,"_hasShrinkwrap":false},"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":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""},{"name":"phated","email":""}],"dist":{"shasum":"f432a3b39f50533e85bac66817554d5111ba316d","size":2038,"noattachment":false,"key":"/resolve-dir/-/resolve-dir-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/resolve-dir/download/resolve-dir-0.1.0.tgz"},"directories":{},"publish_time":1442872242154,"_cnpm_publish_time":1442872242154,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/resolve-dir","bugs":{"url":"https://github.com/jonschlinkert/resolve-dir/issues"},"license":"MIT"}