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 ↗v6.2. Check the official docs for the latest API surface.Installation
npm install convictpnpm add convictyarn add convictMethods
No methods match this filter.
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
- Official source: https://github.com/mozilla/node-convict
- Evidence: https://cdn.jsdelivr.net/gh/mozilla/node-convict@latest/README.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
Security
Official security statements captured from the package documentation:
- sensitive 为 true 时 toString() 会把值掩码为 [Sensitive],避免打印配置时泄露密钥 — “Sensitive values and secrets: If
sensitiveis set totrue, this value will be masked to"[Sensitive]"whenconfig.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.
convict (unverified)→ signature from https://cdn.jsdelivr.net/gh/mozilla/node-convict@latest/packages/convict/README.md; official text: “### var config = convict(schema[, opts])convict()takes a schema object or a path to a schema JSON file and returns a convict configuration object.”
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.
Report a problem with this API docOpens a pre-filled issue on GitHub.