Cypress_TS/CyLukTs/lukan/node_modules/cachedir
Lukáš Kaňka ea3e372146 údržba
2023-08-15 18:35:50 +02:00
..
.travis.yml údržba 2023-08-15 18:35:50 +02:00
index.js údržba 2023-08-15 18:35:50 +02:00
license údržba 2023-08-15 18:35:50 +02:00
package.json údržba 2023-08-15 18:35:50 +02:00
readme.md údržba 2023-08-15 18:35:50 +02:00
test.js údržba 2023-08-15 18:35:50 +02:00

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.