{"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":{"integrity":"sha512-b/qu/GiFXBpXIgOMbsAovkXV4WTL09jrPxfU0+VylsXyXoW7aG4iWMZb3rY0Aj9hmo3jo7czaJnDY8z9oeNjmA==","shasum":"09ed528bc5135dbca5c9828a5fac5de66cddb06f","tarball":"http://registry-npm.ywwl.com/home-or-tmp/download/home-or-tmp-4.0.0.tgz","fileCount":4,"unpackedSize":2903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJged5ACRA9TVsSAnZWagAABooP+wcd3qOsrfEr5rWNXqPy\nM2ysWxl4A2F2fwE9df2ydkNcaMS+J1neLY5wG1UK72OJDUXFXF1Ho3LBWahj\nxeP6TnHh39E7xDklY8nNuavk7Q5wXqxFyiWlG1vvhL0Sn8G9BMXPcle/gAMl\n+n4YRhf0OT9IuySyB2KXQirPl+fvrBXGsaDOe7GAS1uZ05mn3W0gGX3Z4rBZ\nLqabvShD6NkexWLYTuMH7KcTP/jlFLM+42ECV9SFLX4k9HIYi4U3jIHm6vfX\nyTOr4C2NPjcT3EdF0AFDp2MK1YUzEq9YFWjwNw9nMFEIIUNdeFuQ3ztzXLUX\nTFeGD44ItDXvZj0E/k1cjPm3mwDDxwv+dHwRCMhJvy73D9JcZr2EYcO7zpIc\npoJ5K9yKbOBLt9xRJYa+Ue+iBnlKYcR1zjC4LrD7Vk1Y6E9duuScRYrhYk7P\nGFp/PjHSWRN7hvPqaNADYyCfRx5VrOiVx1VS4Njcx9A+mJ1wI+8RUFyd462N\nr04rD0s+o6KrXYnAdMgbbXbH49xwks+wQPp72xR/6v0afozaxJKnhKi+1ryd\nstjZu322Ner3A+zj/d23MiXBnIAgSEb5PKBGl4ZL0cUosofWTuFk+P4PN3As\nHqvM2BQbTJzRD1QF6GkR5h1U05gwGqaiSWV4dCvrTXCQmxitUKORCm0JZl5g\nYJ4J\r\n=F5eS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqyae+B8Z+ERbjQuUxOSyCJ8cLiYoF3HY6DsOAamk82wIgbC0PMp/SelXdK+7eD6K65r4UCeYJ65k3aQu9nD+CzZY="}],"size":1714,"noattachment":false,"key":"/home-or-tmp/-/home-or-tmp-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/home-or-tmp_4.0.0_1618599487603_0.1284398243299827"},"_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","publish_time":1618599487745,"_cnpm_publish_time":1618599487745,"dist-tags":{"latest":"4.0.0"}}