cachedir
Provides a directory where the OS wants you to store cached files.
Last updated 7 years ago by linusu .
MIT · Repository · Bugs · Original npm
$ cnpm install cachedir 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.3.0                                ...           latest (6 years ago)

3 Versions

  • 2.2.0                                ...           6 years ago
  • 2.3.0                                ...           6 years ago
  • 2.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org