{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^5.0.3","eventemitter2":"^6.4.3","@hint/utils-debug":"^1.0.3","@hint/utils-types":"^1.1.1","css-select":"^2.1.0","parse5":"^6.0.1","parse5-htmlparser2-tree-adapter":"^6.0.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^5.0.1","ava":"^3.12.1","axe-core":"^4.0.2","eslint":"^7.8.1","eslint-plugin-import":"^2.22.1","eslint-plugin-markdown":"^1.0.2","jsdom":"^16.4.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^4.0.2"},"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.1.4","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.4","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ayOEyhtLMOysJY4VX3zZjxNtDgeyZa70m5OJn23f36PDbdl/8ztpAlpyQC1X5FhZRkBrkeb1vxBzlKTNFmxH+A==","shasum":"f296b344a1bc89c2234f175202a86f2f976621ab","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.4.tgz","fileCount":107,"unpackedSize":564105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrE1iCRA9TVsSAnZWagAANagQAIf8gjOrZhNFZmJW2XRe\nmn1Oa3XVYx5QZitak7ySc5aJEAKmUdquaxy6akfgLwzyusKtnisVTSHWApHJ\n5a0BrdFX3eBG3RB6f9z1vnaPGCEs1gR+CZVQBwhqYEr1LoYP32JWpqaQCshu\nSaMRLaMg+80rHWwoDfU5aIb5MYulH/pcCxIT33TGXZi985FAC9Y4Zd2WXFrF\n9ideXAY+hUesR8rcAzo9ekNxBKcczKtJW+US3lxvjW3QtW8Qj+1WqoNjhPgA\n0eytzGaDOjgOFaf8ULYOprV5fFW78FgijvZdIFKpPm5tvaj6MQYQ4zFLret6\nDNeeMbT3Yp7OTTSKemWzgOFgwZwECGgw5XLPskKud6lXxuhTkvNwrTqdFGeM\nd4F3fqiPgpo16pdBY4AgoiUWCvfelw+Wc5jG4BzAMJyWuh0HIP06lyNRsQbS\nocnmrNBzXUYplcZU3tWLs2nHgZbLZRovswkQC0jmYe8upbPyVtNYhuKsKCSv\ni/AUbkK+RkNs8JjMu40WZ1ca+ddxZ0SCjVygdBoBtK0LIOGbFo7ZYncU88mp\nrXfO9NQeZJjiA33Ou8kHPAoVpBUR47DS8aohq+8i/ReYeKbSPWaKt8PkoiR1\n0dEvWRREI07mepJPxQsoBz297TKopNYnqMcNUGNaDmlyJRyQFeOCCKQGWPa6\no3Xe\r\n=ofMW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsUahCA6xYP7rqOYtU8n3vVMWK4tx6x0nx+UhrNs1LAAiEAjo0yUZTZGYVY5VnL3PXSLJPv1u3Mg/BMt2iiTB0/tt0="}],"size":62171,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.4.tgz"},"_npmUser":{"name":"sarvaje","email":"jdgarcia@outlook.com"},"directories":{},"maintainers":[{"name":"sarvaje","email":"jdgarcia@outlook.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.4_1605127522002_0.15575472077104613"},"_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":1605127522160,"_cnpm_publish_time":1605127522160,"dist-tags":{"latest":"2.2.4"}}