API Reference
@unjs/c12
Global RC file in the user's home directory 5. See the official documentation for details.
Official Documentation ↗CompatibilityThis documentation covers version
v4.0.0-rc.4. Check the official docs for the latest API surface.Installation
npm
npm install c12pnpm
pnpm add c12yarn
yarn add c12Methods
No methods match this filter.
Overview
Global RC file in the user’s home directory 5.
API reference status
This page lists only entry points that appear verbatim in the official README examples: watchConfig, acceptHMR. Parameter and return types are not given by the official README, so signatures are marked unverified.
Verification notes
- Official source: https://github.com/unjs/c12
- Evidence: https://cdn.jsdelivr.net/gh/unjs/c12@latest/README.md
- Companion page:
c12-config(same library, complementary entry points) - Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
API reference evidence
Fetched from official sources on 2026-11-08T18:31:00+08:00 via WebFetch https://cdn.jsdelivr.net/gh/unjs/c12@latest/README.md;WebFetch https://cdn.jsdelivr.net/npm/c12@latest/dist/index.d.mts.
watchConfig→ signature from https://cdn.jsdelivr.net/npm/c12@latest/dist/index.d.mts; official text: “export declare function watchConfig(options: WatchConfigOptions<T, MT>): Promise<ConfigWatcher<T, MT>>;” acceptHMR→ signature from https://cdn.jsdelivr.net/npm/c12@latest/dist/index.d.mts; official text: “acceptHMR?: (context: { getDiff: () => DiffEntries; newConfig: ResolvedConfig<T, MT>; oldConfig: ResolvedConfig<T, MT>; }) => void | boolean | Promise<void | boolean>;”
FAQ
- What does c12 do?
- Global RC file in the user's home directory 5.
- How do I install c12?
- Run `npm install c12`.
- Where can I verify the API details?
- Official repository/documentation: https://github.com/unjs/c12. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.
Report a problem with this API docOpens a pre-filled issue on GitHub.