2.4.0 • Published 9 months ago

cachedir v2.4.0

Weekly downloads
2,860,335
License
MIT
Repository
github
Last release
9 months 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/cypressserverless@everything-registry/sub-chunk-1283opennebula-cypresso1jsnpm-ipfs-clusternpm-cluster-follow@capraconsulting/cals-cli@devorso/dcountdown@dionlarson/commitizen@dishuostec/snowpack@contrawork/linear-cli@currents/crunner-experimentcheqchromium@definitelytyped/utils@blazinaj/app-kitxj-commitizenyangtao-jsvue-v3-yandex-metrikavue-dev-clone@golem-sdk/yagnacommitizencommitizen-forked-sccommitizen-promisereact-flow-highly-customizable-edgesprint-cachedirrehype-trest-sitterrefinejs-repothx-snowpack-v1@peak-stone/commitizen-promiseserverless-rabbitserverless-heybitsnowpack4sky300skypackskywardsnow300snow300-astrosnowpackthomaschaaf-serverlessstarred_searchslsplussvavatarreact-picky-with-clearstoryai-snowpack-v2ss-actionssweetalert2-denazification@qualified/attachtwine-libtwine-libraryuapmtrs-commitizendevsquad-serverlessdesign-system-fitbank-450@kalkanisys/vue-select@lofcz/sweetalert2-neutral@lordbeanbag/vite-plugin-svg-icons-monorepo@hisystems/snowpack@innodata/vue-v3-ya-metrikacypress-spellcheckcypress-bincypress-fork-primekeyglobal-cache-dirgo-ipfs-sidecargo-libp2pgo-ipfsgogency-test-2gogencyfunction-runnerfrdrk-js-semaphorefreyrfisheye-cypress@mablhq/mabl-cli@namtoonix/editorjs-custom-multiple-selected@mizdra/eslint-interactive@mobiletoll/serverless@neo-ltex/ltex-ls@nicepkg/gpt-runner-shared@keroxp/tsbcustom-serverlessevanutilsi18n-lint-plugin@retailica/sweetalert2ipfs-cluster-ctlipfs-cluster-serviceipfs-interop@sagrimson/snowpack@redhat-developer/plugin-scaffolder-odo-actions@recordreplay/cypress@rodrigogs/serverless@rm3l/plugin-scaffolder-odo-actions@ryansonshine/commitizen@gweninterpreter/gwen-web
2.4.0

9 months ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

11 years ago