kylin-calculator/node_modules/cachedir
谢炜 7c2f960ba3 Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
..
.travis.yml Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
index.js Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
license Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
package.json Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
readme.md Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00
test.js Import Upstream version 1.2.0.0 2022-06-22 18:40:34 +08:00

readme.md

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(name: string) => string

Return path to an appropriate place to store cache files.