# @applitools/jsdom

> jsdom without canvas 19.0.0

Latest version **1.0.4** (published 2021-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @applitools/jsdom
pnpm add @applitools/jsdom
yarn add @applitools/jsdom
bun add @applitools/jsdom
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-12-16 |
| First published | 2019-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 27 |
| Unpacked size | 2.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21761 |
| Maintainers | roy.sela, ronikar_applitools, anton-chuev, danielputerman, amitzur, ramapplitools, applitools-admin, applitools-readonly, iasisapp, yotammadem, alex.applitools, liranbarokas, itayy.applitools, denis.styrt, kyrylo.onufriiev, amitzur-applitools, tool_3, yardenw.applitools, ormeda, vgprod, adam.carmi, danoam, clementbarry, sophieta |
| Keywords | dom, html, whatwg, w3c |

## Links

- npm: https://www.npmjs.com/package/@applitools/jsdom
- Repository: https://github.com/jsdom/jsdom
- npm.io page: https://npm.io/package/@applitools/jsdom

## Dependencies (27)

- [ws](https://npm.io/package/ws.md) ^8.2.3
- [abab](https://npm.io/package/abab.md) ^2.0.5
- [acorn](https://npm.io/package/acorn.md) ^8.5.0
- [cssom](https://npm.io/package/cssom.md) ^0.5.0
- [saxes](https://npm.io/package/saxes.md) ^5.0.1
- [nwsapi](https://npm.io/package/nwsapi.md) ^2.2.0
- [parse5](https://npm.io/package/parse5.md) 6.0.1
- [cssstyle](https://npm.io/package/cssstyle.md) ^2.3.0
- [data-urls](https://npm.io/package/data-urls.md) ^3.0.1
- [escodegen](https://npm.io/package/escodegen.md) ^2.0.0
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [decimal.js](https://npm.io/package/decimal.js.md) ^10.3.1
- [whatwg-url](https://npm.io/package/whatwg-url.md) ^10.0.0
- [symbol-tree](https://npm.io/package/symbol-tree.md) ^3.2.4
- [w3c-hr-time](https://npm.io/package/w3c-hr-time.md) ^1.0.2
- [domexception](https://npm.io/package/domexception.md) ^4.0.0
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^4.0.0
- [acorn-globals](https://npm.io/package/acorn-globals.md) ^6.0.0
- [whatwg-encoding](https://npm.io/package/whatwg-encoding.md) ^2.0.0
- [whatwg-mimetype](https://npm.io/package/whatwg-mimetype.md) ^3.0.0
- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^5.0.0
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^5.0.0
- [w3c-xmlserializer](https://npm.io/package/w3c-xmlserializer.md) ^3.0.0
- [webidl-conversions](https://npm.io/package/webidl-conversions.md) ^7.0.0
- [xml-name-validator](https://npm.io/package/xml-name-validator.md) ^4.0.0
- [html-encoding-sniffer](https://npm.io/package/html-encoding-sniffer.md) ^3.0.0
- [is-potential-custom-element-name](https://npm.io/package/is-potential-custom-element-name.md) ^1.0.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-12-16
- 1.0.3 — 2021-03-17
- 1.0.2 — 2019-11-26
- 1.0.1 — 2019-11-26
- 1.0.0 — 2019-11-26

## README

# APPLITOOLS JSDOM

## Just JSDOM without canvas package.
### Forked from [JSDOM](https://github.com/jsdom/jsdom)
### Why ?
* VGC requires JSDOM:
  For extracting URLs from SVGs (only ones downloaded by VGC not dom-snapshot ones).
* Cypress uses VGC as a plugin (i.e. opens eyes-cypress in it's own defined Node environment); if a user adds ```canvas``` package in it's project dependencies we get a conflict:

  cypress compiles canvas when the user installs the packages but then uses that native canvas library in the plugin environment (since VGC requires JSDOM and JSDOM requires canvas as well) and so we get a conflict saying that canvas was compiled with wrong node version.
  
* See this issue: https://github.com/cypress-io/cypress/issues/5785 

* Note that by not using canvas JSDOM still works fine just turns canvas tags to div tags (anyway VGC doesn't need the canvas..)

---
_Source: https://npm.io/package/@applitools/jsdom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
