{"_id":"home","_rev":"29-7221917dfe76422ffe1224d042c16d2f","name":"home","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"home","version":"0.1.0","keywords":["home"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.0","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"5a66f50d361303785f7e004baac4597c1c60e741","tarball":"https://registry.npmjs.org/home/-/home-0.1.0.tgz","integrity":"sha512-9cE0Q870uCnHTvlLwd6vUBWI/1cnF3gf2YrR03Bh4n72JJ0p6eYMbyOXaYlxG+C3UydGsoYpNNwpqnix+uMvnw==","signatures":[{"sig":"MEQCIHMOjuzmcQelPBAcejwhI7OaWd2GMcofurK0DrYoxJuaAiBfBvVjjgi3+0tmhjGBsw6JBMJQ4q6eM6egEQAlBccYPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5a66f50d361303785f7e004baac4597c1c60e741","engines":{"node":">=0.11.0"},"scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"1.4.9","description":"home","directories":{},"devDependencies":{"chai":"*","mocha":"*"}},"0.1.1":{"name":"home","version":"0.1.1","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.1","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"866ab3c703944c788a7aec2a7a338cbc8fd6c93d","tarball":"https://registry.npmjs.org/home/-/home-0.1.1.tgz","integrity":"sha512-oaR49TfKmKBHUbAPZ3ShsYNPTuWUR9Xx2/O32XtoE00vbKNta97cmt8485wPx8tzOjXJdSwVhhWho6yB2M0hkw==","signatures":[{"sig":"MEYCIQDqfNCAK1lkIy0ZTHBZiWmVKYimFWeybmG2imUs8sp3xAIhAOqSptPb9eYG74SWWztqQfkWveJYMNyPAjhR3pLfQYoM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"866ab3c703944c788a7aec2a7a338cbc8fd6c93d","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"1.4.9","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"devDependencies":{"chai":"*","mocha":"*"}},"0.1.2":{"name":"home","version":"0.1.2","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.2","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"902b7b52a8da305a4b9327edc7a062d502349740","tarball":"https://registry.npmjs.org/home/-/home-0.1.2.tgz","integrity":"sha512-CKfbn8+RboslYNoyYxbYqnSGPuwWDrW1D2Ng6wD2tk75fJ8FDOZu9cSRrFl/PygqQ8b2rs1JfbyJz7RyYooYtQ==","signatures":[{"sig":"MEUCIQD0otPnT3WkYiRKjLB+UTFDeMQSE0RMefpvsKpbrSYulgIgRa+g6ibjXnhYCniy57TM19fS6gmWyAogEnlEHx0xxlw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"902b7b52a8da305a4b9327edc7a062d502349740","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"1.4.9","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"devDependencies":{"chai":"*","mocha":"*"}},"0.1.3":{"name":"home","version":"0.1.3","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.3","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"cfb0716f93155c2c45468e9a17dbd93d63b0cf96","tarball":"https://registry.npmjs.org/home/-/home-0.1.3.tgz","integrity":"sha512-6Nz43ybjFpiFIKbL0x+w/0FQhTaS2IIs9oZBNJX7fM0rC1528ZbUFyP/muByM72LJYm3xhQasviuq6c7bTX3Cw==","signatures":[{"sig":"MEUCIQCG48dAm67ZSda/tVIOPXeXeL7nkNPV0ZGKoYgTrZbyHwIgXwlp91vBFzsmbCfv0KZMgKBvMjwzSRj2x9jn3akO2yg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cfb0716f93155c2c45468e9a17dbd93d63b0cf96","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"1.4.9","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"devDependencies":{"chai":"*","mocha":"*"}},"0.1.4":{"name":"home","version":"0.1.4","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.4","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"583a8cb72498197a9b467f6245d84a49c15351af","tarball":"https://registry.npmjs.org/home/-/home-0.1.4.tgz","integrity":"sha512-7JAvdgIXWyENXar3vBOF9yQWOF4JQlsu1wcWW0V5rhf7biqjaoiAGafVVCKxbyzfT9R45XnePxkzHqR7HBI19A==","signatures":[{"sig":"MEYCIQDf6eewyalq5pJdNAORKExfwcRdMUAqqd1ntmuFaqDYEgIhAJQf/4cuhvEhmpoQBexv92UcArzNH4Wb4ztuGNEE+xVI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"583a8cb72498197a9b467f6245d84a49c15351af","engines":{"node":">=0.10.0"},"gitHead":"63c3a509a9340272a01103a854180a86310ff7c4","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"2.5.1","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"_nodeVersion":"0.12.1","devDependencies":{"chai":"*","mocha":"*"}},"0.1.5":{"name":"home","version":"0.1.5","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.5","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"4cf8578126530347c42b2cb1ddf1a46c4e40f9fa","tarball":"https://registry.npmjs.org/home/-/home-0.1.5.tgz","integrity":"sha512-dW3geM6/TEhLhwznuSd9wG4v66SjYKNDeXfWHoGF2KSWLEIrQALWBs2ZsuWzXPp4RH++9xr0TGE9T4Pb26ptPA==","signatures":[{"sig":"MEUCIQDeDo+pjKVX5UZzPzVqbJ13dNcCv97iNUhGkK3tbdULWQIgOR10jdz+qt8ljYQaTRsqP+4Ozt4siOg1EMblUh+nqkQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"4cf8578126530347c42b2cb1ddf1a46c4e40f9fa","engines":{"node":">=0.10.0"},"gitHead":"13bd02db143704fad2f7b7f8a22371b7f951b832","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"2.5.1","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"_nodeVersion":"0.12.1","devDependencies":{"chai":"*","mocha":"*"}},"0.1.6":{"name":"home","version":"0.1.6","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.6","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"f59141f4489538115a88b98e77cab293b403070b","tarball":"https://registry.npmjs.org/home/-/home-0.1.6.tgz","integrity":"sha512-ngJzSc0pi8I3rygLD3Cwxw4WCtdcMfibwHAVKAepcZKatKZ4CJ0e8SeTGyKmTjJXrbl8nD7oG5bMjNRZ9aHZyQ==","signatures":[{"sig":"MEQCIHI5aPCo3Sri0n0i7HB8qet8Ll7vnlHQmlw88F1yPbS3AiBDVi9PHXWty97M7SuKNwVg9kfMxhUR2nxyDfV5Dt37JA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f59141f4489538115a88b98e77cab293b403070b","engines":{"node":">=0.10.0"},"gitHead":"e9f2aade73321c015981a17a24c12d811088450f","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"2.5.1","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"_nodeVersion":"0.12.1","devDependencies":{"chai":"*","mocha":"*"}},"0.1.7":{"name":"home","version":"0.1.7","keywords":["home","user-home","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.7","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"649b2848a3ceb274230f5768e335dc1a3c96bb23","tarball":"https://registry.npmjs.org/home/-/home-0.1.7.tgz","integrity":"sha512-Yf7St2C1f455S3HQouveCg+h2SEGb8U9swy+gHW2omqpTvj+N9x8miBtfKIlYFQMQyGCvDPvjZoem5A7K4dPzw==","signatures":[{"sig":"MEQCIGf5TBfFx4A2GQaQgbLwLnULtS2PVqoJgOdkFAVHGdgZAiBuwWFhcntuEO/EZD6kosrVKGxCpcbv+z1qczcysYgI/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"649b2848a3ceb274230f5768e335dc1a3c96bb23","engines":{"node":">=0.10.0"},"gitHead":"489cc26a0dca70dba3b50dc27613b0851451a84d","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"2.5.1","description":"Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.","directories":{},"_nodeVersion":"0.12.1","devDependencies":{"chai":"*","mocha":"*"}},"0.1.8":{"name":"home","version":"0.1.8","keywords":["home","directory","user-home","path","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@0.1.8","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"4878e8609d579cd41f8705fd40b7a30eed14dc54","tarball":"https://registry.npmjs.org/home/-/home-0.1.8.tgz","integrity":"sha512-7qVtZ8w2jUuOm6aHAGAXc2q7LAJRtXr023g6gCa3gCTfgc/Q7OOLbKbqnIQrPGhQwRTXubPHRSfYXY0KLEcVbQ==","signatures":[{"sig":"MEYCIQCs19ILQI4EMI7Kqn/mQvwrIYmb+ZuUL79whuah1QMWYwIhAPdFudctbUHi6AQwP0sfqfLdsOSXCgcDoj9+m7EWNe6d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"4878e8609d579cd41f8705fd40b7a30eed14dc54","engines":{"node":">=0.10.0"},"gitHead":"509497ef63a37dabcf6ad43d75fbdae15fedcceb","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"2.5.1","description":"Gets the home dir or resolves home directories.","directories":{},"_nodeVersion":"0.12.1","devDependencies":{"chai":"*","mocha":"*"}},"1.0.1":{"name":"home","version":"1.0.1","keywords":["home","directory","user-home","path","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@1.0.1","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home#readme","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"96a423ceb49b98378ff5ef3ceae059a557f9dd35","tarball":"https://registry.npmjs.org/home/-/home-1.0.1.tgz","integrity":"sha512-J9L+KK3kGXFRy9VI1efJuY4o5GbcUdVNpAquxxV/Ajq2WVSPS/XFr/W0Pt3ZZvkBgeh9LsnrgExSfzlBTxryTA==","signatures":[{"sig":"MEUCIQCBhILooE1jcZjPlllbEMP0Zfsd/zo/6HzKL7cCXqFyagIgD3lio/4s0f8W00rjuinEBxDXBmqhQom3/2pADKVvxeQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"96a423ceb49b98378ff5ef3ceae059a557f9dd35","engines":{"node":">=0.10.0"},"gitHead":"baf9822a93eaa9ddf96efd8687e4394d6bafdd2a","scripts":{"test":"mocha --reporter spec ./test/*.js"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"3.3.9","description":"Gets the home dir or resolves home directories.","directories":{},"_nodeVersion":"0.12.1","dependencies":{"os-homedir":"^1.0.1"},"devDependencies":{"chai":"*","mocha":"*"}},"2.0.0":{"name":"home","version":"2.0.0","keywords":["home","directory","user-home","path","resolve","cross-platform","windows"],"author":{"name":"kaelzhang"},"license":"MIT","_id":"home@2.0.0","maintainers":[{"name":"kael","email":"i@kael.me"}],"homepage":"https://github.com/kaelzhang/node-home#readme","bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"dist":{"shasum":"2b3dc8ff003b8b5e49f160ca435bda5fac49a6ea","tarball":"https://registry.npmjs.org/home/-/home-2.0.0.tgz","fileCount":4,"integrity":"sha512-6wvQwTg0mSdr6bavsZxrbugtG+Srbhd4ZWaM2rP32opT0KEIuHbXN7RKdJ/i9UEJMwVNgZViUTkBF98pfMzEsA==","signatures":[{"sig":"MEQCIFT/4G0uaGh4iRj8wP6meFEvem4HrTM0uHXT/6xd+9ATAiBVDwzjWgw+fmCrEVK9DtNUx2MXx+7okyVYJVseBL6gsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcz5cmCRA9TVsSAnZWagAAgykP/2Sa1yUgKJQD+J0R1RJt\nOy9+rzuvWRydrQkLixZvN6qr81GLh9xkUyh7dG44kdOX4L3EU9Zcb/fregjl\ncaGftKTBFom92VlHhjYShrgdq5umg51oMRrJ1I+DA+9iLYcXEtAoJv4E7hL5\nCxtWK6XposlAZYlbLd3ofYyX2EITjuKUPk5+m0ZOHiiOicdIXQDGxAPuwy/E\n2wKGCzn4wmd3x6bNVvEdI0RW8+elwBOKolAlAe0c4PQhFT74U7twg2jBu+/3\nbm8fi4DwsdmAlifxhDSJQ+DKj32t/Rd+Z4kbsPYvFioqsXwfPnwN44ZVKteR\nwV/DkCqMX1KjVxyTJaL6UkvN2wno5e1BLE7CyIjandCnUGQwXu2XkyFLis4R\nqa6lgXMutGq/v7ZzkwJc7UnqYI9Fzxygeuc1n/1d9wDhlXDYX+Yy+cHjNWx9\nPJQkkP/ZHD4mf5kSJdIZUJk9nm1iyYO8VjAquiqLcxP6g3lYVBBp4JSAXAOA\nDbqbZoNcDLHuxg+R3LyNJyNOajD49UyYqlt6dq6UWZsRpkEmnY5wr6476Op2\nDh6MFyIpAjkBjGn3YrkxscbHpdvebyUB+oS1X3Z1pye8t1wruf3n0XB9o/Wh\nhuQpYfzf9I3dXLggXVxYbvbnJ04iPAdDkgE/tfK/ci7/mfYd8z78CyIqBHol\nbMD1\r\n=hU9q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=5.12.0"},"gitHead":"222577e4385b2630c4d5c8cd9e8cfa61c1662997","scripts":{"fix":"eslint . --fix","lint":"eslint .","test":"nyc mocha --reporter spec ./test/*.js","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","posttest":"npm run report"},"_npmUser":{"name":"kael","email":"i@kael.me"},"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"_npmVersion":"6.7.0","description":"Gets the home dir or resolves home directories.","directories":{},"_nodeVersion":"11.12.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.0","chai":"*","mocha":"*","eslint":"^5.16.0","codecov":"^3.3.0","@ostai/eslint-config":"^3.0.0","eslint-plugin-import":"^2.17.2"},"_npmOperationalInternal":{"tmp":"tmp/home_2.0.0_1557108517646_0.9011570602254573","host":"s3://npm-registry-packages"}}},"time":{"created":"2013-10-25T15:59:00.767Z","modified":"2024-10-01T21:00:06.508Z","0.0.0":"2013-10-25T15:59:06.917Z","0.1.0":"2014-08-03T09:28:23.569Z","0.1.1":"2014-08-03T14:11:40.075Z","0.1.2":"2014-08-03T14:13:17.330Z","0.1.3":"2014-08-03T14:17:38.235Z","0.1.4":"2015-07-23T04:04:41.390Z","0.1.5":"2015-07-23T05:14:29.209Z","0.1.6":"2015-07-23T05:17:46.969Z","0.1.7":"2015-07-23T05:23:20.051Z","0.1.8":"2015-07-23T05:27:15.550Z","1.0.1":"2015-11-01T15:46:20.170Z","2.0.0":"2019-05-06T02:08:37.764Z"},"bugs":{"url":"https://github.com/kaelzhang/node-home/issues"},"author":{"name":"kaelzhang"},"license":"MIT","homepage":"https://github.com/kaelzhang/node-home#readme","keywords":["home","directory","user-home","path","resolve","cross-platform","windows"],"repository":{"url":"git://github.com/kaelzhang/node-home.git","type":"git"},"description":"Gets the home dir or resolves home directories.","maintainers":[{"name":"kael","email":"i@kael.me"}],"readme":"[![Build Status](https://travis-ci.org/kaelzhang/node-home.svg?branch=master)](https://travis-ci.org/kaelzhang/node-home)\n[![Coverage](https://codecov.io/gh/kaelzhang/node-home/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/node-home)\n\n# home\n\nA tiny utility to get the home directory, or resolve a path begins with `'~'`, with cross-platform compatibility.\n\nSince `2.0.0`, `home only supports node >= 5.12.0`\n\n## Install\n\n```sh\n$ npm i home\n```\n\n## Usage\n\n```js\nconst home = require('home')\n\nhome()              // Mac && Linux: '/Users/kael', Windows: '\\\\Users\\\\kael'\nhome.resolve('~')   // '/Users/kael'\n\nconst some_path = '~/workspace'\nhome.resolve(some_path)         // '/Users/kael/workspace'\nhome.resolve(some_path, 'abc')  // '/Users/kael/workspace/abc'\n```\n\n## home()\n\nReturns `path` the home directory specified by operating system.\n\n## home.resolve([from...], to)\n\nResolves `to` to an absolute path, if `to` begins with `'~'`, it will be cooked before `path.resolve()`d.\n\n```js\nhome.resolve('~/file') // 'Users/kael/file'\n```\n\nThe usage of `home.resolve` is very similar to [`path.resolve`](http://nodejs.org/api/path.html#path_path_resolve_from_to)\n\nAnother way to think of it is as a sequence of cd commands in a shell.\n\n```js\nhome.resolve()\n// -> current directory\n\nhome.resolve('foo/bar', '~/file/', '..', 'a/../subfile')\n// -> '/Users/kael/subfile'\n```\n\nIs equivalent to:\n\n```js\nhome.resolve('foo/bar', '/Users/kael/file/', '..', 'a/../subfile')\n```\n\nIs similar to:\n\n```sh\ncd foo/bar\ncd ~/file/\ncd ..\ncd a/../subfile\npwd\n```\n\n## What about `home.relative()`, `home.join()` ?\n\nFor now, `home` doesn't support those, which I thought is unnecessary to make this module too complicated.\n\nI'd rather `home.resolve()` the directories, before `path.join()`.\n\n```js\nvar dir = '~/dir'\ndir = home.resolve(dir)\npath.join(dir, './abc')\n```\n\n## License\n\nMay be freely distributed under the [MIT license](https://raw.githubusercontent.com/kaelzhang/node-home/master/LICENSE).\n\nCopyright (c) Kael Zhang and [other contributors](https://github.com/kaelzhang/node-home/graphs/contributors).\n","readmeFilename":"README.md","users":{"langrenaq":true,"ducnguyen31":true}}