API Reference

convict-schema

By introducing a configuration schema, convict gives project collaborators more context on each setting and enables validation and early failures for when…

Official Documentation ↗
CompatibilityThis documentation covers version v6.2. Check the official docs for the latest API surface.

Installation

npmnpm install convict
pnpmpnpm add convict
yarnyarn add convict

Methods

Overview

By introducing a configuration schema, convict gives project collaborators more context on each setting and enables validation and early failures for when configuration goes wrong. This repository is a monorepo for the following packages managed through Lerna-Lite.

API reference status

The official README provides no verifiable API example, so this page does not list method signatures (unverified).

Verification notes

Security

Official security statements captured from the package documentation:

  • sensitive 为 true 时 toString() 会把值掩码为 [Sensitive],避免打印配置时泄露密钥 — “Sensitive values and secrets: If sensitive is set to true, this value will be masked to "[Sensitive]" when config.toString() is called. This helps avoid disclosing secret keys when printing configuration at application start for debugging purposes.” (source: https://cdn.jsdelivr.net/gh/mozilla/node-convict@latest/packages/convict/README.md, fetched 2026-11-08T18:33:00+08:00)

API reference evidence

Fetched from official sources on 2026-11-08T18:33:00+08:00 via WebFetch https://raw.githubusercontent.com/mozilla/node-convict/main/README.md(返回空);WebFetch https://cdn.jsdelivr.net/gh/mozilla/node-convict@latest/README.md;WebFetch https://cdn.jsdelivr.net/gh/mozilla/node-convict@latest/packages/convict/README.md.

FAQ

What does convict do?
By introducing a configuration schema, convict gives project collaborators more context on each setting and enables validation and early failures for when configuration goes wrong.
How do I install convict?
Run `npm install convict`.
Where can I verify the API details?
Official repository/documentation: https://github.com/mozilla/node-convict. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.