You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| .travis.yml | 2 years ago | |
| index.js | 2 years ago | |
| license | 2 years ago | |
| package.json | 2 years ago | |
| readme.md | 2 years ago | |
| test.js | 2 years ago | |
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.