{"name":"happy-dom","version":"20.12.1","keywords":["jsdom","dom","browser","custom","elements","web","components","html","whatwg","w3c"],"author":{"name":"David Ortner"},"license":"MIT","_id":"happy-dom@20.12.1","maintainers":[{"name":"davidortner","email":"david@ortner.se"}],"homepage":"https://github.com/capricorn86/happy-dom","bugs":{"url":"https://github.com/capricorn86/happy-dom/issues"},"dist":{"shasum":"5ffd5a2569260b6a5c5b2dd239df26cd4c8af3bc","tarball":"http://registry-npm.ywwl.com/happy-dom/download/happy-dom-20.12.1.tgz","fileCount":3043,"integrity":"sha512-6+Gaa3xVS+OwQy3fAZGMqFO3sffpTrL/gW3bkOGzN50YN5zWPp6gUyQXITJ1n0xBGeZrJMQ9scBW7Q9aWjUAJw==","signatures":[{"sig":"MEYCIQDzTcBd+uQlugyUBEsEdNaOd/B65RJ6nVITVHqlTcwyxwIhAJym1TdtC7Vk1bFMXIUf6+SuH2fRg+8/QxU1gwXFpau7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCITtqGb/M9lbUjk4KnHWQi0VEpbxg7LIwDt/d0eu9logIgLxNR6rNE9DtCF3EEZ9dNNrdK7Bf0N+RBnruicmLEETM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/happy-dom@20.12.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8553791,"size":1268677,"noattachment":false,"key":"/happy-dom/-/happy-dom-20.12.1.tgz"},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"103ccdea3175a255aabcf5552e0f5d729f701456","scripts":{"test":"vitest run","watch":"tsc -w --preserveWatchOutput","compile":"npm run compile:build-css-properties && tsc && npm run compile:build-version-file","test:ui":"vitest --ui","test:debug":"vitest run --inspect-brk --no-file-parallelism","test:watch":"vitest","compile:build-version-file":"node ./bin/build-version-file.cjs","test:circular-dependencies":"madge --circular --extensions js lib/index.js","compile:build-css-properties":"node ./bin/build-css-properties.cjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c0770562-ab33-4c12-8e69-6ea9bb2dbb5d"}},"repository":{"url":"git+https://github.com/capricorn86/happy-dom.git","type":"git"},"_npmVersion":"12.0.2","description":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"ws":"^8.21.0","entities":"^7.0.1","@types/ws":"^8.18.1","@types/node":">=20.0.0","whatwg-mimetype":"^3.0.0","buffer-image-size":"^0.6.4","@types/whatwg-mimetype":"^3.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chalk":"^5.4.1","madge":"^8.0.0","vitest":"^4.0.16","prettier":"3.3.3","@vitest/ui":"^4.0.16","typescript":"^5.8.3","@webref/css":"6.6.2"},"_npmOperationalInternal":{"tmp":"tmp/happy-dom_20.12.1_1788305711087_0.18691737341212766","host":"s3://npm-registry-packages-npm-production"},"readme":"![Happy DOM Logo](https://github.com/capricorn86/happy-dom/raw/master/docs/happy-dom-logo.jpg)\n\nA JavaScript implementation of a web browser without its graphical user interface.\n\n## DOM Features\n\n- Custom Elements (Web Components)\n\n- Declarative Shadow DOM\n\n- Mutation Observer\n\n- Tree Walker\n\n- Fetch API\n\nAnd much more..\n\n## Documentation\n\n[Documentation](https://github.com/capricorn86/happy-dom/wiki/) | [Getting Started](https://github.com/capricorn86/happy-dom/wiki/Getting-started) | [Setup as Test Environment](https://github.com/capricorn86/happy-dom/wiki/Setup-as-Test-Environment) | [GitHub](https://github.com/capricorn86/happy-dom/)\n\n## Works With\n\n[Vitest](https://vitest.dev/) | [Bun](https://bun.sh) | [Jest](https://jestjs.io/) | [Testing Library](https://testing-library.com/) | [Google LitElement](https://lit.dev/) | [Vue](https://vuejs.org/) | [React](https://reactjs.org) | [Svelte](https://svelte.dev/) | [Angular](https://angular.dev/)\n\n## Module Systems\n\n[ESM](https://nodejs.org/api/esm.html#introduction) | [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules)\n\n## Performance\n\n| Operation                            | JSDOM   | Happy DOM |\n| ------------------------------------ | ------- | --------- |\n| Import / Require                     | 333 ms  | 45 ms     |\n| Parse HTML                           | 256 ms  | 26 ms     |\n| Serialize HTML                       | 65 ms   | 8 ms      |\n| Render custom element                | 214 ms  | 19 ms     |\n| querySelectorAll('tagname')          | 4.9 ms  | 0.7 ms    |\n| querySelectorAll(':nth-child(2n+1)') | 10.4 ms | 3.8 ms    |\n\nSee how the test was done [here](https://github.com/capricorn86/happy-dom-performance-test)","publish_time":1788305711276,"_cnpm_publish_time":1788305711276,"dist-tags":{"latest":"21.0.4"}}