LinusU/node-cachedir


Get a directory for your caching needs

License: MIT

Language: JavaScript


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.

Project Statistics

Sourcerank 11
Repository Size 64.5 KB
Stars 9
Forks 7
Watchers 1
Open issues 0
Dependencies 222
Contributors 6
Tags 12
Created
Last updated
Last pushed

Top Contributors See all

Linus Unnebäck Duncan Bayne Pierre Rudloff Mark Lee Oden Ben Sjoberg

Packages Referencing this Repo

cachedir
Provides a directory where the OS wants you to store cached files.
Latest release 2.2.0 - Updated - 9 stars

Recent Tags See all

v2.2.0 March 13, 2019
v2.1.0 August 31, 2018
v2.0.0 June 12, 2018
v1.3.0 June 12, 2018
v1.2.0 January 09, 2018
v1.1.1 December 25, 2016
v1.1.0 December 12, 2016
v1.0.0 April 03, 2016
v0.1.4 April 03, 2016
v0.1.3 April 03, 2016
v0.1.2 April 03, 2016
v0.1.1 December 10, 2014

Something wrong with this page? Make a suggestion

Last synced: 2019-03-13 10:24:30 UTC

Login to resync this repository