{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^5.0.2","eventemitter2":"^5.0.1","@hint/utils-debug":"^1.0.0","@hint/utils-types":"^1.0.0","css-select":"^2.0.2","parse5":"^5.1.1","parse5-htmlparser2-tree-adapter":"^5.1.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^5.0.1","ava":"^2.4.0","eslint":"^6.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.1","jsdom":"^15.2.1","npm-run-all":"^4.1.5","nyc":"^14.1.1","rimraf":"^3.0.0","typescript":"^3.6.4"},"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":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","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":"1.0.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-iItPN+A5ldy2FEwMHrb6oSpVgDti5fLozMIl+d6joZCS6uYxut59D7/seDAnfkHLEfi0Gtw9SKUKRynvvFPa+A==","shasum":"248e32e4c89bd3b1942ceb0b541d133c31e44cc5","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-1.0.0.tgz","fileCount":53,"unpackedSize":359317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5bS2CRA9TVsSAnZWagAAqccQAJ3ku5jAQaonOLiODY9t\nV7D6OKs6uqowBGETGS60JW6sEWupezqe0aNYN/zfjmAs9RIvIPLQP8ztVhLV\nOZej5lPAkltgdK25oExWX/AJUak8PM1k8z6cNoqp/dq7STS0IExRR2atQffu\nD+9FU/vwcNvEUyyPqJV7rJmLxvhVgfRCe7Ynx757hybsd6DLg5wWqfII1Tzq\n9jd80uoBvz5v4U0Br4QqKHV09xag0pd4TUHzTYAq9wvn/XbQHFDofmITwz2a\nWeE6qOrarDiR05wCkbJ7RhVnUVAeq/3DFFCAleF4EwI1i9ZQRMCWANLQjZsa\nHzAdfCU1BLhuuvA5sYOBAMd+XZ6j9lVKxTEFyRyIRqHuHBjOJMfU5YQAB5oS\n+c7QjCQ7yP5IKDycqXUh2bNNHw7/NjJCuvGXcF8qcxzrXX38bW1Hj7/rXMWx\niJBScVqJTbUmweF/mZfvQzuCEgOAt4lAFFGgJ2RqdcErcCcOMnvnqXO/qhOj\nhQWJzkVN+R9XQdTjuzELa2W9t8Ui6D2HIZ9uraFTK6LwGTFYNLqozJWIco/4\nwMlANgx+lkV6HxeIX4tIRba9L35K7KjstFPy8JTW3ylC0JB2vDySqfwSHH6s\nRFW0SZ7sagEG1LIWN6XFdS/OJdsyP7AsU2vhSfHPPRkSV1UezSpTqYhxmui1\noQew\r\n=0rrE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkAyK1SelpWso+UMA4NEtIl70xOI9g49k58HvlLWgsygIhAMuAutcBwcPF3qrVm7DRtGu1RFHzpa7X0YRcOrWI7rMg"}],"size":41169,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-1.0.0.tgz"},"maintainers":[{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_1.0.0_1575335093998_0.4065034363415909"},"_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":1575335094605,"_cnpm_publish_time":1575335094605,"dist-tags":{"latest":"2.2.4"}}