{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@types/parse5":"^6.0.3","eventemitter2":"^6.4.5","@hint/utils-debug":"^1.0.10","@hint/utils-types":"^1.1.7","css-select":"^4.3.0","parse5":"^6.0.1","parse5-htmlparser2-tree-adapter":"^6.0.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^6.0.1","ava":"^4.0.1","axe-core":"^4.4.1","eslint":"^7.32.0","eslint-plugin-import":"^2.26.0","eslint-plugin-markdown":"^2.2.1","jsdom":"^19.0.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^4.5.5"},"homepage":"https://webhint.io/","keywords":["hint","hint-utils-dom","dom","utils","webhint"],"license":"Apache-2.0","main":"./dist/src/index.js","name":"@hint/utils-dom","repository":{"directory":"packages/utils-dom","type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm-run-all build:*","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"copyfiles \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run build-release","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:ts":"npm run build:ts -- --watch"},"version":"2.1.12","types":"./dist/src/index.d.ts","gitHead":"86a21f9d09e2e0c824fff06081f329f0382af256","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.12","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-FhgyOSZKC6e1mFIyyCj7V+ypeXU/EuWLX48cZeG53/Jf4uH2x6RHo7+254PvIk6i+J3FIC/FCkSB5CkamkQa/w==","shasum":"2b9a8bb5987cc36300dfc448ec1abfffd818b1bd","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.12.tgz","fileCount":109,"unpackedSize":212727,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGp5y0BOPRkQvnVyXHmmICdLzkFenw0sgeKem5N+9DaZAiBbr2ghSnm0KwE2h2bdJK+i2M5X6+NQxyurVJTZ5Jg6LA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicdqcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqc2w/+I1m5oXJ8wZUvvYXmHyrHS1L8ZYWMEp/O0tmmJH/g3JCJfilI\r\nh4mn3A4QxuaDdNpb/cRRyIw95dfI7cfb0iYdKSZ3UuVg0/UB/sRjgtGOcZt9\r\nYwNF795+24ozKbP2xUKu87FVVmzLc/OrfLcQZnOQwshnr6qz8ACQcPG2oHuS\r\nYwzHC4eEiw2CSvi4pY7xYbENrcNtpgcNt2F6DfhgWgRD9lM+jJTOyGhrGgY+\r\nBok3IV4RkMdEdAU8Cgm1xfrfhmZQqwFKypX0ubyVNexcRA1oBd5V8oAUn8oW\r\nN2Q39hzzJyoGhvBJihET+1CtPUE7zwcPteACkZ2/0Wfb/Y/0d8cxkgIE51C9\r\nCp+zjE0A82Rkom2k3PxHKSfz4BnrpG+gTi1+U4gDPJ2f+jXI9jyeDQV9EWpp\r\nrVXPbvId8KE6vxgTtL/OnfcB6SsojK5m3NCBUONDXZ1qBLmPpqJ81dB68pxv\r\nDtcLJmLXgy2XsH40cdnYr51bRsq2jh2zNzeIiwGlvGU0ZWOUwO3XY7FRq1Gq\r\nIUoj53CG2R43jRChvoftGWptM8LbW0ICh7Y8gJM5X/nifCseDPUfvbvBvgdX\r\nvucPW/NyBGkRY/aoLqC/sH/wDTBWVXMy8kPAImzwsoAXb9hVVa90nmCOMycA\r\n91vLSoA3y4YzO51XBR//pQ9KH+pP0U3h9yo=\r\n=+ZQh\r\n-----END PGP SIGNATURE-----\r\n","size":58626,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.12.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.12_1651628699886_0.9421513591246584"},"_hasShrinkwrap":false,"readme":"# DOM utils (`@hint/utils-dom`)\n\nSet of helpers to process DOM. Supports parsing HTML into a light-weight\nimplementation of a subset of DOM standards APIs.\n\n## Installation\n\nThis package is installed automatically when adding webhint to your project\nso running the following is enough:\n\n```bash\nnpm install hint --save-dev\n```\n\n## Utils\n\n* `createHelpers`: Inject and invoke within the context of a page to generate\n  global `webhint` helpers for creating DOM snapshots and resolving unique\n  IDs to `Node`s.\n* `createHTMLDocument`: Create an HTMLDocument object from an string.\n* `findOriginalElement`: Perform a best-effort search to find an element in\nthe provided document which is likely the original source for the provided\nelement. Used to resolve element locations to the original HTML when possible.\n* `getElementByUrl`: Get an HTMLElement given a URL.\n* `getHTMLCodeSnippet`: Generate a Snippet code for a HTMLElement.\n* `populateGlobals`: Inject DOM APIs into the provided global context.\n* `traverse`: Traverse an HTMLDocument.\n* `restoreReferences`: Rebuild parent and sibling references in a DOM snapshot.\n","publish_time":1651628700068,"_cnpm_publish_time":1651628700068,"dist-tags":{"latest":"2.2.4"}}