{"_id":"accessibilityjs","_rev":"55-1c51b8953beed7bf777eb49875e67265","name":"accessibilityjs","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.1":{"name":"accessibilityjs","version":"1.0.1","keywords":["accessibility","a11y"],"author":{"name":"GitHub, Inc."},"license":"MIT","_id":"accessibilityjs@1.0.1","maintainers":[{"name":"muan","email":"me@muanchiou.com"}],"homepage":"https://github.com/github/accessibilityjs#readme","bugs":{"url":"https://github.com/github/accessibilityjs/issues"},"dist":{"shasum":"e48a897f671bf1e5861bab1dac15e3fd0188732b","tarball":"https://registry.npmjs.org/accessibilityjs/-/accessibilityjs-1.0.1.tgz","integrity":"sha512-09TPshN9FFdfvimYtcEZOckB/1Byl6VGjON299c2DNnP7PXZe3YufBOL+Ro1q9w+BwRJ5oECfh0340q2swWmkw==","signatures":[{"sig":"MEUCIEoYMIRBfqkogBbiEcKVjX623IeE6ecc2OsZwMiae4kvAiEA6ukVY+BLNywsZj02LfyMiUBqqcyw7Gi+RW6Co91U5QQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index-umd.js","files":["dist"],"module":"dist/index-esm.js","gitHead":"078813cff0a0cb744afe435c9f47da1b1b9eae56","scripts":{"test":"karma start ./test/karma.config.js","build":"npm run build-esm && npm run build-umd","clean":"rm -rf dist","example":"open \"file://$(pwd)/example.html\"","pretest":"eslint *.js && npm run build","prebuild":"npm run clean && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index-esm.js","build-umd":"BABEL_ENV=umd babel index.js -o dist/index-umd.js","preexample":"npm run pretest","prepublishOnly":"npm run build"},"_npmUser":{"name":"muan","email":"me@muanchiou.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/accessibilityjs.git","type":"git"},"_npmVersion":"5.4.2","description":"Client side accessibility error scanner.","directories":{},"_nodeVersion":"8.5.0","devDependencies":{"chai":"^4.1.2","karma":"^1.7.1","mocha":"^4.0.1","eslint":"^4.8.0","babel-cli":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","babel-eslint":"^8.0.1","babel-preset-es2015":"^6.24.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/accessibilityjs-1.0.1.tgz_1507892259821_0.7510749879293144","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"accessibilityjs","version":"1.1.0","keywords":["accessibility","a11y"],"author":{"name":"GitHub, Inc."},"license":"MIT","_id":"accessibilityjs@1.1.0","maintainers":[{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"},{"name":"muan","email":"me@muanchiou.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"}],"homepage":"https://github.com/github/accessibilityjs#readme","bugs":{"url":"https://github.com/github/accessibilityjs/issues"},"dist":{"shasum":"7d6772bdc9aa59f84c0085260bb4247eaaf54a75","tarball":"https://registry.npmjs.org/accessibilityjs/-/accessibilityjs-1.1.0.tgz","integrity":"sha512-RAGXJJMziwiQssFnGlH4X/qe4zWS13x22IJdVh5Cnpr7Lum4HVo8wFD2vJpXSGE02LyTeQnjfp/0OpumPEL9lw==","signatures":[{"sig":"MEUCIDOEGYALlxU+C49WaCsvkDmNe9i+HVFuoOtNQE3x/r+aAiEA5X1t8JSVlVga4GARbgq+GtBginetGDyTh92Fzb2lFsQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index-umd.js","files":["dist"],"module":"dist/index-esm.js","gitHead":"05956b23259fe9d1faed2b231e81c4d474b75797","scripts":{"test":"karma start ./test/karma.config.js","build":"npm run build-esm && npm run build-umd","clean":"rm -rf dist","example":"open \"file://$(pwd)/example.html\"","pretest":"eslint index.js && npm run build","prebuild":"npm run clean && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index-esm.js","build-umd":"BABEL_ENV=umd babel index.js -o dist/index-umd.js","preexample":"npm run pretest","prepublishOnly":"npm run build"},"_npmUser":{"name":"muan","email":"me@muanchiou.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/accessibilityjs.git","type":"git"},"_npmVersion":"5.4.2","description":"Client side accessibility error scanner.","directories":{},"_nodeVersion":"8.5.0","devDependencies":{"chai":"^4.1.2","karma":"^1.7.1","mocha":"^4.0.1","eslint":"^4.8.0","babel-cli":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","babel-eslint":"^8.0.1","babel-preset-es2015":"^6.24.1","eslint-plugin-github":"^0.18.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/accessibilityjs-1.1.0.tgz_1510648728760_0.8855521490331739","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"accessibilityjs","version":"1.1.1","keywords":["accessibility","a11y"],"author":{"name":"GitHub, Inc."},"license":"MIT","_id":"accessibilityjs@1.1.1","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/accessibilityjs#readme","bugs":{"url":"https://github.com/github/accessibilityjs/issues"},"dist":{"shasum":"d514346f99ad386896e73bcad36773f4dfd9d658","tarball":"https://registry.npmjs.org/accessibilityjs/-/accessibilityjs-1.1.1.tgz","fileCount":5,"integrity":"sha512-KnlGX0ktMZIX6jwcDNblEX67smbMXhS/hptQaZigfRnTbpOdIOj/xAXtyR74KjDAknV2GST+vhAthHRjJk/CSQ==","signatures":[{"sig":"MEUCIQDikrIf9316pokFTnMZ+R84O5Fqncy1DNwRNoA9uiQbXgIgXmbfOjs2ojLEWxL7A4l3Gb3GoREmDdVl7UukJSjaQvM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27375},"main":"dist/index-umd.js","files":["dist"],"module":"dist/index-esm.js","gitHead":"2395aab550f1803a3cfe4f1cd65d8fd083944261","scripts":{"test":"karma start ./test/karma.config.js","build":"npm run build-esm && npm run build-umd","clean":"rm -rf dist","example":"open \"file://$(pwd)/example.html\"","pretest":"eslint index.js && npm run build","prebuild":"npm run clean && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index-esm.js","build-umd":"BABEL_ENV=umd babel index.js -o dist/index-umd.js","preexample":"npm run pretest","prepublishOnly":"npm run build"},"_npmUser":{"name":"mislav","email":"mislav.marohnic@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/accessibilityjs.git","type":"git"},"_npmVersion":"5.6.0","description":"Client side accessibility error scanner.","directories":{},"_nodeVersion":"9.5.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^1.7.1","mocha":"^4.0.1","eslint":"^4.8.0","babel-cli":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","babel-eslint":"^8.0.1","babel-preset-es2015":"^6.24.1","eslint-plugin-github":"^0.18.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/accessibilityjs_1.1.1_1520611376183_0.5820765027690507","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"accessibilityjs","version":"1.1.2","keywords":["accessibility","a11y"],"author":{"name":"GitHub, Inc."},"license":"MIT","_id":"accessibilityjs@1.1.2","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/accessibilityjs#readme","bugs":{"url":"https://github.com/github/accessibilityjs/issues"},"dist":{"shasum":"3176924b4c3c46949dba956db710ef46f40e2edc","tarball":"https://registry.npmjs.org/accessibilityjs/-/accessibilityjs-1.1.2.tgz","fileCount":5,"integrity":"sha512-dZBZys+JbZAGNoiPVhUbgoOt0xi0pgYaYON01cVvivxLiZJGNOwOxqC01XVvQDihvDCKJcEVWGeAJXC/W3OSYw==","signatures":[{"sig":"MEUCIQD5UL/ZAqL3xGa2u2R27nryObZZrg7/BqE8JOYv3OXxvAIgZuWpqVEUooqdL5W4qNIrS2yp4fx1DcABd+KWJBAGr28=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2i5qCRA9TVsSAnZWagAA4e4P/A16Y+pMMKVWXIVM1/Yk\nzY+/kIvDFYn7q8fyIWJbcTcq/82Q2HZzUhs4AVe/dtHer+sWdP2Fv8E5opLf\n5IYpPDrYmfMV8sN5NXiURIM5EzdfxQF9Gsx4cr26ThRPctnW0J6lzRietT7x\nnmak0IsetnxONR35BF4xWlmxDgXE4CFKKSdwA7XSH9PuX10yJB8mYxIWOPlr\nhvhqrSwisW2LI1fJZm6Pea/AoHlYUGVlQ/UkCyLh0tOoGvNx8VPvhisavywl\n8apZtyh3oFxU5sxH2DjP/HB+5t6lU4FPB97sclg4xvh3oSacMZ05HezA7UbI\nu4t090Ntcs8g2SIq4ofrjl/ozCMosUdcEmB/T6miYvhyt2b1M3TYsNtUI2uO\nyxDDZ87aogPNuLoA3cFfKkIkUAIYvBvEb7/fG1s+ZesbyabjDYWs6W7jQvQs\nqZ/sJjo6dayxZViAbdYTn61oeNMLrdPs0WeY+BFAp0JcclJzLlMUwPpzEqwv\nJ+Uy4uIqjNJhwJTR3gQgqBfOoy5uq90zJDWQ0dDaUCQyx5hqNGsDXIfCyoKj\nqPFjvtWzB48MDOEH2YbdRkSOc3nyfIoWGND7EwueOiNz13pUL4U2Sqz/kxYa\nGg/iZM7Y6EErK7oG0qAsEL8oU7esVXgMpY2XMLR3+7ilXtWzFSMOn4cbF5hx\nRN7p\r\n=rRGR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index-umd.js","files":["dist"],"module":"dist/index-esm.js","gitHead":"b7502dd9cc106cee3a7ea589f42e87b12aecd4e8","scripts":{"test":"karma start ./test/karma.config.js","build":"npm run build-esm && npm run build-umd","clean":"rm -rf dist","example":"open \"file://$(pwd)/example.html\"","pretest":"eslint index.js && npm run build","prebuild":"npm run clean && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index-esm.js","build-umd":"BABEL_ENV=umd babel index.js -o dist/index-umd.js","preexample":"npm run pretest","prepublishOnly":"npm run build"},"_npmUser":{"name":"mislav","email":"mislav.marohnic@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/accessibilityjs.git","type":"git"},"_npmVersion":"5.6.0","description":"Client side accessibility error scanner.","directories":{},"_nodeVersion":"9.5.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^1.7.1","mocha":"^4.0.1","eslint":"^4.8.0","babel-cli":"^6.26.0","karma-chai":"^0.1.0","karma-mocha":"^1.3.0","babel-eslint":"^8.0.1","babel-preset-es2015":"^6.24.1","eslint-plugin-github":"^0.18.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/accessibilityjs_1.1.2_1526041385320_0.5554614077245419","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-10-13T10:39:05.711Z","modified":"2026-08-07T19:04:44.551Z","1.0.0":"2017-10-13T10:39:05.711Z","1.0.1":"2017-10-13T10:57:39.885Z","1.1.0":"2017-11-14T08:38:48.913Z","1.1.1":"2018-03-09T16:02:56.279Z","1.1.2":"2018-05-11T12:23:05.676Z"},"bugs":{"url":"https://github.com/github/accessibilityjs/issues"},"author":{"name":"GitHub, Inc."},"license":"MIT","homepage":"https://github.com/github/accessibilityjs#readme","keywords":["accessibility","a11y"],"repository":{"url":"git+https://github.com/github/accessibilityjs.git","type":"git"},"description":"Client side accessibility error scanner.","maintainers":[{"email":"manuelpuyol@github.com","name":"manuelpuyol"},{"email":"yes@jonrohan.codes","name":"jonrohan"},{"email":"design-systems@github.com","name":"primer-css"},{"email":"lugraciecy@gmail.com","name":"gracepark"},{"email":"jibrang@github.com","name":"jibrangarcia"},{"email":"arelia.jones@gmail.com","name":"arelia"},{"email":"tylerjdev@github.com","name":"tylerthedev"},{"email":"clay@smockle.com","name":"smockle"},{"email":"sim@simurai.com","name":"simurai"},{"email":"katehiga8@gmail.com","name":"khiga8"},{"email":"simon.taranto@gmail.com","name":"srt32"},{"email":"dgreif+githubbotnpm@github.com","name":"githubbot"},{"email":"jonathan.fuchs@gmail.com","name":"jfuchs"},{"email":"andri.j.alexandrou@gmail.com","name":"andrialexandrou"},{"email":"joycezhu@github.com","name":"joycezhu"},{"email":"bteng22@gmail.com","name":"bteng22"},{"email":"dustin.savery@gmail.com","name":"dustin.savery"},{"email":"ncalteen@github.com","name":"ncalteen"},{"email":"alaingoga@gmail.com","name":"alaingoga"},{"email":"andrei.girip99@gmail.com","name":"andreiig"},{"email":"me@muanchiou.com","name":"muan"}],"readme":"# accessibilityjs ![build status](https://travis-ci.org/github/accessibilityjs.svg?branch=master)\n\nClient side accessibility error scanner.\n\n## Install\n\n```\nnpm install accessibilityjs --save\n```\n\n## Usage\n\n```javascript\nimport {scanForProblems} from 'accessibilityjs'\n\nfunction logError(error) {\n  error.element.classList.add('accessibility-error')\n  error.element.addEventListener('click', function () {\n    alert(`${error.name}\\n\\n${error.message}`)\n  }, {once: true})\n}\n\ndocument.addEventListener('DOMContentLoaded', function() {\n  scanForProblems(document, logError)\n})\n```\n\nList of errors:\n\n- `ImageWithoutAltAttributeError`\n- `ElementWithoutLabelError`\n- `LinkWithoutLabelOrRoleError`\n- `LabelMissingControlError`\n- `InputMissingLabelError`\n- `ButtonWithoutLabelError`\n- `ARIAAttributeMissingError`\n\n## Scenario\n\nIn GitHub we use this script to scan for inaccessible elements in development and production staff mode. We style the elements with red borders in the `logError` function passed in, and add a click handler explaining the reasons.\n\n![Red borders are added to offending elements example](https://user-images.githubusercontent.com/1153134/31491689-bb8d8068-af0d-11e7-862b-01b059e13ba1.png)\n\n![An alert pops up on clicking the elements](https://user-images.githubusercontent.com/1153134/31491972-c8547512-af0e-11e7-9d0d-db116eb7cf58.png)\n\n## Browser support\n\n- Chrome\n- Firefox\n- Safari 6+\n- Internet Explorer 9+\n- Microsoft Edge\n\nInternet Explorer and Edge require a polyfill for [`closest`](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill).\n\n## Development\n\n```bash\n> npm install\n> npm test\n> npm run example\n```\n","readmeFilename":"README.md","users":{"broadway69":true}}