{"name":"home-or-tmp","version":"1.0.0","description":"Get the user home directory with fallback to the system temp directory","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/home-or-tmp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["user","home","homedir","dir","directory","folder","path","tmp","temp","fallback","graceful"],"dependencies":{"os-tmpdir":"^1.0.1","user-home":"^1.1.1"},"devDependencies":{"ava":"0.0.4"},"gitHead":"d74b7b3af367dddde6138061ca67118f86011b67","bugs":{"url":"https://github.com/sindresorhus/home-or-tmp/issues"},"homepage":"https://github.com/sindresorhus/home-or-tmp","_id":"home-or-tmp@1.0.0","_shasum":"4b9f1e40800c3e50c6c27f781676afcce71f3985","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4b9f1e40800c3e50c6c27f781676afcce71f3985","tarball":"http://registry-npm.ywwl.com/home-or-tmp/download/home-or-tmp-1.0.0.tgz","integrity":"sha512-6LKQZpR6gk8uJ3mXbBkyOumsA24BUk9CH/79ivZ8Kk1urzlXNGZBoAMuieC/YzwCyGBVqq+uCNUpA1JS6glrxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEyxah0+4/wWSvUEOsMDF4lERXGe59tdP/KKAp98hOxAiAyGx2VKrfv1otRXegrjhOpMl3fRAZIIY8HITN/+g1UkA=="}],"size":1534,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# home-or-tmp\n\n> Get the user home directory with fallback to the system temp directory\n\nUseful in cases where the home directory either isn't set or doesn't exist.\n\n## Install\n\n```\n$ npm install home-or-tmp\n```\n\n## Usage\n\n```js\nimport homeOrTemp from 'home-or-tmp';\n\nconsole.log(homeOrTemp);\n//=> '/Users/sindresorhus'\n\n// And if there is no home directory:\n\nconsole.log(homeOrTemp);\n//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'\n```\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-home-or-tmp?utm_source=npm-home-or-tmp&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1431901147323,"_cnpm_publish_time":1431901147323,"dist-tags":{"latest":"4.0.0"}}