4.0.0 • Published 4 years ago

home-or-tmp v4.0.0

Weekly downloads
2,830,961
License
MIT
Repository
github
Last release
4 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@ct-note/delimiter@borealisswap/borealis-swap-lib@caneco/siemaivanpantekkafirchain-tetrisstart-starwars-libsolregex2uhuy-1uhuy-2uhuy-3typographic-orphanustwo.com-frontendtwine-libtwine-library@artiso-solutions/vue-html-to-paper@andywer/babel-register-dctypes@anonybit-modules/videoreconstruction@afria/afria-libraries@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/deploy@congtuan/custom-componentyarnjsvue-v3-yandex-metrikavue-size-trackerwc-starterkitwebpack-port-collector@greminder/bootstrap-material-design@gzup/react-image-file-resizer@hawkingnetwork/react-native-tab-view@elsouza1985/react-org-chart@eliteswap/v2-core@gerhobbelt/babel-register@gl-cli-dev/cli@gl-cli-dev/init@innoswap/core@innodata/vue-v3-ya-metrika@levlevin/react-portal-tooltip@litedexdev/litedex-core-swap@mrtnvh/pwa-to-tauri@marionebl/git-cz@mathematics-refined/math-redefined2@materia-dex/materia-contracts-proxy@nkduy/babel-register@epnsproject/frontend-sdk@epnsproject/frontend-sdk-staging@ernesto_tech/expo-gl-image-filters@mblode/react-native-feather@mockswitch/cli@kodinghandle/bullswap-lib@kirrosh/pts@imooc-cli-devp/core@igniswap/igni-swap-lib@olympfin/olymp-swap-lib@qiskit/cli@qiskit/sdk@sackmanson/quill-image-uploader@poojasupari/helloworld@pav-trc/learn-npm@nrser/jashmy-commitizenmoebiuspatternxsearch-list-reactsearch-input-reactreact-native-handcheque-enginereact-angular-componentsam-carouselreact-misc-toolbox
4.0.0

4 years ago

3.0.0

8 years ago

2.0.0

10 years ago

1.0.0

10 years ago