Indicative Compiler is a low-level module used by Indicative, a validation library for Node.js, that compiles parsed schema into highly optimized executable functions. Current stable version is 7.2.4. It is part of the AdonisJS ecosystem and focuses on performance by generating optimized JavaScript functions from validation schemas during compilation. It uses a custom compiler pattern (ValidatorCompiler/ValidatorExecutor) and supports custom formatters and error collectors. Distinct from other validators like Joi or Yup by emphasizing ahead-of-time compilation for repeated validation runs. Typically paired with 'indicative-rules' and 'indicative-formatters'. Release cadence is irregular with major version bumps.
npm install indicative-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows typical usage: compile a validation schema and execute it against data with a formatter.
Update code to use ValidatorExecutor with compiled functions array.
Use 'ValidationDefinition' instead.
Use 'indicative' as the main validation entry point.
Pass the class reference (e.g., VanillaFormatter), not new VanillaFormatter().
Use import { ValidatorCompiler } from 'indicative-compiler'Run npm install indicative-compiler
Replace 'ValidationDefination' with 'ValidationDefinition'