2.4.0 • Published 2 years ago

cachedir v2.4.0

Weekly downloads
2,860,335
License
MIT
Repository
github
Last release
2 years ago

node-cachedir

Provides a directory where the OS wants you to store cached files.

Installation

npm install --save cachedir

Usage

const cachedir = require('cachedir')

console.log(cachedir('myapp'))
// e.g.
//=> '/Users/linus/Library/Caches/myapp'
//=> '/home/linus/.cache/myapp'
//=> 'C:\Users\linus\AppData\Local\myapp\Cache'

API

cachedir(id)

  • id (string, required)
  • returns string

Return path to an appropriate place to store cache files.

cypress@remote.it/serverlessarchetype-librarycommit-cz-fix@steven-torres/jsxrserverless-fork-upload-io@you54f/cypress@everything-registry/sub-chunk-1283opennebula-cypressxj-commitizenstarred_searchstoryai-snowpack-v2svavatarsweetalert2-denazificationthomaschaaf-serverlessvue-dev-cloneipfs-interopjsnixipfs-cluster-serviceipfs-cluster-ctljavy-clii18n-lint-pluginluaudockubo@wecity/wa@wecity/weda-builder@wekanteam/commitizen@worktile/wt-chaos@tumba-solutions/serverless@ublend-npm/serverless@turingguild/alanone@trusk/commitizen@upload-io/serverless@yonrad/jql@yak-spirit/yak-swap-ui@zalastax/nolb-cac@yqrashawn/snowpack@teps/serverless@golem-sdk/yagna@gweninterpreter/gwen-webss-actionsuapmthx-snowpack-v1trs-commitizentwine-libtwine-libraryyangtao-jsvue-v3-yandex-metrika@lofcz/sweetalert2-neutral@lordbeanbag/vite-plugin-svg-icons-monorepo@nicepkg/gpt-runner-sharedmpesa-cookiempesa-cookie-jarmoonwavemiguelcostero-ng2-toastynpm-ipfs-clusternpm-kuboo1jsoslsseperate-reporehype-trest-sitterreact-flow-highly-customizable-edgesserverless-rabbitserverless-niveshserverless-heybitnpm-cluster-followprint-cachedirrefinejs-reporeact-picky-with-clearslsplussnowpackskysyncsnow300snow300-astrosky300snowpack4skypackskywardgo-libp2pgo-ipfsgo-ipfs-sidecargogencygogency-test-2global-cache-dirgit-cz-custom@nzhd/commitizen@oss-docs/sync@gez/fetch@hisystems/snowpack@innodata/vue-v3-ya-metrika@peak-stone/commitizen-promisefrdrk-js-semaphorefunction-runnerfreyr@shopify/function-runnereditor.js-custom-multiple-selectededitorjs_forkedemerald-works-serverlessevanutilsfisheye-cypress
2.4.0

2 years ago

2.3.0

6 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.3.0

7 years ago

1.2.0

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

11 years ago

0.1.0

12 years ago