{"library":"dom-exception-modern","type":"library","category":null,"description":"A zero-dependency migration helper for replacing the deprecated `domexception` package with the native `DOMException` constructor available in modern Node.js (>=18), browsers, and Deno. Version 0.1.0 released in 2025. It default-exports the native DOMException for drop-in compatibility, and provides typed utility functions: `createDOMException`, `isDOMException`, `toDOMException`, and legacy code constants via `domExceptionCodes`. Ships TypeScript declarations. Unlike the legacy `domexception`, this package has no runtime fallback and is intended only for environments where DOMException is natively available.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript","domexception","DOMException","web","error","typescript","migration","replacement","deprecated"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install dom-exception-modern","imports":["import DOMException from 'dom-exception-modern'","import { isDOMException } from 'dom-exception-modern'","import { createDOMException } from 'dom-exception-modern'","import { domExceptionCodes } from 'dom-exception-modern'"]},{"cmd":"yarn add dom-exception-modern","imports":[]},{"cmd":"pnpm add dom-exception-modern","imports":[]}],"homepage":"https://github.com/iexitdev/dom-exception-modern#readme","github":"https://github.com/iexitdev/dom-exception-modern","docs":null,"changelog":null,"pypi":null,"npm":"dom-exception-modern","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}