API Reference

@c12/config

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

npmnpm install c12
pnpmpnpm add c12
yarnyarn add c12

Methods

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: loadConfig, getDiff, toJSON. Parameter and return types are not given by the official README, so signatures are marked unverified.

Verification notes

API reference evidence

Fetched from official sources on 2026-11-08T18:37:00+08:00 via WebFetch https://raw.githubusercontent.com/unjs/c12/main/README.md(返回空);WebFetch https://cdn.jsdelivr.net/gh/unjs/c12@latest/README.md;WebFetch https://cdn.jsdelivr.net/npm/c12@latest/dist/index.d.mts.

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.