{"library":"node-schematron","type":"library","category":null,"description":"The `node-schematron` package provides a pure JavaScript implementation of the Schematron validation language, designed for use in Node.js environments, web browsers (with bundlers like Webpack), and as a command-line interface (CLI) tool. As of version 2.1.0, it offers a robust solution for validating XML documents against Schematron schemas, returning results as a JSON object. Key differentiators include its complete JavaScript implementation, avoiding native dependencies, and support for Schematron includes and various CLI options for file globbing and output reporters. The library utilizes `fontoxpath` for XPath 3.1 queries, though it notes that `fontoxpath` is not yet feature-complete. While there's no explicit release cadence, the project appears actively maintained, offering a flexible and integrated Schematron solution for JavaScript ecosystems.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","schematron","xml","validation","terminal","typescript"],"install":[{"cmd":"npm install node-schematron","imports":["import { Schema } from 'node-schematron';","import { registerCustomXPathFunction } from 'node-schematron';","schema.validateString('<xml/>', options);"]},{"cmd":"yarn add node-schematron","imports":[]},{"cmd":"pnpm add node-schematron","imports":[]}],"homepage":null,"github":"https://github.com/wvbe/node-schematron","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-schematron","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/node-schematron/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}