{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^6.0.0","eventemitter2":"^6.4.4","@hint/utils-debug":"^1.0.5","@hint/utils-types":"^1.1.3","css-select":"^4.1.3","parse5":"^6.0.1","parse5-htmlparser2-tree-adapter":"^6.0.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^6.0.0","ava":"^3.15.0","axe-core":"^4.1.2","eslint":"^7.27.0","eslint-plugin-import":"^2.22.1","eslint-plugin-markdown":"^2.2.0","jsdom":"^16.5.3","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^4.2.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":"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.6","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.6","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-I2fd2lW6DFScZ5CNVu4KrTpETkSfqSvk6e3mG4IhGR4HTzVt553qKL6rmFFI21PTvntbtRPpqjPfGwBxAI1+WQ==","shasum":"864bd57622dd4255c7e6edaef113a04362ad99db","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.6.tgz","fileCount":107,"unpackedSize":582182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwRLdCRA9TVsSAnZWagAAwVYQAKMvCCdUIglcx/1Nt5AR\na1JDxfDuRF5DyHds645bdcDvoh8+OtcwXAdGIqHyObPedPhHc21ggLNuq0+m\nYblrO8WGJy4m5rXQXkucgX/GoNyOFy/+1jNhQ1adCndtynexjNT9LCsZzGSF\njPsTUPJahI1XH2K0JxqdhU5BEjnwmL28lvv3vEOhmIZT0sy+0Kikxh406zVe\nGM40SZyK9etOumP1ELPK5EZLhgYd52G+tTeJryR5Hc0ooe/AmlLkegqY/ohH\nYumsalTkvvyYoeqGYbgA3xrBgAGUUwdRKSVCNm6uafkEEmtvOrNsbE/ebWeC\n1RYwYl2z3AxHGifYyBTVSKurk3yKO+N6QX/9+CHNa0FhHWFmmQrLexk68Bom\n+e6tVHS48HCvMAqIHdXSvuRS1iLzm2gc9Th0KJpLH77WXdNJpi+Naicx/c2O\nm6B65YAk/L4fuUX+CfbkjPJwGc1h8UR1GTWZgk/uCc6ehJdJnErFFQOqevqu\n9so1SF6FgQKH7uDQd32TJTcQ36KhgaesCbjVIFAqujWwp4bN+SLwueebfMmb\n7moJVLJ9omyUrSo0biyuFI2yAJwPmZfPPKLg/dMhkjHqj9CLZrT8OWkl0ava\njbavQKpgN4BViglYRokJLwTbYxBSb9Rzl9fZPonJR8h7aGMiPk/kSvtUb/1+\nGKaO\r\n=Xx5u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAeO9rnVPMfjWP9EFIWegOU3SzTyYzyZYcWD2c49EXpAiBwoVy61M0tjJB4fIM69+6E06gg7wwMSNjIh8kFEdOByQ=="}],"size":66824,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.6.tgz"},"_npmUser":{"name":"sarvaje","email":"jdgarcia@outlook.com"},"directories":{},"maintainers":[{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"},{"name":"sarvaje","email":"jdgarcia@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.6_1623266013167_0.802798370773866"},"_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":1623266013327,"_cnpm_publish_time":1623266013327,"dist-tags":{"latest":"2.2.4"}}