{"_id":"home-or-tmp","_rev":"45650","name":"home-or-tmp","description":"Get the user home directory with fallback to the system temp directory","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:14:02.000Z","created":"2015-05-17T22:19:07.323Z","4.0.0":"2021-04-16T18:58:07.745Z","3.0.0":"2017-01-21T09:19:43.615Z","2.0.0":"2015-06-13T12:42:42.545Z","1.0.0":"2015-05-17T22:19:07.323Z"},"users":{"ristomatti":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/home-or-tmp.git"},"versions":{"4.0.0":{"name":"home-or-tmp","version":"4.0.0","description":"Get the user home directory with fallback to the system temp directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/home-or-tmp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["user","home","homedir","directory","folder","path","tmp","temp","temporary","fallback","graceful"],"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"2a7c50a5431caeb1d198e1284c4804d2f5d1de1f","bugs":{"url":"https://github.com/sindresorhus/home-or-tmp/issues"},"homepage":"https://github.com/sindresorhus/home-or-tmp#readme","_id":"home-or-tmp@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"09ed528bc5135dbca5c9828a5fac5de66cddb06f","size":1714,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/home-or-tmp/download/home-or-tmp-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/home-or-tmp_4.0.0_1618599487603_0.1284398243299827"},"_hasShrinkwrap":false,"publish_time":1618599487745,"_cnpm_publish_time":1618599487745},"3.0.0":{"name":"home-or-tmp","version":"3.0.0","description":"Get the user home directory with fallback to the system temp directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/home-or-tmp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["user","home","homedir","dir","directory","folder","path","tmp","temp","temporary","fallback","graceful","userprofile"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"60f96f6eb0f33cd89bc868063807c596036cd186","bugs":{"url":"https://github.com/sindresorhus/home-or-tmp/issues"},"homepage":"https://github.com/sindresorhus/home-or-tmp#readme","_id":"home-or-tmp@3.0.0","_shasum":"57a8fe24cf33cdd524860a15821ddc25c86671fb","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"57a8fe24cf33cdd524860a15821ddc25c86671fb","size":1513,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/home-or-tmp/download/home-or-tmp-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/home-or-tmp-3.0.0.tgz_1484990381968_0.518237111158669"},"directories":{},"publish_time":1484990383615,"_cnpm_publish_time":1484990383615,"_hasShrinkwrap":false},"2.0.0":{"name":"home-or-tmp","version":"2.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","temporary","fallback","graceful","userprofile"],"dependencies":{"os-homedir":"^1.0.0","os-tmpdir":"^1.0.1"},"devDependencies":{"ava":"0.0.4"},"gitHead":"dd1411a0b2531a4e2c592ae733fd45dd0f9c7163","bugs":{"url":"https://github.com/sindresorhus/home-or-tmp/issues"},"homepage":"https://github.com/sindresorhus/home-or-tmp","_id":"home-or-tmp@2.0.0","_shasum":"e36c3f2d2cae7d746a857e38d18d5f32a7882db8","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e36c3f2d2cae7d746a857e38d18d5f32a7882db8","size":1545,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/home-or-tmp/download/home-or-tmp-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1434199362545,"_cnpm_publish_time":1434199362545,"_hasShrinkwrap":false},"1.0.0":{"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","size":1534,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/home-or-tmp/download/home-or-tmp-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431901147323,"_cnpm_publish_time":1431901147323,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/home-or-tmp#readme","bugs":{"url":"https://github.com/sindresorhus/home-or-tmp/issues"},"license":"MIT"}