4.0.0 • Published 5 years ago

home-or-tmp v4.0.0

Weekly downloads
2,830,961
License
MIT
Repository
github
Last release
5 years ago

home-or-tmp

Get the user home directory with fallback to the system temp directory

Useful in cases where the home directory either isn't set or doesn't exist.

Install

$ npm install home-or-tmp

Usage

import homeOrTemp from 'home-or-tmp';

console.log(homeOrTemp);
//=> '/Users/sindresorhus'

// And if there is no home directory:

console.log(homeOrTemp);
//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'

babel-registerarchetype-library@hazymoon-cli-dev/core@arisageha/react-lazyload@arisageha/react-lazyload-fix@phil8795/pecuniarius-apiwenke-babel-corealex-frontend-sdk-stagingcthpb-plugin-socialuinz-notification@everything-registry/sub-chunk-1853ydw-babeldemoscfsync-branch-codetest-carosello-campusteadanteawebpack_component_fundwpsecwow.js-juziteste_cegidtextfield-samplevol-extension-sandboxenvvcloudcam-playkit-js-hls@borealisswap/borealis-swap-lib@caneco/siemaivanpantekkafirchain-tetrishello_world_foundergrid-component-react-ex-1gzup-react-image-file-resizerlierah-8lierah-9lierah-1lierah-2lierah-3lierah-4lierah-5lierah-6lierah-7lifxsh@thismr/bitmindtest-core@tohere-cli/cli@teyuto/react-player@the91end/react-auth@xswap/v2-coreactive-cache-babel-registerbabel-register-es6-reactbabel-register-fixed-sourcemapsaxios-retry-anoawesome-react-starsbabel-fast-react-corebabel-core-flintasync-computed-vue3@greminder/bootstrap-material-design@gzup/react-image-file-resizer@afria/afria-libraries@congtuan/custom-component@hawkingnetwork/react-native-tab-viewstart-starwars-libsolregex2uhuy-1uhuy-2uhuy-3typographic-orphanustwo.com-frontendtwine-libtwine-library@baloochat/react-native-svg-uri@bitfirer/vue-qriously@caary-capital/caary-accounting@caary-capital/caary-accounting2@ceebr/register@cdevine49/react-numeric-input@chakra-swap/core@boundless-inc/mobiledoc-dom-renderer@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deployyarnjsvue-v3-yandex-metrikavue-size-trackerwc-starterkitwebpack-port-collector@levlevin/react-portal-tooltip@litedexdev/litedex-core-swap@mrtnvh/pwa-to-tauri@sackmanson/quill-image-uploader@poojasupari/helloworld@pav-trc/learn-npmmy-commitizenmoebiuspatternxsearch-list-reactsearch-input-reactreact-native-handcheque-enginereact-angular-componentsam-carouselreact-misc-toolboxsample-frontend-sdksamc2
4.0.0

5 years ago

3.0.0

9 years ago

2.0.0

10 years ago

1.0.0

10 years ago