AnimationCore/node_modules/cachedir/readme.md
3944Realms 7068a883d9 build: 构建
创建github工作流
2026-03-01 21:38:41 +08:00

28 lines
474 B
Markdown

# node-cachedir
Provides a directory where the OS wants you to store cached files.
## Installation
```sh
npm install --save cachedir
```
## Usage
```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'
```
## API
### `cachedir(name: string) => string`
Return path to an appropriate place to store cache files.