0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
31 lines
502 B
Markdown
31 lines
502 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(id)`
|
|
|
|
- `id` (`string`, required)
|
|
- returns `string`
|
|
|
|
Return path to an appropriate place to store cache files.
|