@todoforai/update-notifier
v0.1.0
Published
Zero-dep, cached update notifier for TODOforAI CLIs
Downloads
441
Readme
@todoforai/update-notifier
Zero-dep update-available notifier used by TODOforAI CLIs.
import { checkForUpdates } from "@todoforai/update-notifier";
import pkg from "../package.json" with { type: "json" };
checkForUpdates(pkg); // fire-and-forget- Cached for 24h under
~/.config/todoforai/notifier-<pkg>.json - Silent on CI / non-TTY / when
NO_UPDATE_NOTIFIERis set / when running from abun link/npm linksource checkout - Registry fetch runs in background with a 3s timeout
