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-clone@dishuostec/snowpack@currents/crunner-experiment@dionlarson/commitizen@definitelytyped/utils@peak-stone/commitizen-promiseipfs-interopjsnixipfs-cluster-serviceipfs-cluster-ctljavy-cliss-actionsuapmthx-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@soyjak/utils@shopify/function-runner@retailica/sweetalert2@serverless-rewrite/serverless@sector/breadbox@seculum/vue-dev-clone@rodrigogs/serverlessmpesa-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-astro
2.4.0

2 years ago

2.3.0

5 years ago

2.2.0

6 years ago

2.1.0

7 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

12 years ago