Provides a directory where the OS wants you to store cached files.
npm install cachedirProvides a directory where the OS wants you to store cached files.
``sh`
npm install --save cachedir
`javascript
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'
`
- id (string, required)string`
- returns
Return path to an appropriate place to store cache files.