0.0.0-3 • Published 4 months ago
@vltpkg/xdg v0.0.0-3
@vltpkg/xdg
Get appropriate data, cache, and config directories following the XDG spec, namespaced to a specific app-name subfolder.
Usage
import XDG from '@vltpkg/xdg'
// instantiate with the name of your thing.
const xdg = new XDG('vlt')
const cachePath = xdg.cache('some-path') // ~/.cache/vlt/some-path
const configFile = xdg.config('vlt.json') // ~/.config/vlt/vlt.json
const dataFolder = xdg.data('blah') // ~/.local/share/vlt/blah
const someState = xdg.state('foobar') // ~/.local/state/vlt/fooobar
0.0.0-3
4 months ago
0.0.0-2
4 months ago
0.0.0-0.1730724342581
8 months ago
0.0.0-0.1730239248325
8 months ago