2.4.0 • Published 1 year ago

cachedir v2.4.0

Weekly downloads
2,860,335
License
MIT
Repository
github
Last release
1 year 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-commitizenserverless-heybitrehype-trest-sitterstarred_searchstoryai-snowpack-v2seperate-reposvavatarsweetalert2-denazificationthomaschaaf-serverlessvue-dev-clonemiguelcostero-ng2-toastygogencygogency-test-2jsnixi18n-lint-pluginipfs-cluster-ctlipfs-cluster-serviceipfs-interopmpesa-cookiempesa-cookie-jarmoonwavekubojavy-cligo-ipfsgo-ipfs-sidecargo-libp2pglobal-cache-dirluaudocoslso1jsprint-cachedirreact-flow-highly-customizable-edgesreact-picky-with-clearnpm-ipfs-clusternpm-kubonpm-cluster-followrefinejs-reposs-actionsskysyncskywardskypacksnowpacksnow300snow300-astrosnowpack4serverless-rabbitslsplussky300uapmthx-snowpack-v1trs-commitizentwine-libtwine-library@amuslija/serverless@adobe/aio-cli-plugin-asset-compute@backstage-community/plugin-scaffolder-backend-module-odo@blazinaj/app-kit@bref.sh/serverless@capraconsulting/cals-cli@chouqueth/gleam@acflow/cli@devorso/dcountdown@contrawork/linear-cliyangtao-jsvue-v3-yandex-metrika@gweninterpreter/gwen-web@golem-sdk/yagna@innodata/vue-v3-ya-metrika@kosko/helm@lofcz/sweetalert2-neutral@lordbeanbag/vite-plugin-svg-icons-monorepo@mablhq/mabl-cli@mablhq/playwright-tools@nicepkg/gpt-runner-shared@neo-ltex/ltex-ls@namtoonix/editorjs-custom-multiple-selected@mobiletoll/serverless@mizdra/eslint-interactive@kalkanisys/vue-select@jaw-aid/npmpractice@hisystems/snowpack@keroxp/tsb@publicdomain/serverless@qualified/attach@ryansonshine/commitizen@sagrimson/snowpack@radixlabs/snowpack@redhat-developer/plugin-scaffolder-odo-actions@recordreplay/cypress@rm3l/plugin-scaffolder-odo-actions@oss-docs/sync
2.4.0

1 year ago

2.3.0

5 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

11 years ago