directory-schema-validator

JSON →
library 1.0.17 ·javascript
verified Jun 7, 2026

Validate file system structure and optionally file contents using an extended JSON Schema. Current stable version: 1.0.17. Release cadence: irregular. Key differentiators: extends JSON Schema with a custom 'contents' keyword to validate file content against regex patterns; includes a shorthand notation to quickly generate schemas from file lists; supports CLI commands (validate, shorthand, parse) and programmatic API. Different from similar tools (e.g., ajv-cli) by focusing on directory structure validation rather than general JSON instance validation.