A cross-browser / Node.js validator with JSON Schema compatibility (draft-zyp-json-schema-04). Current stable version is 0.3.1, last released in 2015, no longer actively maintained. It provides a simple `validate(obj, schema)` function that returns `valid` boolean and `errors` array. Key differentiator is lightweight footprint and support for both Node.js and browser environments, but lacks modern JSON Schema features and complete format validation.
npm install revalidatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of revalidator.validate() with a JSON Schema and an object, including optional error handling.
Consider migrating to a more modern validator like ajv or joi.
Always pass a fresh options object if reusing the same schema with different options.
Set additionalProperties: false in options to disallow unknown properties.
Use single type definitions for clarity.
Provide custom format validators or use a validator with built-in format support.
Use: import revalidator from 'revalidator'; then revalidator.validate(...)
Run: npm install revalidator
Use a validator that supports recursive additionalProperties checks.
No dependency data recorded yet.