cachedir

    2.3.0 • Public • Published

    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.

    Keywords

    none

    Install

    npm i cachedir

    DownloadsWeekly Downloads

    3,309,419

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    5.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • linusu