{"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.2.0","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.3.3","axe-core":"^4.4.1","eslint":"^7.32.0","eslint-plugin-import":"^2.26.0","eslint-plugin-markdown":"^2.2.1","jsdom":"^21.1.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.2.3","types":"./dist/src/index.d.ts","gitHead":"722be1b4c0836d5c0adacfb00c8c4f6bc5d1e707","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.2.3","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-l7CKhIunWiQGzOVoMmWHSRcAev40U3ClYTZ5Mip0cI7MKmvB/1AS2b91e+Lqi+4/BtQ2PHdUCI1YxIRSFiGbUw==","shasum":"afdb4a24818a076290199bf1256df4fbdbd0c5bb","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.2.3.tgz","fileCount":109,"unpackedSize":221491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYhHHWGsI0hKCuSEHWAAd3ZWaHnEIOG0K9uJrI0XkN/QIhANIQPqAPx33rJfDuSgy7Lb00tXXWlvgj9Ht9T+jYYjRq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE51sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0kg//d2S5fU9m0fIrWGedazy9CP3FHMDMTrnysqMkztZ7aaJ/dDZd\r\nIiN/YExX3PKwmf1D9KCON9T7Wd9uzmfEAg3tLLqDZvmP2IHE4CumeZ85zlNE\r\nucRHAqXIK9RLjfivXpwSRZxS4qoS3ITfgkStoZfoLLD3/Ft4vt125l6GNVfq\r\n+l1B2YLDrowpdnnRy+LABEvLDe+eNXWsnc1uSLqQP+DPnRvtpgqp3El3KSnJ\r\nx+MQuZgSBEfQDTh5PMsg4VsPaLaKS4WDHydiLvrANpvxoFjnaWb9ikIKGtLf\r\nq0S6Vh/AAC7fzd0sfIMLIm6XZ3KKC5Ymd5Bj3RJyNYh5cuk88ZRqgyM/ldkz\r\njptst7qpvLi2RexzlxyK8bCRVUdqECjSh5lhtC9NDRugGlv69jC2igUYUPrU\r\nv4QmO6n1n3YpsOywgPoMns+KwokzmAzKPRfXaai1pFm4L9MeGmVb89cGg4Tn\r\nFUi/PRDKU91GFoXXqwCAieMH4qHG9BbY6lxvFLa4bYQMkx+GtY2D/w+SqDsg\r\n7ot8xEhJhmZFAzmK+kjbH1ZwWoKDwAOz1p9+VXMEWMWonQhcNOKduhJodsrd\r\nZu4+yxbjHxxZzZkC2fHDYbh7Xcf+H58sMlzfYlJTm+ShbYBBy06QvfcF1TGe\r\nyFiWnKFQxdOs+wJ9X44fsd4DzwvmaUJ16XQ=\r\n=A9Od\r\n-----END PGP SIGNATURE-----\r\n","size":60253,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.2.3.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"leotlee","email":"leolee@microsoft.com"},{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.2.3_1679007084659_0.469804570826859"},"_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":1679007084914,"_cnpm_publish_time":1679007084914,"dist-tags":{"latest":"2.2.4"}}