Skip to main content

envtrap check

Validates the envtrap.json configuration file in the current working directory.

Output Examples

Valid Configuration

If the configuration passes all schema rules, envtrap exits with code 0:

No Configuration Found

If no envtrap.json is present in the current working directory, envtrap notifies that default settings are in effect:

Validation Failure

If any field contains an invalid type or unrecognized mode, envtrap prints JSONPath errors and exits with code 1:

CI/CD Pre-Commit Hook

Use envtrap check in pre-commit hooks or CI test scripts to catch configuration mistakes before merging:
package.json