{"library":"sane-domparser-error","type":"library","category":null,"description":"sane-domparser-error is a JavaScript utility library designed to standardize error handling for DOMParser and XMLHttpRequest (when `responseType = 'document'`) in web environments. Typically, when an XML document cannot be parsed, these native APIs do not throw an exception but instead return a document containing a `<parsererror>` element. This library abstracts away the inconsistencies of the `<parsererror>` document across different browsers, providing a consistent mechanism to detect and report parsing failures as standard JavaScript `Error` objects. The package is currently at version 0.2.0, with its last update over a decade ago, indicating a maintenance status with a very infrequent release cadence. Its primary differentiator is simplifying robust XML parsing error detection, which is complex due to browser-specific `parsererror` document structures and namespaces.","language":"javascript","status":"maintenance","version":"0.2.0","tags":["javascript","XML","parser","DOMParser","XHR","error"],"install":[{"cmd":"npm install sane-domparser-error","imports":["const saneError = require('sane-domparser-error');","const saneError = require('sane-domparser-error');\nsaneError.failOnParseError(doc);"]},{"cmd":"yarn add sane-domparser-error","imports":[]},{"cmd":"pnpm add sane-domparser-error","imports":[]}],"homepage":null,"github":"https://github.com/cburgmer/sane-domparser-error","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sane-domparser-error","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/sane-domparser-error/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}