Licence
MIT
Version
0.11.1
Deps
2
Size
239 kB
Vulns
0
Weekly
0
@habemus-papadum/aiui-util
Shared utilities for aiui packages (cache dirs, etc.).
Install
npm install @habemus-papadum/aiui-util
Usage
cacheDir(namespace?, options?)
Resolve (and by default create) the aiui cache directory. Different packages cache
different kinds of data, so each passes its own namespace:
import { cacheDir } from "@habemus-papadum/aiui-util";
cacheDir(); // ~/.cache/aiui (created)
cacheDir("claude"); // ~/.cache/aiui/claude (created)
cacheDir("claude", { create: false }); // resolve the path without touching disk
Resolution order:
$AIUI_CACHE— explicit override, used verbatim as the cache root.$XDG_CACHE_HOME/aiui— per the XDG Base Directory spec (absolute paths only).~/.cache/aiui— the default.