{"library":"sax","type":"library","category":null,"description":"sax is an evented streaming XML parser implemented in JavaScript, designed primarily for Node.js but also functional in browser environments and other CommonJS implementations. It provides a SAX-style API, emitting events for different XML constructs such as `ontext`, `onopentag`, and `onattribute` as it processes input. The current stable version, as specified, is 1.6.0, indicating a mature and stable API, although new feature releases are infrequent. Key differentiators include its lightweight nature, efficient streaming capabilities, and its explicit focus on parsing XML rather than attempting to correct malformed HTML. It avoids the complexities associated with full DOM construction, XSLT transformations, or comprehensive schema/DTD validation, making it suitable for scenarios requiring simple, fast XML event processing. It offers both a direct parser interface for string input and a Node.js stream API for handling larger files efficiently.","language":"javascript","status":"maintenance","version":"1.6.0","tags":["javascript"],"install":[{"cmd":"npm install sax","imports":["const sax = require('sax');","const parser = sax.parser(strict, options);","const saxStream = sax.createStream(strict, options);"]},{"cmd":"yarn add sax","imports":[]},{"cmd":"pnpm add sax","imports":[]}],"homepage":null,"github":"https://github.com/isaacs/sax-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sax","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/sax/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}