application-cache-path

Get a directory where the OS wants you to store cache

Usage no npm install needed!

<script type="module">
  import applicationCachePath from 'https://cdn.skypack.dev/application-cache-path';
</script>

README

node-application-cache-path

Store your application cache in the right location.

Installation

npm install --save application-cache-path

Usage

var applicationCachePath = require('application-cache-path')

// cachePath is a string with the path to a directory
// where you can store your cache.
var cachePath = applicationCachePath('My App')

API

applicationCachePath(name)

Return a string with the path to a directory where you can store your application specific cache.

Acknowledgments

Heavily inspired by node-application-config-path

License

MIT