{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^5.0.2","eventemitter2":"^6.0.0","@hint/utils-debug":"^1.0.1","@hint/utils-types":"^1.0.1","css-select":"^2.1.0","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":"^3.4.0","axe-core":"^3.4.1","eslint":"^6.8.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.2","jsdom":"^16.2.0","npm-run-all":"^4.1.5","nyc":"^15.0.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^3.8.3"},"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,.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.0.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5CKxtn8gXmIu0rzZQ3dhGEbz8BOQdnTHWjJ4kbHON1pWjtmoLvRVVQenrDylOv46awgXkFWsjmqG63sUOXBOZg==","shasum":"9d8b07bccae34e6b77778e20664ac36ef6a69989","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.0.0.tgz","fileCount":104,"unpackedSize":465381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecpm0CRA9TVsSAnZWagAACwUP/2+UG81xaX9rlGOgJlbn\n49QbvjR+8eA8BTNbO0w0wPbH7z5NaWzL+OQWO9qmwq9ksZJYOg3dQTyC3a3y\nodo+YTZHEJ0OjhoKJtN4NnwQGjiu5y+c4QQtBmvzLaRZC5OwPrf9bqXnnBOp\n92L/UY65Pg2QFWy6iyML4zQJ1qm5F9D3xy33PbCvlRptISaZVH2i/7THXGYG\nRP55ou8BbFkd8/Mn+bYrkU1vnmhybkg9EoWx4l9TK/LGilUV0zI7dRLfS9z+\nX9UYQmxQ8kvXxbgyIW52MOaETr7Q5IsBdPDqPGApJSVWotovnjA+99zzQ8Bd\nXvvsQ2PXcULWAKn8emA14cvftOxhnSadBtgV3VwMIzLjnJ3mPKLWxbnpb408\nxJGIoKoGgNPEci69REzpcKC04XMeVG/8nvqdhMiB7alZR0fbHFNWLaC4F2l/\nnXSSL/v8x1rBOnssoT/Ik1MiLIgYX3fP6aj+GgHAKA3EhBu32Lwb/qwqWlSl\nAlDgfc9IOLMaYFpnTxRQQIhbY6LDILBJMUeXisivkGqyg5W3SgTyQx6I+fZH\nS7jtJbeqy/j91W2bfhmyvBV4NrpDRt3c91K23BWGlTQVh5mq3mltH71S3onc\nAK67S3NCI6htX6zVn4vcyAwrq1FSVBpPhtzDpaBcUkQCMcJWV985spkZNDOa\niYF3\r\n=Aoem\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpG7sUOzkJC3iAFxNODk9K/MXqSTR2qebJx57vWIku3AiAFY46Xkcjms6BIoI5QkNp2/TPPKobMfKj1AF2DaKaIxQ=="}],"size":55457,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.0.0.tgz"},"maintainers":[{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmUser":{"name":"antross","email":"antross@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.0.0_1584568756016_0.25219291576632186"},"_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":1584568756159,"_cnpm_publish_time":1584568756159,"dist-tags":{"latest":"2.2.4"}}