diff --git a/README.md b/README.md
index 104a4d4..ac0f77a 100644
--- a/README.md
+++ b/README.md
@@ -135,6 +135,8 @@ Catppuccin is available for various apps and in different formats. Here is a lis
- [Chrome](https://github.com/catppuccin/chrome)
- [Vimium](https://github.com/catppuccin/vimium)
- [YouTube](https://github.com/catppuccin/YouTube)
+- [MonkeyType](https://github.com/catppuccin/monkeytype)
+- [Libreddit](https://github.com/catppuccin/libreddit)
#### Productivity
diff --git a/tests/wcag-compliance/node_modules/.bin/node-which b/tests/wcag-compliance/node_modules/.bin/node-which
new file mode 120000
index 0000000..6f8415e
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/.bin/node-which
@@ -0,0 +1 @@
+../which/bin/node-which
\ No newline at end of file
diff --git a/tests/wcag-compliance/node_modules/.package-lock.json b/tests/wcag-compliance/node_modules/.package-lock.json
new file mode 100644
index 0000000..96046f1
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/.package-lock.json
@@ -0,0 +1,195 @@
+{
+ "name": "wcag-compliance",
+ "version": "0.1.0",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "node_modules/color-contrast-checker": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/color-contrast-checker/-/color-contrast-checker-2.1.0.tgz",
+ "integrity": "sha512-6Y0aIEej3pwZTVlicIqVzhO6T4izDWouaIXnYoDdTuFFAMQ9nnN0dgHNP9J94jRnH6asjPq1/wzUKxwoNbWtRQ=="
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/execa": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-6.1.0.tgz",
+ "integrity": "sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==",
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.1",
+ "human-signals": "^3.0.1",
+ "is-stream": "^3.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^5.1.0",
+ "onetime": "^6.0.0",
+ "signal-exit": "^3.0.7",
+ "strip-final-newline": "^3.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/human-signals": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz",
+ "integrity": "sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==",
+ "engines": {
+ "node": ">=12.20.0"
+ }
+ },
+ "node_modules/is-stream": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",
+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
+ },
+ "node_modules/merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="
+ },
+ "node_modules/mimic-fn": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz",
+ "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==",
+ "dependencies": {
+ "path-key": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/npm-run-path/node_modules/path-key": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",
+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
+ "dependencies": {
+ "mimic-fn": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
+ },
+ "node_modules/strip-final-newline": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ }
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/.eslintrc.js b/tests/wcag-compliance/node_modules/color-contrast-checker/.eslintrc.js
new file mode 100644
index 0000000..beb8ffa
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/.eslintrc.js
@@ -0,0 +1,29 @@
+module.exports = {
+ "env": {
+ "browser": true,
+ "node": true,
+ "mocha": true
+ },
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "ecmaVersion": 6
+ },
+ "rules": {
+ "indent": [
+ "error",
+ 4
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
+};
\ No newline at end of file
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/.github/workflows/npmpublish.yml b/tests/wcag-compliance/node_modules/color-contrast-checker/.github/workflows/npmpublish.yml
new file mode 100644
index 0000000..5c98e5b
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/.github/workflows/npmpublish.yml
@@ -0,0 +1,45 @@
+name: Node.js Package
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ - run: npm ci
+ - run: npm test
+
+ publish-npm:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ registry-url: https://registry.npmjs.org/
+ - run: npm ci
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
+
+ publish-gpr:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ registry-url: https://npm.pkg.github.com/
+ scope: '@Qambar'
+ - run: npm ci
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/LICENSE b/tests/wcag-compliance/node_modules/color-contrast-checker/LICENSE
new file mode 100644
index 0000000..055302e
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2019 BBC
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/README.md b/tests/wcag-compliance/node_modules/color-contrast-checker/README.md
new file mode 100644
index 0000000..a08b648
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/README.md
@@ -0,0 +1,152 @@
+# Color Contast Checker
+
+An accessibility checker tool for validating the color contrast based on WCAG 2.0 and WCAG 2.1 standard.
+
+The formula (L1/L2) for contrast is based on [ISO-9241-3] and [ANSI-HFES-100-1988] standards as described here :
+
+http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
+http://www.w3.org/TR/WCAG20/#contrast-ratiodef
+https://www.w3.org/TR/WCAG21/#contrast-minimum
+
+It also supports shorthand color codes e.g #FFF or #000 etc.
+
+https://www.w3.org/TR/2001/WD-css3-color-20010305#colorunits
+
+Installation:
+------------
+
+```
+npm install color-contrast-checker
+```
+or using package.json
+
+```
+{
+ "name": "my-app",
+ ..
+ "devDependencies": {
+ ..
+ "color-contrast-checker": "2.1.0"
+ }
+}
+```
+Then do `npm install`
+
+Usage:
+-----
+
+To check specific WCAG levels
+```
+var ccc = new ColorContrastChecker();
+
+var color1 = "#FFFFFF";
+var color2 = "#000000;
+
+if (ccc.isLevelAA(color1, color2, 14)) {
+ alert("Valid Level AA");
+} else {
+ alert("Invalid Contrast");
+}
+
+```
+
+To check custom ratios
+```
+var ccc = new ColorContrastChecker();
+
+var color1 = "#FFFFFF";
+var color2 = "#000000;
+var customRatio = 5.7;
+
+// No need for font size, now that we are using a custom ratio.
+// This is because we are no longer checking against WCAG requirements.
+if (ccc.isLevelCustom(color1, color2, customRatio)) {
+ alert("Above given ratio");
+} else {
+ alert("Invalid Contrast");
+}
+
+```
+
+Advanced Usage:
+--------------
+
+You can pass pairs and get results:
+
+
+```
+ var pairs = [
+ {
+ 'colorA': '#000000',
+ 'colorB': '#000000', // All should fail
+ 'fontSize': 14
+ },
+ {
+ 'colorA': '#000000',
+ 'colorB': '#FFFFFF', //All should pass
+ 'fontSize': 14
+ },
+ {
+ 'colorA': '#000000',
+ 'colorB': '#848484', //AAA should fail
+ 'fontSize': 14
+ },
+ {
+ 'colorA': '#000000',
+ 'colorB': '#848484', //All should pass (because of font)
+ 'fontSize': 19
+ },
+ {
+ 'colorA': '#000000',
+ 'colorB': '#757575', //AA should pass AAA should fail
+ 'fontSize': 14
+ },
+ {
+ 'colorA': '#000000',
+ 'colorB': '#656565', //All should fail
+ 'fontSize': 14
+ }
+ ];
+
+ var results = ccc.checkPairs(pairs);
+
+```
+
+The result will look like this:
+
+```
+[
+ {
+ 'WCAG_AA' : false,
+ 'WCAG_AAA': false
+ },
+ {
+ 'WCAG_AA' : true,
+ 'WCAG_AAA': true
+ },
+ {
+ 'WCAG_AA' : true,
+ 'WCAG_AAA': false
+ },
+ {
+ 'WCAG_AA' : true,
+ 'WCAG_AAA': true
+ },
+ {
+ 'WCAG_AA' : true,
+ 'WCAG_AAA': false
+ },
+ {
+ 'WCAG_AA' : false,
+ 'WCAG_AAA': false
+ }
+]
+```
+
+## Tests
+
+ `npm test`
+
+## Contributing
+
+In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/example/index.html b/tests/wcag-compliance/node_modules/color-contrast-checker/example/index.html
new file mode 100644
index 0000000..4218da1
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/example/index.html
@@ -0,0 +1,71 @@
+
+
+
+ Example - Color Contrast Checker
+
+
+
+
Color Contrast Checker
+
Try changing the values in the fields below
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ :
+
+
+
+ :
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/package.json b/tests/wcag-compliance/node_modules/color-contrast-checker/package.json
new file mode 100644
index 0000000..5d3efd2
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/package.json
@@ -0,0 +1,62 @@
+{
+ "name": "color-contrast-checker",
+ "version": "2.1.0",
+ "description": "This is an accessibility validator based on WCAG 2.0 standard for checking the color contrast.",
+ "main": "src/color-contrast-checker.js",
+ "directories": {
+ "example": "example"
+ },
+ "scripts": {
+ "test": "mocha --reporter spec",
+ "lint": "eslint test"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Qambar/color-contrast-checker.git"
+ },
+ "keywords": [
+ "wcag",
+ "wcag-aa",
+ "color",
+ "contrast",
+ "verifier",
+ "accessibility",
+ "standard"
+ ],
+ "author": {
+ "name": "Qambar Raza",
+ "email": "qambar.raza@bbc.co.uk",
+ "url": "http://www.bbc.co.uk"
+ },
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/Qambar/color-contrast-checker/issues"
+ },
+ "homepage": "https://github.com/Qambar/color-contrast-checker#readme",
+ "gitHead": "45b65d45fc281ba90529183ff412299a7c1379d0",
+ "_id": "color-contrast-checker@1.2.0",
+ "_shasum": "a43bd41523775450e6f31ce38e64b44312157325",
+ "_from": "color-contrast-checker@1.2.0",
+ "_npmVersion": "2.13.1",
+ "_nodeVersion": "0.12.0",
+ "_npmUser": {
+ "name": "qambar",
+ "email": "qambar.raza@bbc.co.uk"
+ },
+ "dist": {
+ "shasum": "a43bd41523775450e6f31ce38e64b44312157325",
+ "tarball": "http://registry.npmjs.org/color-contrast-checker/-/color-contrast-checker-1.2.0.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "qambar",
+ "email": "qambar.raza@bbc.co.uk"
+ }
+ ],
+ "_resolved": "http://registry.npmjs.org/color-contrast-checker/-/color-contrast-checker-1.2.0.tgz",
+ "devDependencies": {
+ "chai": "^4.2.0",
+ "eslint": "^5.12.1",
+ "mocha": "^5.2.0"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/src/color-contrast-checker.js b/tests/wcag-compliance/node_modules/color-contrast-checker/src/color-contrast-checker.js
new file mode 100644
index 0000000..d4075b4
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/src/color-contrast-checker.js
@@ -0,0 +1,241 @@
+"use strict";
+
+/**
+ * Color Contast Checker
+ * An accessibility checker tool for validating the color contrast based on WCAG 2.0 standard.
+ * var ccc = new ColorContrastChecker();
+
+ * var color1 = "#FFFFFF";
+ * var color2 = "#000000;
+
+ * if (ccc.isLevelAA(color1, color2, 14)) {
+ * alert("Valid Level AA");
+ * } else {
+ * alert("Invalid Contrast");
+ * }
+ */
+
+function ColorContrastChecker() {};
+
+module.exports = ColorContrastChecker;
+
+ColorContrastChecker.prototype = {
+ fontSize: 14,
+ rgbClass : {
+ toString: function() {
+ return "";
+ }
+ },
+ isValidSixDigitColorCode: function (hex){
+ var regSixDigitColorcode = /^(#)?([0-9a-fA-F]{6})?$/;
+ return regSixDigitColorcode.test(hex);
+ },
+ isValidThreeDigitColorCode: function (hex){
+ var regThreeDigitColorcode = /^(#)?([0-9a-fA-F]{3})?$/;
+ return regThreeDigitColorcode.test(hex);
+ },
+ isValidColorCode : function (hex){
+ return this.isValidSixDigitColorCode(hex) || this.isValidThreeDigitColorCode(hex);
+ },
+ isValidRatio : function (ratio){
+ return (typeof ratio === "number");
+ },
+ convertColorToSixDigit: function (hex) {
+ return "#" + hex[1] + hex[1] + hex[2] + hex[2] + hex[3] + hex[3];
+ },
+ hexToLuminance: function (color) {
+ if (!this.isValidColorCode(color)) {
+ throw new Error("Invalid Color :" + color);
+ }
+
+ if (this.isValidThreeDigitColorCode(color)) {
+ color = this.convertColorToSixDigit(color);
+ }
+
+ color = this.getRGBFromHex(color);
+
+ var LRGB = this.calculateLRGB(color);
+
+ return this.calculateLuminance(LRGB);
+ },
+ check: function (colorA, colorB, fontSize, customRatio) {
+ if (typeof fontSize !== "undefined") {
+ this.fontSize = fontSize;
+ }
+
+ if(!colorA || !colorB) {
+ return false;
+ }
+
+ var l1 = this.hexToLuminance(colorA); /* higher value */
+ var l2 = this.hexToLuminance(colorB); /* lower value */
+ var contrastRatio = this.getContrastRatio(l1, l2);
+
+ if (typeof customRatio !== "undefined") {
+ if (!this.isValidRatio(customRatio)) {
+ return false;
+ }
+ return this.verifyCustomContrastRatio(contrastRatio, customRatio);
+ } else {
+ return this.verifyContrastRatio(contrastRatio);
+ }
+ },
+ checkPairs: function (pairs, customRatio) {
+ var results = [];
+
+ for (var i in pairs) {
+ var pair = pairs[i];
+ if (typeof pair.fontSize !== "undefined") {
+ results.push(
+ this.check(
+ pair.colorA,
+ pair.colorB,
+ pair.fontSize,
+ customRatio
+ )
+ );
+ } else {
+ results.push(
+ this.check(
+ pair.colorA,
+ pair.colorB,
+ void 0,
+ customRatio
+ )
+ );
+ }
+ }
+ return results;
+ },
+ calculateLuminance: function(lRGB) {
+ return (0.2126 * lRGB.r) + (0.7152 * lRGB.g) + (0.0722 * lRGB.b);
+ },
+ isLevelAA : function(colorA, colorB, fontSize) {
+ var result = this.check(colorA, colorB, fontSize);
+ return result.WCAG_AA;
+ },
+ isLevelAAA : function(colorA, colorB, fontSize) {
+ var result = this.check(colorA, colorB, fontSize);
+ return result.WCAG_AAA;
+ },
+ isLevelCustom : function(colorA, colorB, ratio) {
+ var result = this.check(colorA, colorB, void 0, ratio);
+ return result.customRatio;
+ },
+ getRGBFromHex : function(color) {
+
+ var rgb = Object.create(this.rgbClass),
+ rVal,
+ gVal,
+ bVal;
+
+ if (typeof color !== "string") {
+ throw new Error("must use string");
+ }
+
+ rVal = parseInt(color.slice(1, 3), 16);
+ gVal = parseInt(color.slice(3, 5), 16);
+ bVal = parseInt(color.slice(5, 7), 16);
+
+ rgb.r = rVal;
+ rgb.g = gVal;
+ rgb.b = bVal;
+
+ return rgb;
+ },
+ calculateSRGB : function(rgb) {
+ var sRGB = Object.create(this.rgbClass),
+ key;
+
+ for (key in rgb) {
+ if (rgb.hasOwnProperty(key)) {
+ sRGB[key] = parseFloat((rgb[key] / 255), 10);
+ }
+ }
+
+ return sRGB;
+ },
+ calculateLRGB: function (rgb) {
+ var sRGB = this.calculateSRGB(rgb);
+ var lRGB = Object.create(this.rgbClass),
+ key,
+ val = 0;
+
+ for (key in sRGB) {
+ if (sRGB.hasOwnProperty(key)) {
+ val = parseFloat(sRGB[key], 10);
+ if (val <= 0.03928) {
+ lRGB[key] = (val / 12.92);
+ } else {
+ lRGB[key] = Math.pow(((val + 0.055) / 1.055), 2.4);
+ }
+ }
+ }
+
+ return lRGB;
+ },
+ getContrastRatio : function(lumA, lumB) {
+ var ratio,
+ lighter,
+ darker;
+
+ if (lumA >= lumB) {
+ lighter = lumA;
+ darker = lumB;
+ } else {
+ lighter = lumB;
+ darker = lumA;
+ }
+
+ ratio = (lighter + 0.05) / (darker + 0.05);
+
+ return ratio;
+ },
+ verifyContrastRatio : function(ratio) {
+
+
+ var resultsClass = {
+ toString: function() {
+ return "< WCAG-AA: " + ((this.WCAG_AA) ? "pass" : "fail") +
+ " WCAG-AAA: " + ((this.WCAG_AAA) ? "pass" : "fail") +
+ " >";
+ }
+ };
+ var WCAG_REQ_RATIO_AA_LG = 3.0,
+ WCAG_REQ_RATIO_AA_SM = 4.5,
+ WCAG_REQ_RATIO_AAA_LG = 4.5,
+ WCAG_REQ_RATIO_AAA_SM = 7.0,
+ WCAG_FONT_CUTOFF = 18;
+
+ var results = Object.create(resultsClass),
+ fontSize = this.fontSize || 14;
+
+ if (fontSize >= WCAG_FONT_CUTOFF) {
+ results.WCAG_AA = (ratio >= WCAG_REQ_RATIO_AA_LG);
+ results.WCAG_AAA = (ratio >= WCAG_REQ_RATIO_AAA_LG);
+ } else {
+ results.WCAG_AA = (ratio >= WCAG_REQ_RATIO_AA_SM);
+ results.WCAG_AAA = (ratio >= WCAG_REQ_RATIO_AAA_SM);
+ }
+
+ return results;
+ },
+ verifyCustomContrastRatio : function(inputRatio, checkRatio) {
+
+ var resultsClass = {
+ toString: function() {
+ return "< Custom Ratio: " + ((this.customRatio) ? "pass" : "fail") +
+ " >";
+ }
+ };
+
+ var results = Object.create(resultsClass);
+
+ results.customRatio = (inputRatio >= checkRatio);
+ return results;
+ }
+
+};
diff --git a/tests/wcag-compliance/node_modules/color-contrast-checker/test/color-contrast-checker.js b/tests/wcag-compliance/node_modules/color-contrast-checker/test/color-contrast-checker.js
new file mode 100644
index 0000000..aedef22
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/color-contrast-checker/test/color-contrast-checker.js
@@ -0,0 +1,342 @@
+"use strict";
+
+var expect = require("chai").expect;
+var ColorContrastChecker = require("../src/color-contrast-checker");
+var ccc = new ColorContrastChecker();
+
+describe("Three Digit Color Code Lengths", function() {
+ it("should accept 3 digit color code", function() {
+ var result = ccc.isValidThreeDigitColorCode("#FFF");
+ expect(result).to.be.true;
+ });
+
+ it("should reject 2 digit color code", function() {
+ var result = ccc.isValidThreeDigitColorCode("#FF");
+ expect(result).to.be.false;
+ });
+
+ it("should reject 4 digit color code", function() {
+ var result = ccc.isValidThreeDigitColorCode("#FFFF");
+ expect(result).to.be.false;
+ });
+
+ it("should reject 6 digit color code", function() {
+ var result = ccc.isValidThreeDigitColorCode("#FFFFFF");
+ expect(result).to.be.false;
+ });
+});
+
+describe("Six Digit Color Code Lengths", function() {
+ it("should accept 6 digit color code", function() {
+ var result = ccc.isValidSixDigitColorCode("#FFFFFF");
+ expect(result).to.be.true;
+ });
+
+ it("should reject 5 digit color code", function() {
+ var result = ccc.isValidSixDigitColorCode("#FFFFF");
+ expect(result).to.be.false;
+ });
+
+ it("should reject 7 digit color code", function() {
+ var result = ccc.isValidSixDigitColorCode("#FFFFFFF");
+ expect(result).to.be.false;
+ });
+
+ it("should reject 3 digit color code", function() {
+ var result = ccc.isValidSixDigitColorCode("#FFF");
+ expect(result).to.be.false;
+ });
+});
+
+describe("Supported Color Code Lengths", function() {
+ it("should accept 3 digit color code", function() {
+ var result = ccc.isValidColorCode("#FFF");
+ expect(result).to.be.true;
+ });
+
+ it("should accept 6 digit color code", function() {
+ var result = ccc.isValidColorCode("#FFFFFF");
+ expect(result).to.be.true;
+ });
+
+ it("should reject 7 digit color code", function() {
+ var result = ccc.isValidColorCode("#FFFFFFF");
+ expect(result).to.be.false;
+ });
+});
+
+describe("Supported Custom Ratio Inputs", function() {
+ it("should accept an integer", function() {
+ var result = ccc.isValidRatio(1);
+ expect(result).to.be.true;
+ });
+
+ it("should accept a float", function() {
+ var result = ccc.isValidRatio(3.2);
+ expect(result).to.be.true;
+ });
+
+ it("should reject a string", function() {
+ var result = ccc.isValidRatio("3.2");
+ expect(result).to.be.false;
+ });
+});
+
+describe("Convert Color from 3 digit to 6 digit", function() {
+ it("should convert 3 digit color to 6 digit", function() {
+ var result = ccc.convertColorToSixDigit("#FFF");
+ expect(result).to.equal("#FFFFFF");
+ });
+});
+
+describe("Convert Hex to Luminance", function() {
+ it("should convert 3 digit color luminance value", function() {
+ var result = ccc.hexToLuminance("#FFF");
+ expect(result).to.equal(1);
+ });
+
+ it("should convert 6 digit color luminance value", function() {
+ var result = ccc.hexToLuminance("#FFFFFF");
+ expect(result).to.equal(1);
+ });
+
+ it("should convert blue color luminance value", function() {
+ var result = ccc.hexToLuminance("#0000FF");
+ expect(result).to.equal(0.0722);
+ });
+
+ it("should convert yellow color luminance value", function() {
+ var result = ccc.hexToLuminance("#ffff00");
+ expect(result).to.equal(0.9278);
+ });
+});
+
+describe("Basic Validation for LevelAA", function() {
+ it("should return true when contrast is valid for three digit color codes", function() {
+ var result = ccc.isLevelAA("#FFF", "#000", 14);
+ expect(result).to.be.true;
+ });
+
+ it("should return true when contrast is valid", function() {
+ var result = ccc.isLevelAA("#FFFFFF", "#000000", 14);
+ expect(result).to.be.true;
+ });
+
+ it("should return false when contrast is invalid", function() {
+ var result = ccc.isLevelAA("#000000", "#000000", 14);
+ expect(result).to.be.false;
+ });
+});
+
+describe("Basic Validation for LevelAAA", function() {
+ it("should return true when contrast is valid for three digit color codes", function() {
+ var result = ccc.isLevelAA("#FFF", "#000", 14);
+ expect(result).to.be.true;
+ });
+
+ it("should return true when contrast is valid", function() {
+ var result = ccc.isLevelAA("#FFFFFF", "#000000", 14);
+ expect(result).to.be.true;
+ });
+
+ it("should return false when contrast is invalid", function() {
+ var result = ccc.isLevelAA("#000000", "#000000", 14);
+ expect(result).to.be.false;
+ });
+});
+
+describe("Basic Validation for Custom Ratio", function() {
+ it("should return true when contrast is valid for three digit color codes", function() {
+ var result = ccc.isLevelCustom("#FFF", "#000", 5);
+ expect(result).to.be.true;
+ });
+
+ it("should return true when contrast is valid", function() {
+ var result = ccc.isLevelCustom("#FFFFFF", "#000000", 5);
+ expect(result).to.be.true;
+ });
+
+ it("should return false when contrast is invalid", function() {
+ var result = ccc.isLevelCustom("#000000", "#000000", 5);
+ expect(result).to.be.false;
+ });
+});
+
+describe("Six Digit Pair Validation for LevelAAA", function() {
+ var pairs = [
+ {
+ "colorA": "#000000",
+ "colorB": "#000000", // All should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#FFFFFF", //All should pass
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#998899", //AAA should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#998899", //All should pass (because of font)
+ "fontSize": 19
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#887788", //AA should pass AAA should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#656565", //All should fail
+ "fontSize": 14
+ }
+ ];
+
+
+ var expectedResults = [
+ { WCAG_AA: false, WCAG_AAA: false },
+ { WCAG_AA: true, WCAG_AAA: true },
+ { WCAG_AA: true, WCAG_AAA: false },
+ { WCAG_AA: true, WCAG_AAA: true },
+ { WCAG_AA: true, WCAG_AAA: false },
+ { WCAG_AA: false, WCAG_AAA: false } ];
+
+ function objectsAreSame(x, y) {
+ var objectsAreSame = true;
+ x.forEach((element, index) => {
+ if (element.WCAG_AA !== y[index].WCAG_AA) {
+ objectsAreSame = false;
+ }
+ if (element.WCAG_AAA !== y[index].WCAG_AAA) {
+ objectsAreSame = false;
+ }
+ });
+ return objectsAreSame;
+ }
+
+ it("should return the expectedResults for checkPairs", function() {
+ var results = ccc.checkPairs(pairs);
+ expect(results).to.be.an("array");
+ expect(results).to.have.lengthOf(6);
+ expect(objectsAreSame(results, expectedResults)).to.be.true;
+ });
+});
+
+describe("Three Digit Pair Validation for LevelAAA", function() {
+ var pairs = [
+ {
+ "colorA": "#000",
+ "colorB": "#000", // All should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000",
+ "colorB": "#FFF", //All should pass
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000",
+ "colorB": "#989", //AAA should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000",
+ "colorB": "#989", //All should pass (because of font)
+ "fontSize": 19
+ },
+ {
+ "colorA": "#000",
+ "colorB": "#878", //AA should pass AAA should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000",
+ "colorB": "#656", //All should fail
+ "fontSize": 14
+ }
+ ];
+
+
+ var expectedResults = [
+ { WCAG_AA: false, WCAG_AAA: false },
+ { WCAG_AA: true, WCAG_AAA: true },
+ { WCAG_AA: true, WCAG_AAA: false },
+ { WCAG_AA: true, WCAG_AAA: true },
+ { WCAG_AA: true, WCAG_AAA: false },
+ { WCAG_AA: false, WCAG_AAA: false } ];
+
+ function objectsAreSame(x, y) {
+ var objectsAreSame = true;
+ x.forEach((element, index) => {
+ if (element.WCAG_AA !== y[index].WCAG_AA) {
+ objectsAreSame = false;
+ }
+ if (element.WCAG_AAA !== y[index].WCAG_AAA) {
+ objectsAreSame = false;
+ }
+ });
+ return objectsAreSame;
+ }
+ it("should return the expectedResults for checkPairs", function() {
+ var results = ccc.checkPairs(pairs);
+ expect(results).to.be.an("array");
+ expect(results).to.have.lengthOf(6);
+ expect(objectsAreSame(results, expectedResults)).to.be.true;
+ });
+});
+
+describe("Six Digit Pair Validation for Custom Ratio", function() {
+ var pairs = [
+ {
+ "colorA": "#000000",
+ "colorB": "#000000", // This should fail
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#FFFFFF", // This should pass
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#998899", // This should pass
+ "fontSize": 14
+ },
+ {
+ "colorA": "#000000",
+ "colorB": "#656565", // This should fail
+ "fontSize": 14
+ }
+ ];
+
+
+ var expectedResults = [
+ { customRatio: false },
+ { customRatio: true },
+ { customRatio: true },
+ { customRatio: false } ];
+
+ function objectsAreSame(x, y) {
+ var objectsAreSame = true;
+ x.forEach((element, index) => {
+ if (element.WCAG_AA !== y[index].WCAG_AA) {
+ objectsAreSame = false;
+ }
+ if (element.WCAG_AAA !== y[index].WCAG_AAA) {
+ objectsAreSame = false;
+ }
+ });
+ return objectsAreSame;
+ }
+
+ it("should return the expectedResults for checkPairs", function() {
+ var results = ccc.checkPairs(pairs, 5.6);
+ expect(results).to.be.an("array");
+ expect(results).to.have.lengthOf(4);
+ expect(objectsAreSame(results, expectedResults)).to.be.true;
+ });
+});
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/CHANGELOG.md b/tests/wcag-compliance/node_modules/cross-spawn/CHANGELOG.md
new file mode 100644
index 0000000..d07c9e5
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/CHANGELOG.md
@@ -0,0 +1,130 @@
+# Changelog
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+### [7.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.2...v7.0.3) (2020-05-25)
+
+
+### Bug Fixes
+
+* detect path key based on correct environment ([#133](https://github.com/moxystudio/node-cross-spawn/issues/133)) ([159e7e9](https://github.com/moxystudio/node-cross-spawn/commit/159e7e9785e57451cba034ae51719f97135074ae))
+
+### [7.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.1...v7.0.2) (2020-04-04)
+
+
+### Bug Fixes
+
+* fix worker threads in Node >=11.10.0 ([#132](https://github.com/moxystudio/node-cross-spawn/issues/132)) ([6c5b4f0](https://github.com/moxystudio/node-cross-spawn/commit/6c5b4f015814a6c4f6b33230dfd1a860aedc0aaf))
+
+### [7.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.0...v7.0.1) (2019-10-07)
+
+
+### Bug Fixes
+
+* **core:** support worker threads ([#127](https://github.com/moxystudio/node-cross-spawn/issues/127)) ([cfd49c9](https://github.com/moxystudio/node-cross-spawn/commit/cfd49c9))
+
+## [7.0.0](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.0) (2019-09-03)
+
+
+### ⚠ BREAKING CHANGES
+
+* drop support for Node.js < 8
+
+* drop support for versions below Node.js 8 ([#125](https://github.com/moxystudio/node-cross-spawn/issues/125)) ([16feb53](https://github.com/moxystudio/node-cross-spawn/commit/16feb53))
+
+
+## [6.0.5](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.4...v6.0.5) (2018-03-02)
+
+
+### Bug Fixes
+
+* avoid using deprecated Buffer constructor ([#94](https://github.com/moxystudio/node-cross-spawn/issues/94)) ([d5770df](https://github.com/moxystudio/node-cross-spawn/commit/d5770df)), closes [/nodejs.org/api/deprecations.html#deprecations_dep0005](https://github.com//nodejs.org/api/deprecations.html/issues/deprecations_dep0005)
+
+
+
+
+## [6.0.4](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.3...v6.0.4) (2018-01-31)
+
+
+### Bug Fixes
+
+* fix paths being incorrectly normalized on unix ([06ee3c6](https://github.com/moxystudio/node-cross-spawn/commit/06ee3c6)), closes [#90](https://github.com/moxystudio/node-cross-spawn/issues/90)
+
+
+
+
+## [6.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.2...v6.0.3) (2018-01-23)
+
+
+
+
+## [6.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.1...v6.0.2) (2018-01-23)
+
+
+
+
+## [6.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.0...v6.0.1) (2018-01-23)
+
+
+
+
+# [6.0.0](https://github.com/moxystudio/node-cross-spawn/compare/5.1.0...6.0.0) (2018-01-23)
+
+
+### Bug Fixes
+
+* fix certain arguments not being correctly escaped or causing batch syntax error ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)), closes [#82](https://github.com/moxystudio/node-cross-spawn/issues/82) [#51](https://github.com/moxystudio/node-cross-spawn/issues/51)
+* fix commands as posix relatixe paths not working correctly, e.g.: `./my-command` ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10))
+* fix `options` argument being mutated ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10))
+* fix commands resolution when PATH was actually Path ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10))
+
+
+### Features
+
+* improve compliance with node's ENOENT errors ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10))
+* improve detection of node's shell option support ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10))
+
+
+### Chores
+
+* upgrade tooling
+* upgrate project to es6 (node v4)
+
+
+### BREAKING CHANGES
+
+* remove support for older nodejs versions, only `node >= 4` is supported
+
+
+
+## [5.1.0](https://github.com/moxystudio/node-cross-spawn/compare/5.0.1...5.1.0) (2017-02-26)
+
+
+### Bug Fixes
+
+* fix `options.shell` support for NodeJS [v4.8](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0)
+
+
+
+## [5.0.1](https://github.com/moxystudio/node-cross-spawn/compare/5.0.0...5.0.1) (2016-11-04)
+
+
+### Bug Fixes
+
+* fix `options.shell` support for NodeJS v7
+
+
+
+# [5.0.0](https://github.com/moxystudio/node-cross-spawn/compare/4.0.2...5.0.0) (2016-10-30)
+
+
+## Features
+
+* add support for `options.shell`
+* improve parsing of shebangs by using [`shebang-command`](https://github.com/kevva/shebang-command) module
+
+
+## Chores
+
+* refactor some code to make it more clear
+* update README caveats
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/LICENSE b/tests/wcag-compliance/node_modules/cross-spawn/LICENSE
new file mode 100644
index 0000000..8407b9a
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Made With MOXY Lda
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/README.md b/tests/wcag-compliance/node_modules/cross-spawn/README.md
new file mode 100644
index 0000000..c4a4da8
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/README.md
@@ -0,0 +1,96 @@
+# cross-spawn
+
+[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]
+
+[npm-url]:https://npmjs.org/package/cross-spawn
+[downloads-image]:https://img.shields.io/npm/dm/cross-spawn.svg
+[npm-image]:https://img.shields.io/npm/v/cross-spawn.svg
+[travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn
+[travis-image]:https://img.shields.io/travis/moxystudio/node-cross-spawn/master.svg
+[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn
+[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg
+[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn
+[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg
+[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn
+[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg
+[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev
+[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg
+
+A cross platform solution to node's spawn and spawnSync.
+
+
+## Installation
+
+Node.js version 8 and up:
+`$ npm install cross-spawn`
+
+Node.js version 7 and under:
+`$ npm install cross-spawn@6`
+
+## Why
+
+Node has issues when using spawn on Windows:
+
+- It ignores [PATHEXT](https://github.com/joyent/node/issues/2318)
+- It does not support [shebangs](https://en.wikipedia.org/wiki/Shebang_(Unix))
+- Has problems running commands with [spaces](https://github.com/nodejs/node/issues/7367)
+- Has problems running commands with posix relative paths (e.g.: `./my-folder/my-executable`)
+- Has an [issue](https://github.com/moxystudio/node-cross-spawn/issues/82) with command shims (files in `node_modules/.bin/`), where arguments with quotes and parenthesis would result in [invalid syntax error](https://github.com/moxystudio/node-cross-spawn/blob/e77b8f22a416db46b6196767bcd35601d7e11d54/test/index.test.js#L149)
+- No `options.shell` support on node `` where `` must not contain any arguments.
+If you would like to have the shebang support improved, feel free to contribute via a pull-request.
+
+Remember to always test your code on Windows!
+
+
+## Tests
+
+`$ npm test`
+`$ npm test -- --watch` during development
+
+
+## License
+
+Released under the [MIT License](https://www.opensource.org/licenses/mit-license.php).
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/index.js b/tests/wcag-compliance/node_modules/cross-spawn/index.js
new file mode 100644
index 0000000..5509742
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/index.js
@@ -0,0 +1,39 @@
+'use strict';
+
+const cp = require('child_process');
+const parse = require('./lib/parse');
+const enoent = require('./lib/enoent');
+
+function spawn(command, args, options) {
+ // Parse the arguments
+ const parsed = parse(command, args, options);
+
+ // Spawn the child process
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
+
+ // Hook into child process "exit" event to emit an error if the command
+ // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
+ enoent.hookChildProcess(spawned, parsed);
+
+ return spawned;
+}
+
+function spawnSync(command, args, options) {
+ // Parse the arguments
+ const parsed = parse(command, args, options);
+
+ // Spawn the child process
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
+
+ // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
+
+ return result;
+}
+
+module.exports = spawn;
+module.exports.spawn = spawn;
+module.exports.sync = spawnSync;
+
+module.exports._parse = parse;
+module.exports._enoent = enoent;
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/lib/enoent.js b/tests/wcag-compliance/node_modules/cross-spawn/lib/enoent.js
new file mode 100644
index 0000000..14df9b6
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/lib/enoent.js
@@ -0,0 +1,59 @@
+'use strict';
+
+const isWin = process.platform === 'win32';
+
+function notFoundError(original, syscall) {
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
+ code: 'ENOENT',
+ errno: 'ENOENT',
+ syscall: `${syscall} ${original.command}`,
+ path: original.command,
+ spawnargs: original.args,
+ });
+}
+
+function hookChildProcess(cp, parsed) {
+ if (!isWin) {
+ return;
+ }
+
+ const originalEmit = cp.emit;
+
+ cp.emit = function (name, arg1) {
+ // If emitting "exit" event and exit code is 1, we need to check if
+ // the command exists and emit an "error" instead
+ // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
+ if (name === 'exit') {
+ const err = verifyENOENT(arg1, parsed, 'spawn');
+
+ if (err) {
+ return originalEmit.call(cp, 'error', err);
+ }
+ }
+
+ return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
+ };
+}
+
+function verifyENOENT(status, parsed) {
+ if (isWin && status === 1 && !parsed.file) {
+ return notFoundError(parsed.original, 'spawn');
+ }
+
+ return null;
+}
+
+function verifyENOENTSync(status, parsed) {
+ if (isWin && status === 1 && !parsed.file) {
+ return notFoundError(parsed.original, 'spawnSync');
+ }
+
+ return null;
+}
+
+module.exports = {
+ hookChildProcess,
+ verifyENOENT,
+ verifyENOENTSync,
+ notFoundError,
+};
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/lib/parse.js b/tests/wcag-compliance/node_modules/cross-spawn/lib/parse.js
new file mode 100644
index 0000000..0129d74
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/lib/parse.js
@@ -0,0 +1,91 @@
+'use strict';
+
+const path = require('path');
+const resolveCommand = require('./util/resolveCommand');
+const escape = require('./util/escape');
+const readShebang = require('./util/readShebang');
+
+const isWin = process.platform === 'win32';
+const isExecutableRegExp = /\.(?:com|exe)$/i;
+const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
+
+function detectShebang(parsed) {
+ parsed.file = resolveCommand(parsed);
+
+ const shebang = parsed.file && readShebang(parsed.file);
+
+ if (shebang) {
+ parsed.args.unshift(parsed.file);
+ parsed.command = shebang;
+
+ return resolveCommand(parsed);
+ }
+
+ return parsed.file;
+}
+
+function parseNonShell(parsed) {
+ if (!isWin) {
+ return parsed;
+ }
+
+ // Detect & add support for shebangs
+ const commandFile = detectShebang(parsed);
+
+ // We don't need a shell if the command filename is an executable
+ const needsShell = !isExecutableRegExp.test(commandFile);
+
+ // If a shell is required, use cmd.exe and take care of escaping everything correctly
+ // Note that `forceShell` is an hidden option used only in tests
+ if (parsed.options.forceShell || needsShell) {
+ // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
+ // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
+ // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
+ // we need to double escape them
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
+
+ // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
+ // This is necessary otherwise it will always fail with ENOENT in those cases
+ parsed.command = path.normalize(parsed.command);
+
+ // Escape command & arguments
+ parsed.command = escape.command(parsed.command);
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
+
+ const shellCommand = [parsed.command].concat(parsed.args).join(' ');
+
+ parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
+ parsed.command = process.env.comspec || 'cmd.exe';
+ parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
+ }
+
+ return parsed;
+}
+
+function parse(command, args, options) {
+ // Normalize arguments, similar to nodejs
+ if (args && !Array.isArray(args)) {
+ options = args;
+ args = null;
+ }
+
+ args = args ? args.slice(0) : []; // Clone array to avoid changing the original
+ options = Object.assign({}, options); // Clone object to avoid changing the original
+
+ // Build our parsed object
+ const parsed = {
+ command,
+ args,
+ options,
+ file: undefined,
+ original: {
+ command,
+ args,
+ },
+ };
+
+ // Delegate further parsing to shell or non-shell
+ return options.shell ? parsed : parseNonShell(parsed);
+}
+
+module.exports = parse;
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/lib/util/escape.js b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/escape.js
new file mode 100644
index 0000000..b0bb84c
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/escape.js
@@ -0,0 +1,45 @@
+'use strict';
+
+// See http://www.robvanderwoude.com/escapechars.php
+const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
+
+function escapeCommand(arg) {
+ // Escape meta chars
+ arg = arg.replace(metaCharsRegExp, '^$1');
+
+ return arg;
+}
+
+function escapeArgument(arg, doubleEscapeMetaChars) {
+ // Convert to string
+ arg = `${arg}`;
+
+ // Algorithm below is based on https://qntm.org/cmd
+
+ // Sequence of backslashes followed by a double quote:
+ // double up all the backslashes and escape the double quote
+ arg = arg.replace(/(\\*)"/g, '$1$1\\"');
+
+ // Sequence of backslashes followed by the end of the string
+ // (which will become a double quote later):
+ // double up all the backslashes
+ arg = arg.replace(/(\\*)$/, '$1$1');
+
+ // All other backslashes occur literally
+
+ // Quote the whole thing:
+ arg = `"${arg}"`;
+
+ // Escape meta chars
+ arg = arg.replace(metaCharsRegExp, '^$1');
+
+ // Double escape meta chars if necessary
+ if (doubleEscapeMetaChars) {
+ arg = arg.replace(metaCharsRegExp, '^$1');
+ }
+
+ return arg;
+}
+
+module.exports.command = escapeCommand;
+module.exports.argument = escapeArgument;
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/lib/util/readShebang.js b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/readShebang.js
new file mode 100644
index 0000000..5e83733
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/readShebang.js
@@ -0,0 +1,23 @@
+'use strict';
+
+const fs = require('fs');
+const shebangCommand = require('shebang-command');
+
+function readShebang(command) {
+ // Read the first 150 bytes from the file
+ const size = 150;
+ const buffer = Buffer.alloc(size);
+
+ let fd;
+
+ try {
+ fd = fs.openSync(command, 'r');
+ fs.readSync(fd, buffer, 0, size, 0);
+ fs.closeSync(fd);
+ } catch (e) { /* Empty */ }
+
+ // Attempt to extract shebang (null is returned if not a shebang)
+ return shebangCommand(buffer.toString());
+}
+
+module.exports = readShebang;
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/lib/util/resolveCommand.js b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/resolveCommand.js
new file mode 100644
index 0000000..7972455
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/lib/util/resolveCommand.js
@@ -0,0 +1,52 @@
+'use strict';
+
+const path = require('path');
+const which = require('which');
+const getPathKey = require('path-key');
+
+function resolveCommandAttempt(parsed, withoutPathExt) {
+ const env = parsed.options.env || process.env;
+ const cwd = process.cwd();
+ const hasCustomCwd = parsed.options.cwd != null;
+ // Worker threads do not have process.chdir()
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
+
+ // If a custom `cwd` was specified, we need to change the process cwd
+ // because `which` will do stat calls but does not support a custom cwd
+ if (shouldSwitchCwd) {
+ try {
+ process.chdir(parsed.options.cwd);
+ } catch (err) {
+ /* Empty */
+ }
+ }
+
+ let resolved;
+
+ try {
+ resolved = which.sync(parsed.command, {
+ path: env[getPathKey({ env })],
+ pathExt: withoutPathExt ? path.delimiter : undefined,
+ });
+ } catch (e) {
+ /* Empty */
+ } finally {
+ if (shouldSwitchCwd) {
+ process.chdir(cwd);
+ }
+ }
+
+ // If we successfully resolved, ensure that an absolute path is returned
+ // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
+ if (resolved) {
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
+ }
+
+ return resolved;
+}
+
+function resolveCommand(parsed) {
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
+}
+
+module.exports = resolveCommand;
diff --git a/tests/wcag-compliance/node_modules/cross-spawn/package.json b/tests/wcag-compliance/node_modules/cross-spawn/package.json
new file mode 100644
index 0000000..232ff97
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/cross-spawn/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "cross-spawn",
+ "version": "7.0.3",
+ "description": "Cross platform child_process#spawn and child_process#spawnSync",
+ "keywords": [
+ "spawn",
+ "spawnSync",
+ "windows",
+ "cross-platform",
+ "path-ext",
+ "shebang",
+ "cmd",
+ "execute"
+ ],
+ "author": "André Cruz ",
+ "homepage": "https://github.com/moxystudio/node-cross-spawn",
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:moxystudio/node-cross-spawn.git"
+ },
+ "license": "MIT",
+ "main": "index.js",
+ "files": [
+ "lib"
+ ],
+ "scripts": {
+ "lint": "eslint .",
+ "test": "jest --env node --coverage",
+ "prerelease": "npm t && npm run lint",
+ "release": "standard-version",
+ "postrelease": "git push --follow-tags origin HEAD && npm publish"
+ },
+ "husky": {
+ "hooks": {
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
+ "pre-commit": "lint-staged"
+ }
+ },
+ "lint-staged": {
+ "*.js": [
+ "eslint --fix",
+ "git add"
+ ]
+ },
+ "commitlint": {
+ "extends": [
+ "@commitlint/config-conventional"
+ ]
+ },
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "devDependencies": {
+ "@commitlint/cli": "^8.1.0",
+ "@commitlint/config-conventional": "^8.1.0",
+ "babel-core": "^6.26.3",
+ "babel-jest": "^24.9.0",
+ "babel-preset-moxy": "^3.1.0",
+ "eslint": "^5.16.0",
+ "eslint-config-moxy": "^7.1.0",
+ "husky": "^3.0.5",
+ "jest": "^24.9.0",
+ "lint-staged": "^9.2.5",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^3.0.0",
+ "standard-version": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/execa/index.d.ts b/tests/wcag-compliance/node_modules/execa/index.d.ts
new file mode 100644
index 0000000..f9cf418
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/index.d.ts
@@ -0,0 +1,586 @@
+import {Buffer} from 'node:buffer';
+import {ChildProcess} from 'node:child_process';
+import {Stream, Readable as ReadableStream} from 'node:stream';
+
+export type StdioOption =
+ | 'pipe'
+ | 'ipc'
+ | 'ignore'
+ | 'inherit'
+ | Stream
+ | number
+ | undefined;
+
+export interface CommonOptions {
+ /**
+ Kill the spawned process when the parent process exits unless either:
+ - the spawned process is [`detached`](https://nodejs.org/api/child_process.html#child_process_options_detached)
+ - the parent process is terminated abruptly, for example, with `SIGKILL` as opposed to `SIGTERM` or a normal exit
+
+ @default true
+ */
+ readonly cleanup?: boolean;
+
+ /**
+ Prefer locally installed binaries when looking for a binary to execute.
+
+ If you `$ npm install foo`, you can then `execa('foo')`.
+
+ @default false
+ */
+ readonly preferLocal?: boolean;
+
+ /**
+ Preferred path to find locally installed binaries in (use with `preferLocal`).
+
+ Using a `URL` is only supported in Node.js `14.18.0`, `16.14.0` or above.
+
+ @default process.cwd()
+ */
+ readonly localDir?: string | URL;
+
+ /**
+ Path to the Node.js executable to use in child processes.
+
+ This can be either an absolute path or a path relative to the `cwd` option.
+
+ Requires `preferLocal` to be `true`.
+
+ For example, this can be used together with [`get-node`](https://github.com/ehmicky/get-node) to run a specific Node.js version in a child process.
+
+ @default process.execPath
+ */
+ readonly execPath?: string;
+
+ /**
+ Buffer the output from the spawned process. When set to `false`, you must read the output of `stdout` and `stderr` (or `all` if the `all` option is `true`). Otherwise the returned promise will not be resolved/rejected.
+
+ If the spawned process fails, `error.stdout`, `error.stderr`, and `error.all` will contain the buffered data.
+
+ @default true
+ */
+ readonly buffer?: boolean;
+
+ /**
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+ @default 'pipe'
+ */
+ readonly stdin?: StdioOption;
+
+ /**
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+ @default 'pipe'
+ */
+ readonly stdout?: StdioOption;
+
+ /**
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+ @default 'pipe'
+ */
+ readonly stderr?: StdioOption;
+
+ /**
+ Setting this to `false` resolves the promise with the error instead of rejecting it.
+
+ @default true
+ */
+ readonly reject?: boolean;
+
+ /**
+ Add an `.all` property on the promise and the resolved value. The property contains the output of the process with `stdout` and `stderr` interleaved.
+
+ @default false
+ */
+ readonly all?: boolean;
+
+ /**
+ Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from the output.
+
+ @default true
+ */
+ readonly stripFinalNewline?: boolean;
+
+ /**
+ Set to `false` if you don't want to extend the environment variables when providing the `env` property.
+
+ @default true
+ */
+ readonly extendEnv?: boolean;
+
+ /**
+ Current working directory of the child process.
+
+ Using a `URL` is only supported in Node.js `14.18.0`, `16.14.0` or above.
+
+ @default process.cwd()
+ */
+ readonly cwd?: string | URL;
+
+ /**
+ Environment key-value pairs. Extends automatically from `process.env`. Set `extendEnv` to `false` if you don't want this.
+
+ @default process.env
+ */
+ readonly env?: NodeJS.ProcessEnv;
+
+ /**
+ Explicitly set the value of `argv[0]` sent to the child process. This will be set to `command` or `file` if not specified.
+ */
+ readonly argv0?: string;
+
+ /**
+ Child's [stdio](https://nodejs.org/api/child_process.html#child_process_options_stdio) configuration.
+
+ @default 'pipe'
+ */
+ readonly stdio?: 'pipe' | 'ignore' | 'inherit' | readonly StdioOption[];
+
+ /**
+ Specify the kind of serialization used for sending messages between processes when using the `stdio: 'ipc'` option or `execaNode()`:
+ - `json`: Uses `JSON.stringify()` and `JSON.parse()`.
+ - `advanced`: Uses [`v8.serialize()`](https://nodejs.org/api/v8.html#v8_v8_serialize_value)
+
+ Requires Node.js `13.2.0` or later.
+
+ [More info.](https://nodejs.org/api/child_process.html#child_process_advanced_serialization)
+
+ @default 'json'
+ */
+ readonly serialization?: 'json' | 'advanced';
+
+ /**
+ Prepare child to run independently of its parent process. Specific behavior [depends on the platform](https://nodejs.org/api/child_process.html#child_process_options_detached).
+
+ @default false
+ */
+ readonly detached?: boolean;
+
+ /**
+ Sets the user identity of the process.
+ */
+ readonly uid?: number;
+
+ /**
+ Sets the group identity of the process.
+ */
+ readonly gid?: number;
+
+ /**
+ If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe` on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
+
+ We recommend against using this option since it is:
+ - not cross-platform, encouraging shell-specific syntax.
+ - slower, because of the additional shell interpretation.
+ - unsafe, potentially allowing command injection.
+
+ @default false
+ */
+ readonly shell?: boolean | string;
+
+ /**
+ Specify the character encoding used to decode the `stdout` and `stderr` output. If set to `null`, then `stdout` and `stderr` will be a `Buffer` instead of a string.
+
+ @default 'utf8'
+ */
+ readonly encoding?: EncodingType;
+
+ /**
+ If `timeout` is greater than `0`, the parent will send the signal identified by the `killSignal` property (the default is `SIGTERM`) if the child runs longer than `timeout` milliseconds.
+
+ @default 0
+ */
+ readonly timeout?: number;
+
+ /**
+ Largest amount of data in bytes allowed on `stdout` or `stderr`. Default: 100 MB.
+
+ @default 100_000_000
+ */
+ readonly maxBuffer?: number;
+
+ /**
+ Signal value to be used when the spawned process will be killed.
+
+ @default 'SIGTERM'
+ */
+ readonly killSignal?: string | number;
+
+ /**
+ You can abort the spawned process using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
+
+ When `AbortController.abort()` is called, [`.isCanceled`](https://github.com/sindresorhus/execa#iscanceled) becomes `false`.
+
+ *Requires Node.js 16 or later.*
+
+ @example
+ ```js
+ import {execa} from 'execa';
+
+ const abortController = new AbortController();
+ const subprocess = execa('node', [], {signal: abortController.signal});
+
+ setTimeout(() => {
+ abortController.abort();
+ }, 1000);
+
+ try {
+ await subprocess;
+ } catch (error) {
+ console.log(subprocess.killed); // true
+ console.log(error.isCanceled); // true
+ }
+ ```
+ */
+ readonly signal?: AbortSignal;
+
+ /**
+ If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`.
+
+ @default false
+ */
+ readonly windowsVerbatimArguments?: boolean;
+
+ /**
+ On Windows, do not create a new console window. Please note this also prevents `CTRL-C` [from working](https://github.com/nodejs/node/issues/29837) on Windows.
+
+ @default true
+ */
+ readonly windowsHide?: boolean;
+}
+
+export interface Options extends CommonOptions {
+ /**
+ Write some input to the `stdin` of your binary.
+ */
+ readonly input?: string | Buffer | ReadableStream;
+}
+
+export interface SyncOptions extends CommonOptions {
+ /**
+ Write some input to the `stdin` of your binary.
+ */
+ readonly input?: string | Buffer;
+}
+
+export interface NodeOptions extends Options {
+ /**
+ The Node.js executable to use.
+
+ @default process.execPath
+ */
+ readonly nodePath?: string;
+
+ /**
+ List of [CLI options](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.
+
+ @default process.execArgv
+ */
+ readonly nodeOptions?: string[];
+}
+
+export interface ExecaReturnBase {
+ /**
+ The file and arguments that were run, for logging purposes.
+
+ This is not escaped and should not be executed directly as a process, including using `execa()` or `execaCommand()`.
+ */
+ command: string;
+
+ /**
+ Same as `command` but escaped.
+
+ This is meant to be copy and pasted into a shell, for debugging purposes.
+ Since the escaping is fairly basic, this should not be executed directly as a process, including using `execa()` or `execaCommand()`.
+ */
+ escapedCommand: string;
+
+ /**
+ The numeric exit code of the process that was run.
+ */
+ exitCode: number;
+
+ /**
+ The output of the process on stdout.
+ */
+ stdout: StdoutStderrType;
+
+ /**
+ The output of the process on stderr.
+ */
+ stderr: StdoutStderrType;
+
+ /**
+ Whether the process failed to run.
+ */
+ failed: boolean;
+
+ /**
+ Whether the process timed out.
+ */
+ timedOut: boolean;
+
+ /**
+ Whether the process was killed.
+ */
+ killed: boolean;
+
+ /**
+ The name of the signal that was used to terminate the process. For example, `SIGFPE`.
+
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
+ */
+ signal?: string;
+
+ /**
+ A human-friendly description of the signal that was used to terminate the process. For example, `Floating point arithmetic error`.
+
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
+ */
+ signalDescription?: string;
+}
+
+export interface ExecaSyncReturnValue
+ extends ExecaReturnBase {
+}
+
+/**
+Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.
+
+The child process fails when:
+- its exit code is not `0`
+- it was killed with a signal
+- timing out
+- being canceled
+- there's not enough memory or there are already too many child processes
+*/
+export interface ExecaReturnValue
+ extends ExecaSyncReturnValue {
+ /**
+ The output of the process with `stdout` and `stderr` interleaved.
+
+ This is `undefined` if either:
+ - the `all` option is `false` (default value)
+ - `execaSync()` was used
+ */
+ all?: StdoutErrorType;
+
+ /**
+ Whether the process was canceled.
+
+ You can cancel the spawned process using the [`signal`](https://github.com/sindresorhus/execa#signal-1) option.
+ */
+ isCanceled: boolean;
+}
+
+export interface ExecaSyncError
+ extends Error,
+ ExecaReturnBase {
+ /**
+ Error message when the child process failed to run. In addition to the underlying error message, it also contains some information related to why the child process errored.
+
+ The child process stderr then stdout are appended to the end, separated with newlines and not interleaved.
+ */
+ message: string;
+
+ /**
+ This is the same as the `message` property except it does not include the child process stdout/stderr.
+ */
+ shortMessage: string;
+
+ /**
+ Original error message. This is the same as the `message` property except it includes neither the child process stdout/stderr nor some additional information added by Execa.
+
+ This is `undefined` unless the child process exited due to an `error` event or a timeout.
+ */
+ originalMessage?: string;
+}
+
+export interface ExecaError
+ extends ExecaSyncError {
+ /**
+ The output of the process with `stdout` and `stderr` interleaved.
+
+ This is `undefined` if either:
+ - the `all` option is `false` (default value)
+ - `execaSync()` was used
+ */
+ all?: StdoutErrorType;
+
+ /**
+ Whether the process was canceled.
+ */
+ isCanceled: boolean;
+}
+
+export interface KillOptions {
+ /**
+ Milliseconds to wait for the child process to terminate before sending `SIGKILL`.
+
+ Can be disabled with `false`.
+
+ @default 5000
+ */
+ forceKillAfterTimeout?: number | false;
+}
+
+export interface ExecaChildPromise {
+ /**
+ Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).
+
+ This is `undefined` if either:
+ - the `all` option is `false` (the default value)
+ - both `stdout` and `stderr` options are set to [`'inherit'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio)
+ */
+ all?: ReadableStream;
+
+ catch(
+ onRejected?: (reason: ExecaError) => ResultType | PromiseLike
+ ): Promise | ResultType>;
+
+ /**
+ Same as the original [`child_process#kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal), except if `signal` is `SIGTERM` (the default value) and the child process is not terminated after 5 seconds, force it by sending `SIGKILL`.
+ */
+ kill(signal?: string, options?: KillOptions): void;
+
+ /**
+ Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This is preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`.
+ */
+ cancel(): void;
+}
+
+export type ExecaChildProcess = ChildProcess &
+ExecaChildPromise &
+Promise>;
+
+/**
+Execute a file.
+
+Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
+
+@param file - The program/script to execute.
+@param arguments - Arguments to pass to `file` on execution.
+@returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
+
+@example
+```
+import {execa} from 'execa';
+
+const {stdout} = await execa('echo', ['unicorns']);
+console.log(stdout);
+//=> 'unicorns'
+
+// Cancelling a spawned process
+
+const subprocess = execa('node');
+
+setTimeout(() => {
+ subprocess.cancel()
+}, 1000);
+
+try {
+ await subprocess;
+} catch (error) {
+ console.log(subprocess.killed); // true
+ console.log(error.isCanceled); // true
+}
+
+// Pipe the child process stdout to the current stdout
+execa('echo', ['unicorns']).stdout.pipe(process.stdout);
+```
+*/
+export function execa(
+ file: string,
+ arguments?: readonly string[],
+ options?: Options
+): ExecaChildProcess;
+export function execa(
+ file: string,
+ arguments?: readonly string[],
+ options?: Options
+): ExecaChildProcess;
+export function execa(file: string, options?: Options): ExecaChildProcess;
+export function execa(file: string, options?: Options): ExecaChildProcess;
+
+/**
+Execute a file synchronously.
+
+This method throws an `Error` if the command fails.
+
+@param file - The program/script to execute.
+@param arguments - Arguments to pass to `file` on execution.
+@returns A result `Object` with `stdout` and `stderr` properties.
+*/
+export function execaSync(
+ file: string,
+ arguments?: readonly string[],
+ options?: SyncOptions
+): ExecaSyncReturnValue;
+export function execaSync(
+ file: string,
+ arguments?: readonly string[],
+ options?: SyncOptions
+): ExecaSyncReturnValue;
+export function execaSync(file: string, options?: SyncOptions): ExecaSyncReturnValue;
+export function execaSync(
+ file: string,
+ options?: SyncOptions
+): ExecaSyncReturnValue;
+
+/**
+Same as `execa()` except both file and arguments are specified in a single `command` string. For example, `execa('echo', ['unicorns'])` is the same as `execaCommand('echo unicorns')`.
+
+If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed.
+
+The `shell` option must be used if the `command` uses shell-specific features (for example, `&&` or `||`), as opposed to being a simple `file` followed by its `arguments`.
+
+@param command - The program/script to execute and its arguments.
+@returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
+
+@example
+```
+import {execaCommand} from 'execa';
+
+const {stdout} = await execaCommand('echo unicorns');
+console.log(stdout);
+//=> 'unicorns'
+```
+*/
+export function execaCommand(command: string, options?: Options): ExecaChildProcess;
+export function execaCommand(command: string, options?: Options): ExecaChildProcess;
+
+/**
+Same as `execaCommand()` but synchronous.
+
+@param command - The program/script to execute and its arguments.
+@returns A result `Object` with `stdout` and `stderr` properties.
+*/
+export function execaCommandSync(command: string, options?: SyncOptions): ExecaSyncReturnValue;
+export function execaCommandSync(command: string, options?: SyncOptions): ExecaSyncReturnValue;
+
+/**
+Execute a Node.js script as a child process.
+
+Same as `execa('node', [scriptPath, ...arguments], options)` except (like [`child_process#fork()`](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options)):
+ - the current Node version and options are used. This can be overridden using the `nodePath` and `nodeArguments` options.
+ - the `shell` option cannot be used
+ - an extra channel [`ipc`](https://nodejs.org/api/child_process.html#child_process_options_stdio) is passed to [`stdio`](#stdio)
+
+@param scriptPath - Node.js script to execute.
+@param arguments - Arguments to pass to `scriptPath` on execution.
+@returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
+*/
+export function execaNode(
+ scriptPath: string,
+ arguments?: readonly string[],
+ options?: NodeOptions
+): ExecaChildProcess;
+export function execaNode(
+ scriptPath: string,
+ arguments?: readonly string[],
+ options?: Options
+): ExecaChildProcess;
+export function execaNode(scriptPath: string, options?: Options): ExecaChildProcess;
+export function execaNode(scriptPath: string, options?: Options): ExecaChildProcess;
diff --git a/tests/wcag-compliance/node_modules/execa/index.js b/tests/wcag-compliance/node_modules/execa/index.js
new file mode 100644
index 0000000..f060590
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/index.js
@@ -0,0 +1,267 @@
+import {Buffer} from 'node:buffer';
+import path from 'node:path';
+import childProcess from 'node:child_process';
+import process from 'node:process';
+import crossSpawn from 'cross-spawn';
+import stripFinalNewline from 'strip-final-newline';
+import {npmRunPathEnv} from 'npm-run-path';
+import onetime from 'onetime';
+import {makeError} from './lib/error.js';
+import {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';
+import {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';
+import {handleInput, getSpawnedResult, makeAllStream, validateInputSync} from './lib/stream.js';
+import {mergePromise, getSpawnedPromise} from './lib/promise.js';
+import {joinCommand, parseCommand, getEscapedCommand} from './lib/command.js';
+
+const DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;
+
+const getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {
+ const env = extendEnv ? {...process.env, ...envOption} : envOption;
+
+ if (preferLocal) {
+ return npmRunPathEnv({env, cwd: localDir, execPath});
+ }
+
+ return env;
+};
+
+const handleArguments = (file, args, options = {}) => {
+ const parsed = crossSpawn._parse(file, args, options);
+ file = parsed.command;
+ args = parsed.args;
+ options = parsed.options;
+
+ options = {
+ maxBuffer: DEFAULT_MAX_BUFFER,
+ buffer: true,
+ stripFinalNewline: true,
+ extendEnv: true,
+ preferLocal: false,
+ localDir: options.cwd || process.cwd(),
+ execPath: process.execPath,
+ encoding: 'utf8',
+ reject: true,
+ cleanup: true,
+ all: false,
+ windowsHide: true,
+ ...options,
+ };
+
+ options.env = getEnv(options);
+
+ options.stdio = normalizeStdio(options);
+
+ if (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {
+ // #116
+ args.unshift('/q');
+ }
+
+ return {file, args, options, parsed};
+};
+
+const handleOutput = (options, value, error) => {
+ if (typeof value !== 'string' && !Buffer.isBuffer(value)) {
+ // When `execaSync()` errors, we normalize it to '' to mimic `execa()`
+ return error === undefined ? undefined : '';
+ }
+
+ if (options.stripFinalNewline) {
+ return stripFinalNewline(value);
+ }
+
+ return value;
+};
+
+export function execa(file, args, options) {
+ const parsed = handleArguments(file, args, options);
+ const command = joinCommand(file, args);
+ const escapedCommand = getEscapedCommand(file, args);
+
+ validateTimeout(parsed.options);
+
+ let spawned;
+ try {
+ spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
+ } catch (error) {
+ // Ensure the returned error is always both a promise and a child process
+ const dummySpawned = new childProcess.ChildProcess();
+ const errorPromise = Promise.reject(makeError({
+ error,
+ stdout: '',
+ stderr: '',
+ all: '',
+ command,
+ escapedCommand,
+ parsed,
+ timedOut: false,
+ isCanceled: false,
+ killed: false,
+ }));
+ return mergePromise(dummySpawned, errorPromise);
+ }
+
+ const spawnedPromise = getSpawnedPromise(spawned);
+ const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
+ const processDone = setExitHandler(spawned, parsed.options, timedPromise);
+
+ const context = {isCanceled: false};
+
+ spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
+ spawned.cancel = spawnedCancel.bind(null, spawned, context);
+
+ const handlePromise = async () => {
+ const [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
+ const stdout = handleOutput(parsed.options, stdoutResult);
+ const stderr = handleOutput(parsed.options, stderrResult);
+ const all = handleOutput(parsed.options, allResult);
+
+ if (error || exitCode !== 0 || signal !== null) {
+ const returnedError = makeError({
+ error,
+ exitCode,
+ signal,
+ stdout,
+ stderr,
+ all,
+ command,
+ escapedCommand,
+ parsed,
+ timedOut,
+ isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
+ killed: spawned.killed,
+ });
+
+ if (!parsed.options.reject) {
+ return returnedError;
+ }
+
+ throw returnedError;
+ }
+
+ return {
+ command,
+ escapedCommand,
+ exitCode: 0,
+ stdout,
+ stderr,
+ all,
+ failed: false,
+ timedOut: false,
+ isCanceled: false,
+ killed: false,
+ };
+ };
+
+ const handlePromiseOnce = onetime(handlePromise);
+
+ handleInput(spawned, parsed.options.input);
+
+ spawned.all = makeAllStream(spawned, parsed.options);
+
+ return mergePromise(spawned, handlePromiseOnce);
+}
+
+export function execaSync(file, args, options) {
+ const parsed = handleArguments(file, args, options);
+ const command = joinCommand(file, args);
+ const escapedCommand = getEscapedCommand(file, args);
+
+ validateInputSync(parsed.options);
+
+ let result;
+ try {
+ result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
+ } catch (error) {
+ throw makeError({
+ error,
+ stdout: '',
+ stderr: '',
+ all: '',
+ command,
+ escapedCommand,
+ parsed,
+ timedOut: false,
+ isCanceled: false,
+ killed: false,
+ });
+ }
+
+ const stdout = handleOutput(parsed.options, result.stdout, result.error);
+ const stderr = handleOutput(parsed.options, result.stderr, result.error);
+
+ if (result.error || result.status !== 0 || result.signal !== null) {
+ const error = makeError({
+ stdout,
+ stderr,
+ error: result.error,
+ signal: result.signal,
+ exitCode: result.status,
+ command,
+ escapedCommand,
+ parsed,
+ timedOut: result.error && result.error.code === 'ETIMEDOUT',
+ isCanceled: false,
+ killed: result.signal !== null,
+ });
+
+ if (!parsed.options.reject) {
+ return error;
+ }
+
+ throw error;
+ }
+
+ return {
+ command,
+ escapedCommand,
+ exitCode: 0,
+ stdout,
+ stderr,
+ failed: false,
+ timedOut: false,
+ isCanceled: false,
+ killed: false,
+ };
+}
+
+export function execaCommand(command, options) {
+ const [file, ...args] = parseCommand(command);
+ return execa(file, args, options);
+}
+
+export function execaCommandSync(command, options) {
+ const [file, ...args] = parseCommand(command);
+ return execaSync(file, args, options);
+}
+
+export function execaNode(scriptPath, args, options = {}) {
+ if (args && !Array.isArray(args) && typeof args === 'object') {
+ options = args;
+ args = [];
+ }
+
+ const stdio = normalizeStdioNode(options);
+ const defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));
+
+ const {
+ nodePath = process.execPath,
+ nodeOptions = defaultExecArgv,
+ } = options;
+
+ return execa(
+ nodePath,
+ [
+ ...nodeOptions,
+ scriptPath,
+ ...(Array.isArray(args) ? args : []),
+ ],
+ {
+ ...options,
+ stdin: undefined,
+ stdout: undefined,
+ stderr: undefined,
+ stdio,
+ shell: false,
+ },
+ );
+}
diff --git a/tests/wcag-compliance/node_modules/execa/lib/command.js b/tests/wcag-compliance/node_modules/execa/lib/command.js
new file mode 100644
index 0000000..be64255
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/command.js
@@ -0,0 +1,41 @@
+const normalizeArgs = (file, args = []) => {
+ if (!Array.isArray(args)) {
+ return [file];
+ }
+
+ return [file, ...args];
+};
+
+const NO_ESCAPE_REGEXP = /^[\w.-]+$/;
+const DOUBLE_QUOTES_REGEXP = /"/g;
+
+const escapeArg = arg => {
+ if (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {
+ return arg;
+ }
+
+ return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
+};
+
+export const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');
+
+export const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');
+
+const SPACES_REGEXP = / +/g;
+
+// Handle `execaCommand()`
+export const parseCommand = command => {
+ const tokens = [];
+ for (const token of command.trim().split(SPACES_REGEXP)) {
+ // Allow spaces to be escaped by a backslash if not meant as a delimiter
+ const previousToken = tokens[tokens.length - 1];
+ if (previousToken && previousToken.endsWith('\\')) {
+ // Merge previous token with current one
+ tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
+ } else {
+ tokens.push(token);
+ }
+ }
+
+ return tokens;
+};
diff --git a/tests/wcag-compliance/node_modules/execa/lib/error.js b/tests/wcag-compliance/node_modules/execa/lib/error.js
new file mode 100644
index 0000000..b12c144
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/error.js
@@ -0,0 +1,85 @@
+import {signalsByName} from 'human-signals';
+
+const getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {
+ if (timedOut) {
+ return `timed out after ${timeout} milliseconds`;
+ }
+
+ if (isCanceled) {
+ return 'was canceled';
+ }
+
+ if (errorCode !== undefined) {
+ return `failed with ${errorCode}`;
+ }
+
+ if (signal !== undefined) {
+ return `was killed with ${signal} (${signalDescription})`;
+ }
+
+ if (exitCode !== undefined) {
+ return `failed with exit code ${exitCode}`;
+ }
+
+ return 'failed';
+};
+
+export const makeError = ({
+ stdout,
+ stderr,
+ all,
+ error,
+ signal,
+ exitCode,
+ command,
+ escapedCommand,
+ timedOut,
+ isCanceled,
+ killed,
+ parsed: {options: {timeout}},
+}) => {
+ // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.
+ // We normalize them to `undefined`
+ exitCode = exitCode === null ? undefined : exitCode;
+ signal = signal === null ? undefined : signal;
+ const signalDescription = signal === undefined ? undefined : signalsByName[signal].description;
+
+ const errorCode = error && error.code;
+
+ const prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});
+ const execaMessage = `Command ${prefix}: ${command}`;
+ const isError = Object.prototype.toString.call(error) === '[object Error]';
+ const shortMessage = isError ? `${execaMessage}\n${error.message}` : execaMessage;
+ const message = [shortMessage, stderr, stdout].filter(Boolean).join('\n');
+
+ if (isError) {
+ error.originalMessage = error.message;
+ error.message = message;
+ } else {
+ error = new Error(message);
+ }
+
+ error.shortMessage = shortMessage;
+ error.command = command;
+ error.escapedCommand = escapedCommand;
+ error.exitCode = exitCode;
+ error.signal = signal;
+ error.signalDescription = signalDescription;
+ error.stdout = stdout;
+ error.stderr = stderr;
+
+ if (all !== undefined) {
+ error.all = all;
+ }
+
+ if ('bufferedData' in error) {
+ delete error.bufferedData;
+ }
+
+ error.failed = true;
+ error.timedOut = Boolean(timedOut);
+ error.isCanceled = isCanceled;
+ error.killed = killed && !timedOut;
+
+ return error;
+};
diff --git a/tests/wcag-compliance/node_modules/execa/lib/kill.js b/tests/wcag-compliance/node_modules/execa/lib/kill.js
new file mode 100644
index 0000000..efc6b9b
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/kill.js
@@ -0,0 +1,102 @@
+import os from 'node:os';
+import onExit from 'signal-exit';
+
+const DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;
+
+// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior
+export const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {
+ const killResult = kill(signal);
+ setKillTimeout(kill, signal, options, killResult);
+ return killResult;
+};
+
+const setKillTimeout = (kill, signal, options, killResult) => {
+ if (!shouldForceKill(signal, options, killResult)) {
+ return;
+ }
+
+ const timeout = getForceKillAfterTimeout(options);
+ const t = setTimeout(() => {
+ kill('SIGKILL');
+ }, timeout);
+
+ // Guarded because there's no `.unref()` when `execa` is used in the renderer
+ // process in Electron. This cannot be tested since we don't run tests in
+ // Electron.
+ // istanbul ignore else
+ if (t.unref) {
+ t.unref();
+ }
+};
+
+const shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
+
+const isSigterm = signal => signal === os.constants.signals.SIGTERM
+ || (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');
+
+const getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {
+ if (forceKillAfterTimeout === true) {
+ return DEFAULT_FORCE_KILL_TIMEOUT;
+ }
+
+ if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
+ throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
+ }
+
+ return forceKillAfterTimeout;
+};
+
+// `childProcess.cancel()`
+export const spawnedCancel = (spawned, context) => {
+ const killResult = spawned.kill();
+
+ if (killResult) {
+ context.isCanceled = true;
+ }
+};
+
+const timeoutKill = (spawned, signal, reject) => {
+ spawned.kill(signal);
+ reject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));
+};
+
+// `timeout` option handling
+export const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {
+ if (timeout === 0 || timeout === undefined) {
+ return spawnedPromise;
+ }
+
+ let timeoutId;
+ const timeoutPromise = new Promise((resolve, reject) => {
+ timeoutId = setTimeout(() => {
+ timeoutKill(spawned, killSignal, reject);
+ }, timeout);
+ });
+
+ const safeSpawnedPromise = spawnedPromise.finally(() => {
+ clearTimeout(timeoutId);
+ });
+
+ return Promise.race([timeoutPromise, safeSpawnedPromise]);
+};
+
+export const validateTimeout = ({timeout}) => {
+ if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {
+ throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
+ }
+};
+
+// `cleanup` option handling
+export const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {
+ if (!cleanup || detached) {
+ return timedPromise;
+ }
+
+ const removeExitHandler = onExit(() => {
+ spawned.kill();
+ });
+
+ return timedPromise.finally(() => {
+ removeExitHandler();
+ });
+};
diff --git a/tests/wcag-compliance/node_modules/execa/lib/promise.js b/tests/wcag-compliance/node_modules/execa/lib/promise.js
new file mode 100644
index 0000000..c655c0e
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/promise.js
@@ -0,0 +1,36 @@
+const nativePromisePrototype = (async () => {})().constructor.prototype;
+const descriptors = ['then', 'catch', 'finally'].map(property => [
+ property,
+ Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property),
+]);
+
+// The return value is a mixin of `childProcess` and `Promise`
+export const mergePromise = (spawned, promise) => {
+ for (const [property, descriptor] of descriptors) {
+ // Starting the main `promise` is deferred to avoid consuming streams
+ const value = typeof promise === 'function'
+ ? (...args) => Reflect.apply(descriptor.value, promise(), args)
+ : descriptor.value.bind(promise);
+
+ Reflect.defineProperty(spawned, property, {...descriptor, value});
+ }
+
+ return spawned;
+};
+
+// Use promises instead of `child_process` events
+export const getSpawnedPromise = spawned => new Promise((resolve, reject) => {
+ spawned.on('exit', (exitCode, signal) => {
+ resolve({exitCode, signal});
+ });
+
+ spawned.on('error', error => {
+ reject(error);
+ });
+
+ if (spawned.stdin) {
+ spawned.stdin.on('error', error => {
+ reject(error);
+ });
+ }
+});
diff --git a/tests/wcag-compliance/node_modules/execa/lib/stdio.js b/tests/wcag-compliance/node_modules/execa/lib/stdio.js
new file mode 100644
index 0000000..e8c1132
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/stdio.js
@@ -0,0 +1,49 @@
+const aliases = ['stdin', 'stdout', 'stderr'];
+
+const hasAlias = options => aliases.some(alias => options[alias] !== undefined);
+
+export const normalizeStdio = options => {
+ if (!options) {
+ return;
+ }
+
+ const {stdio} = options;
+
+ if (stdio === undefined) {
+ return aliases.map(alias => options[alias]);
+ }
+
+ if (hasAlias(options)) {
+ throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias => `\`${alias}\``).join(', ')}`);
+ }
+
+ if (typeof stdio === 'string') {
+ return stdio;
+ }
+
+ if (!Array.isArray(stdio)) {
+ throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
+ }
+
+ const length = Math.max(stdio.length, aliases.length);
+ return Array.from({length}, (value, index) => stdio[index]);
+};
+
+// `ipc` is pushed unless it is already present
+export const normalizeStdioNode = options => {
+ const stdio = normalizeStdio(options);
+
+ if (stdio === 'ipc') {
+ return 'ipc';
+ }
+
+ if (stdio === undefined || typeof stdio === 'string') {
+ return [stdio, stdio, stdio, 'ipc'];
+ }
+
+ if (stdio.includes('ipc')) {
+ return stdio;
+ }
+
+ return [...stdio, 'ipc'];
+};
diff --git a/tests/wcag-compliance/node_modules/execa/lib/stream.js b/tests/wcag-compliance/node_modules/execa/lib/stream.js
new file mode 100644
index 0000000..b140bf1
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/lib/stream.js
@@ -0,0 +1,88 @@
+import {isStream} from 'is-stream';
+import getStream from 'get-stream';
+import mergeStream from 'merge-stream';
+
+// `input` option
+export const handleInput = (spawned, input) => {
+ // Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852
+ // @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0
+ if (input === undefined || spawned.stdin === undefined) {
+ return;
+ }
+
+ if (isStream(input)) {
+ input.pipe(spawned.stdin);
+ } else {
+ spawned.stdin.end(input);
+ }
+};
+
+// `all` interleaves `stdout` and `stderr`
+export const makeAllStream = (spawned, {all}) => {
+ if (!all || (!spawned.stdout && !spawned.stderr)) {
+ return;
+ }
+
+ const mixed = mergeStream();
+
+ if (spawned.stdout) {
+ mixed.add(spawned.stdout);
+ }
+
+ if (spawned.stderr) {
+ mixed.add(spawned.stderr);
+ }
+
+ return mixed;
+};
+
+// On failure, `result.stdout|stderr|all` should contain the currently buffered stream
+const getBufferedData = async (stream, streamPromise) => {
+ if (!stream) {
+ return;
+ }
+
+ stream.destroy();
+
+ try {
+ return await streamPromise;
+ } catch (error) {
+ return error.bufferedData;
+ }
+};
+
+const getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {
+ if (!stream || !buffer) {
+ return;
+ }
+
+ if (encoding) {
+ return getStream(stream, {encoding, maxBuffer});
+ }
+
+ return getStream.buffer(stream, {maxBuffer});
+};
+
+// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)
+export const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {
+ const stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});
+ const stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});
+ const allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});
+
+ try {
+ return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
+ } catch (error) {
+ return Promise.all([
+ {error, signal: error.signal, timedOut: error.timedOut},
+ getBufferedData(stdout, stdoutPromise),
+ getBufferedData(stderr, stderrPromise),
+ getBufferedData(all, allPromise),
+ ]);
+ }
+};
+
+export const validateInputSync = ({input}) => {
+ if (isStream(input)) {
+ throw new TypeError('The `input` option cannot be a stream in sync mode');
+ }
+};
diff --git a/tests/wcag-compliance/node_modules/execa/license b/tests/wcag-compliance/node_modules/execa/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/execa/package.json b/tests/wcag-compliance/node_modules/execa/package.json
new file mode 100644
index 0000000..90bd07b
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/package.json
@@ -0,0 +1,83 @@
+{
+ "name": "execa",
+ "version": "6.1.0",
+ "description": "Process execution for humans",
+ "license": "MIT",
+ "repository": "sindresorhus/execa",
+ "funding": "https://github.com/sindresorhus/execa?sponsor=1",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": "./index.js",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "scripts": {
+ "test": "xo && c8 ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts",
+ "lib"
+ ],
+ "keywords": [
+ "exec",
+ "child",
+ "process",
+ "execute",
+ "fork",
+ "execfile",
+ "spawn",
+ "file",
+ "shell",
+ "bin",
+ "binary",
+ "binaries",
+ "npm",
+ "path",
+ "local"
+ ],
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.1",
+ "human-signals": "^3.0.1",
+ "is-stream": "^3.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^5.1.0",
+ "onetime": "^6.0.0",
+ "signal-exit": "^3.0.7",
+ "strip-final-newline": "^3.0.0"
+ },
+ "devDependencies": {
+ "@types/node": "^17.0.17",
+ "ava": "^4.0.1",
+ "c8": "^7.11.0",
+ "get-node": "^12.0.0",
+ "is-running": "^2.1.0",
+ "p-event": "^5.0.1",
+ "semver": "^7.3.5",
+ "tempfile": "^4.0.0",
+ "tsd": "^0.19.1",
+ "xo": "^0.48.0"
+ },
+ "c8": {
+ "reporter": [
+ "text",
+ "lcov"
+ ],
+ "exclude": [
+ "**/fixtures/**",
+ "**/test.js",
+ "**/test/**"
+ ]
+ },
+ "xo": {
+ "rules": {
+ "unicorn/no-empty-file": "off",
+ "@typescript-eslint/ban-types": "off"
+ }
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/execa/readme.md b/tests/wcag-compliance/node_modules/execa/readme.md
new file mode 100644
index 0000000..a529f39
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/execa/readme.md
@@ -0,0 +1,667 @@
+
+
+
+[![Coverage Status](https://codecov.io/gh/sindresorhus/execa/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/execa)
+
+> Process execution for humans
+
+## Why
+
+This package improves [`child_process`](https://nodejs.org/api/child_process.html) methods with:
+
+- Promise interface.
+- [Strips the final newline](#stripfinalnewline) from the output so you don't have to do `stdout.trim()`.
+- Supports [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) binaries cross-platform.
+- [Improved Windows support.](https://github.com/IndigoUnited/node-cross-spawn#why)
+- Higher max buffer. 100 MB instead of 200 KB.
+- [Executes locally installed binaries by name.](#preferlocal)
+- [Cleans up spawned processes when the parent process dies.](#cleanup)
+- [Get interleaved output](#all) from `stdout` and `stderr` similar to what is printed on the terminal. [*(Async only)*](#execasyncfile-arguments-options)
+- [Can specify file and arguments as a single string without a shell](#execacommandcommand-options)
+- More descriptive errors.
+
+## Install
+
+```sh
+npm install execa
+```
+
+## Usage
+
+```js
+import {execa} from 'execa';
+
+const {stdout} = await execa('echo', ['unicorns']);
+console.log(stdout);
+//=> 'unicorns'
+```
+
+### Pipe the child process stdout to the parent
+
+```js
+import {execa} from 'execa';
+
+execa('echo', ['unicorns']).stdout.pipe(process.stdout);
+```
+
+### Handling Errors
+
+```js
+import {execa} from 'execa';
+
+// Catching an error
+try {
+ await execa('unknown', ['command']);
+} catch (error) {
+ console.log(error);
+ /*
+ {
+ message: 'Command failed with ENOENT: unknown command spawn unknown ENOENT',
+ errno: -2,
+ code: 'ENOENT',
+ syscall: 'spawn unknown',
+ path: 'unknown',
+ spawnargs: ['command'],
+ originalMessage: 'spawn unknown ENOENT',
+ shortMessage: 'Command failed with ENOENT: unknown command spawn unknown ENOENT',
+ command: 'unknown command',
+ escapedCommand: 'unknown command',
+ stdout: '',
+ stderr: '',
+ all: '',
+ failed: true,
+ timedOut: false,
+ isCanceled: false,
+ killed: false
+ }
+ */
+}
+```
+
+### Cancelling a spawned process
+
+```js
+import {execa} from 'execa';
+
+const abortController = new AbortController();
+const subprocess = execa('node', [], {signal: abortController.signal});
+
+setTimeout(() => {
+ abortController.abort();
+}, 1000);
+
+try {
+ await subprocess;
+} catch (error) {
+ console.log(subprocess.killed); // true
+ console.log(error.isCanceled); // true
+}
+```
+
+### Catching an error with the sync method
+
+```js
+import {execaSync} from 'execa';
+
+try {
+ execaSync('unknown', ['command']);
+} catch (error) {
+ console.log(error);
+ /*
+ {
+ message: 'Command failed with ENOENT: unknown command spawnSync unknown ENOENT',
+ errno: -2,
+ code: 'ENOENT',
+ syscall: 'spawnSync unknown',
+ path: 'unknown',
+ spawnargs: ['command'],
+ originalMessage: 'spawnSync unknown ENOENT',
+ shortMessage: 'Command failed with ENOENT: unknown command spawnSync unknown ENOENT',
+ command: 'unknown command',
+ escapedCommand: 'unknown command',
+ stdout: '',
+ stderr: '',
+ all: '',
+ failed: true,
+ timedOut: false,
+ isCanceled: false,
+ killed: false
+ }
+ */
+}
+```
+
+### Kill a process
+
+Using SIGTERM, and after 2 seconds, kill it with SIGKILL.
+
+```js
+const subprocess = execa('node');
+
+setTimeout(() => {
+ subprocess.kill('SIGTERM', {
+ forceKillAfterTimeout: 2000
+ });
+}, 1000);
+```
+
+## API
+
+### execa(file, arguments, options?)
+
+Execute a file. Think of this as a mix of [`child_process.execFile()`](https://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback) and [`child_process.spawn()`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).
+
+No escaping/quoting is needed.
+
+Unless the [`shell`](#shell) option is used, no shell interpreter (Bash, `cmd.exe`, etc.) is used, so shell features such as variables substitution (`echo $PATH`) are not allowed.
+
+Returns a [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess) which:
+ - is also a `Promise` resolving or rejecting with a [`childProcessResult`](#childProcessResult).
+ - exposes the following additional methods and properties.
+
+#### kill(signal?, options?)
+
+Same as the original [`child_process#kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal) except: if `signal` is `SIGTERM` (the default value) and the child process is not terminated after 5 seconds, force it by sending `SIGKILL`.
+
+##### options.forceKillAfterTimeout
+
+Type: `number | false`\
+Default: `5000`
+
+Milliseconds to wait for the child process to terminate before sending `SIGKILL`.
+
+Can be disabled with `false`.
+
+#### all
+
+Type: `ReadableStream | undefined`
+
+Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).
+
+This is `undefined` if either:
+ - the [`all` option](#all-2) is `false` (the default value)
+ - both [`stdout`](#stdout-1) and [`stderr`](#stderr-1) options are set to [`'inherit'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio)
+
+### execaSync(file, arguments?, options?)
+
+Execute a file synchronously.
+
+Returns or throws a [`childProcessResult`](#childProcessResult).
+
+### execaCommand(command, options?)
+
+Same as [`execa()`](#execafile-arguments-options) except both file and arguments are specified in a single `command` string. For example, `execa('echo', ['unicorns'])` is the same as `execaCommand('echo unicorns')`.
+
+If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed.
+
+The [`shell` option](#shell) must be used if the `command` uses shell-specific features (for example, `&&` or `||`), as opposed to being a simple `file` followed by its `arguments`.
+
+### execaCommandSync(command, options?)
+
+Same as [`execaCommand()`](#execacommand-command-options) but synchronous.
+
+Returns or throws a [`childProcessResult`](#childProcessResult).
+
+### execaNode(scriptPath, arguments?, options?)
+
+Execute a Node.js script as a child process.
+
+Same as `execa('node', [scriptPath, ...arguments], options)` except (like [`child_process#fork()`](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options)):
+ - the current Node version and options are used. This can be overridden using the [`nodePath`](#nodepath-for-node-only) and [`nodeOptions`](#nodeoptions-for-node-only) options.
+ - the [`shell`](#shell) option cannot be used
+ - an extra channel [`ipc`](https://nodejs.org/api/child_process.html#child_process_options_stdio) is passed to [`stdio`](#stdio)
+
+### childProcessResult
+
+Type: `object`
+
+Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.
+
+The child process [fails](#failed) when:
+- its [exit code](#exitcode) is not `0`
+- it was [killed](#killed) with a [signal](#signal)
+- [timing out](#timedout)
+- [being canceled](#iscanceled)
+- there's not enough memory or there are already too many child processes
+
+#### command
+
+Type: `string`
+
+The file and arguments that were run, for logging purposes.
+
+This is not escaped and should not be executed directly as a process, including using [`execa()`](#execafile-arguments-options) or [`execaCommand()`](#execacommandcommand-options).
+
+#### escapedCommand
+
+Type: `string`
+
+Same as [`command`](#command) but escaped.
+
+This is meant to be copy and pasted into a shell, for debugging purposes.
+Since the escaping is fairly basic, this should not be executed directly as a process, including using [`execa()`](#execafile-arguments-options) or [`execaCommand()`](#execacommandcommand-options).
+
+#### exitCode
+
+Type: `number`
+
+The numeric exit code of the process that was run.
+
+#### stdout
+
+Type: `string | Buffer`
+
+The output of the process on stdout.
+
+#### stderr
+
+Type: `string | Buffer`
+
+The output of the process on stderr.
+
+#### all
+
+Type: `string | Buffer | undefined`
+
+The output of the process with `stdout` and `stderr` interleaved.
+
+This is `undefined` if either:
+ - the [`all` option](#all-2) is `false` (the default value)
+ - `execaSync()` was used
+
+#### failed
+
+Type: `boolean`
+
+Whether the process failed to run.
+
+#### timedOut
+
+Type: `boolean`
+
+Whether the process timed out.
+
+#### isCanceled
+
+Type: `boolean`
+
+Whether the process was canceled.
+
+You can cancel the spawned process using the [`signal`](#signal-1) option.
+
+#### killed
+
+Type: `boolean`
+
+Whether the process was killed.
+
+#### signal
+
+Type: `string | undefined`
+
+The name of the signal that was used to terminate the process. For example, `SIGFPE`.
+
+If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
+
+#### signalDescription
+
+Type: `string | undefined`
+
+A human-friendly description of the signal that was used to terminate the process. For example, `Floating point arithmetic error`.
+
+If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
+
+#### message
+
+Type: `string`
+
+Error message when the child process failed to run. In addition to the [underlying error message](#originalMessage), it also contains some information related to why the child process errored.
+
+The child process [stderr](#stderr) then [stdout](#stdout) are appended to the end, separated with newlines and not interleaved.
+
+#### shortMessage
+
+Type: `string`
+
+This is the same as the [`message` property](#message) except it does not include the child process stdout/stderr.
+
+#### originalMessage
+
+Type: `string | undefined`
+
+Original error message. This is the same as the `message` property except it includes neither the child process stdout/stderr nor some additional information added by Execa.
+
+This is `undefined` unless the child process exited due to an `error` event or a timeout.
+
+### options
+
+Type: `object`
+
+#### cleanup
+
+Type: `boolean`\
+Default: `true`
+
+Kill the spawned process when the parent process exits unless either:
+ - the spawned process is [`detached`](https://nodejs.org/api/child_process.html#child_process_options_detached)
+ - the parent process is terminated abruptly, for example, with `SIGKILL` as opposed to `SIGTERM` or a normal exit
+
+#### preferLocal
+
+Type: `boolean`\
+Default: `false`
+
+Prefer locally installed binaries when looking for a binary to execute.\
+If you `$ npm install foo`, you can then `execa('foo')`.
+
+#### localDir
+
+Type: `string | URL`\
+Default: `process.cwd()`
+
+Preferred path to find locally installed binaries in (use with `preferLocal`).
+
+Using a `URL` is only supported in Node.js `14.18.0`, `16.14.0` or above.
+
+#### execPath
+
+Type: `string`\
+Default: `process.execPath` (Current Node.js executable)
+
+Path to the Node.js executable to use in child processes.
+
+This can be either an absolute path or a path relative to the [`cwd` option](#cwd).
+
+Requires [`preferLocal`](#preferlocal) to be `true`.
+
+For example, this can be used together with [`get-node`](https://github.com/ehmicky/get-node) to run a specific Node.js version in a child process.
+
+#### buffer
+
+Type: `boolean`\
+Default: `true`
+
+Buffer the output from the spawned process. When set to `false`, you must read the output of [`stdout`](#stdout-1) and [`stderr`](#stderr-1) (or [`all`](#all) if the [`all`](#all-2) option is `true`). Otherwise the returned promise will not be resolved/rejected.
+
+If the spawned process fails, [`error.stdout`](#stdout), [`error.stderr`](#stderr), and [`error.all`](#all) will contain the buffered data.
+
+#### input
+
+Type: `string | Buffer | stream.Readable`
+
+Write some input to the `stdin` of your binary.\
+Streams are not allowed when using the synchronous methods.
+
+#### stdin
+
+Type: `string | number | Stream | undefined`\
+Default: `pipe`
+
+Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+#### stdout
+
+Type: `string | number | Stream | undefined`\
+Default: `pipe`
+
+Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+#### stderr
+
+Type: `string | number | Stream | undefined`\
+Default: `pipe`
+
+Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
+
+#### all
+
+Type: `boolean`\
+Default: `false`
+
+Add an `.all` property on the [promise](#all) and the [resolved value](#all-1). The property contains the output of the process with `stdout` and `stderr` interleaved.
+
+#### reject
+
+Type: `boolean`\
+Default: `true`
+
+Setting this to `false` resolves the promise with the error instead of rejecting it.
+
+#### stripFinalNewline
+
+Type: `boolean`\
+Default: `true`
+
+Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from the output.
+
+#### extendEnv
+
+Type: `boolean`\
+Default: `true`
+
+Set to `false` if you don't want to extend the environment variables when providing the `env` property.
+
+---
+
+Execa also accepts the below options which are the same as the options for [`child_process#spawn()`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options)/[`child_process#exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
+
+#### cwd
+
+Type: `string | URL`\
+Default: `process.cwd()`
+
+Current working directory of the child process.
+
+Using a `URL` is only supported in Node.js `14.18.0`, `16.14.0` or above.
+
+#### env
+
+Type: `object`\
+Default: `process.env`
+
+Environment key-value pairs. Extends automatically from `process.env`. Set [`extendEnv`](#extendenv) to `false` if you don't want this.
+
+#### argv0
+
+Type: `string`
+
+Explicitly set the value of `argv[0]` sent to the child process. This will be set to `file` if not specified.
+
+#### stdio
+
+Type: `string | string[]`\
+Default: `pipe`
+
+Child's [stdio](https://nodejs.org/api/child_process.html#child_process_options_stdio) configuration.
+
+#### serialization
+
+Type: `string`\
+Default: `'json'`
+
+Specify the kind of serialization used for sending messages between processes when using the [`stdio: 'ipc'`](#stdio) option or [`execaNode()`](#execanodescriptpath-arguments-options):
+ - `json`: Uses `JSON.stringify()` and `JSON.parse()`.
+ - `advanced`: Uses [`v8.serialize()`](https://nodejs.org/api/v8.html#v8_v8_serialize_value)
+
+Requires Node.js `13.2.0` or later.
+
+[More info.](https://nodejs.org/api/child_process.html#child_process_advanced_serialization)
+
+#### detached
+
+Type: `boolean`
+
+Prepare child to run independently of its parent process. Specific behavior [depends on the platform](https://nodejs.org/api/child_process.html#child_process_options_detached).
+
+#### uid
+
+Type: `number`
+
+Sets the user identity of the process.
+
+#### gid
+
+Type: `number`
+
+Sets the group identity of the process.
+
+#### shell
+
+Type: `boolean | string`\
+Default: `false`
+
+If `true`, runs `file` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe` on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
+
+We recommend against using this option since it is:
+- not cross-platform, encouraging shell-specific syntax.
+- slower, because of the additional shell interpretation.
+- unsafe, potentially allowing command injection.
+
+#### encoding
+
+Type: `string | null`\
+Default: `utf8`
+
+Specify the character encoding used to decode the `stdout` and `stderr` output. If set to `null`, then `stdout` and `stderr` will be a `Buffer` instead of a string.
+
+#### timeout
+
+Type: `number`\
+Default: `0`
+
+If timeout is greater than `0`, the parent will send the signal identified by the `killSignal` property (the default is `SIGTERM`) if the child runs longer than timeout milliseconds.
+
+#### maxBuffer
+
+Type: `number`\
+Default: `100_000_000` (100 MB)
+
+Largest amount of data in bytes allowed on `stdout` or `stderr`.
+
+#### killSignal
+
+Type: `string | number`\
+Default: `SIGTERM`
+
+Signal value to be used when the spawned process will be killed.
+
+#### signal
+
+Type: [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)
+
+You can abort the spawned process using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
+
+When `AbortController.abort()` is called, [`.isCanceled`](#iscanceled) becomes `false`.
+
+*Requires Node.js 16 or later.*
+
+#### windowsVerbatimArguments
+
+Type: `boolean`\
+Default: `false`
+
+If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`.
+
+#### windowsHide
+
+Type: `boolean`\
+Default: `true`
+
+On Windows, do not create a new console window. Please note this also prevents `CTRL-C` [from working](https://github.com/nodejs/node/issues/29837) on Windows.
+
+#### nodePath *(For `.node()` only)*
+
+Type: `string`\
+Default: [`process.execPath`](https://nodejs.org/api/process.html#process_process_execpath)
+
+Node.js executable used to create the child process.
+
+#### nodeOptions *(For `.node()` only)*
+
+Type: `string[]`\
+Default: [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv)
+
+List of [CLI options](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.
+
+## Tips
+
+### Retry on error
+
+Gracefully handle failures by using automatic retries and exponential backoff with the [`p-retry`](https://github.com/sindresorhus/p-retry) package:
+
+```js
+import pRetry from 'p-retry';
+
+const run = async () => {
+ const results = await execa('curl', ['-sSL', 'https://sindresorhus.com/unicorn']);
+ return results;
+};
+
+console.log(await pRetry(run, {retries: 5}));
+```
+
+### Save and pipe output from a child process
+
+Let's say you want to show the output of a child process in real-time while also saving it to a variable.
+
+```js
+import {execa} from 'execa';
+
+const subprocess = execa('echo', ['foo']);
+subprocess.stdout.pipe(process.stdout);
+
+const {stdout} = await subprocess;
+console.log('child output:', stdout);
+```
+
+### Redirect output to a file
+
+```js
+import {execa} from 'execa';
+
+const subprocess = execa('echo', ['foo'])
+subprocess.stdout.pipe(fs.createWriteStream('stdout.txt'))
+```
+
+### Redirect input from a file
+
+```js
+import {execa} from 'execa';
+
+const subprocess = execa('cat')
+fs.createReadStream('stdin.txt').pipe(subprocess.stdin)
+```
+
+### Execute the current package's binary
+
+```js
+import {getBinPathSync} from 'get-bin-path';
+
+const binPath = getBinPathSync();
+const subprocess = execa(binPath);
+```
+
+`execa` can be combined with [`get-bin-path`](https://github.com/ehmicky/get-bin-path) to test the current package's binary. As opposed to hard-coding the path to the binary, this validates that the `package.json` `bin` field is correctly set up.
+
+## Related
+
+- [gulp-execa](https://github.com/ehmicky/gulp-execa) - Gulp plugin for `execa`
+- [nvexeca](https://github.com/ehmicky/nvexeca) - Run `execa` using any Node.js version
+- [sudo-prompt](https://github.com/jorangreef/sudo-prompt) - Run commands with elevated privileges.
+
+## Maintainers
+
+- [Sindre Sorhus](https://github.com/sindresorhus)
+- [@ehmicky](https://github.com/ehmicky)
+
+---
+
+
diff --git a/tests/wcag-compliance/node_modules/get-stream/buffer-stream.js b/tests/wcag-compliance/node_modules/get-stream/buffer-stream.js
new file mode 100644
index 0000000..2dd7574
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/buffer-stream.js
@@ -0,0 +1,52 @@
+'use strict';
+const {PassThrough: PassThroughStream} = require('stream');
+
+module.exports = options => {
+ options = {...options};
+
+ const {array} = options;
+ let {encoding} = options;
+ const isBuffer = encoding === 'buffer';
+ let objectMode = false;
+
+ if (array) {
+ objectMode = !(encoding || isBuffer);
+ } else {
+ encoding = encoding || 'utf8';
+ }
+
+ if (isBuffer) {
+ encoding = null;
+ }
+
+ const stream = new PassThroughStream({objectMode});
+
+ if (encoding) {
+ stream.setEncoding(encoding);
+ }
+
+ let length = 0;
+ const chunks = [];
+
+ stream.on('data', chunk => {
+ chunks.push(chunk);
+
+ if (objectMode) {
+ length = chunks.length;
+ } else {
+ length += chunk.length;
+ }
+ });
+
+ stream.getBufferedValue = () => {
+ if (array) {
+ return chunks;
+ }
+
+ return isBuffer ? Buffer.concat(chunks, length) : chunks.join('');
+ };
+
+ stream.getBufferedLength = () => length;
+
+ return stream;
+};
diff --git a/tests/wcag-compliance/node_modules/get-stream/index.d.ts b/tests/wcag-compliance/node_modules/get-stream/index.d.ts
new file mode 100644
index 0000000..9485b2b
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/index.d.ts
@@ -0,0 +1,105 @@
+///
+import {Stream} from 'stream';
+
+declare class MaxBufferErrorClass extends Error {
+ readonly name: 'MaxBufferError';
+ constructor();
+}
+
+declare namespace getStream {
+ interface Options {
+ /**
+ Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `MaxBufferError` error.
+
+ @default Infinity
+ */
+ readonly maxBuffer?: number;
+ }
+
+ interface OptionsWithEncoding extends Options {
+ /**
+ [Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream.
+
+ @default 'utf8'
+ */
+ readonly encoding?: EncodingType;
+ }
+
+ type MaxBufferError = MaxBufferErrorClass;
+}
+
+declare const getStream: {
+ /**
+ Get the `stream` as a string.
+
+ @returns A promise that resolves when the end event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode.
+
+ @example
+ ```
+ import * as fs from 'fs';
+ import getStream = require('get-stream');
+
+ (async () => {
+ const stream = fs.createReadStream('unicorn.txt');
+
+ console.log(await getStream(stream));
+ // ,,))))))));,
+ // __)))))))))))))),
+ // \|/ -\(((((''''((((((((.
+ // -*-==//////(('' . `)))))),
+ // /|\ ))| o ;-. '((((( ,(,
+ // ( `| / ) ;))))' ,_))^;(~
+ // | | | ,))((((_ _____------~~~-. %,;(;(>';'~
+ // o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~
+ // ; ''''```` `: `:::|\,__,%% );`'; ~
+ // | _ ) / `:|`----' `-'
+ // ______/\/~ | / /
+ // /~;;.____/;;' / ___--,-( `;;;/
+ // / // _;______;'------~~~~~ /;;/\ /
+ // // | | / ; \;;,\
+ // (<_ | ; /',/-----' _>
+ // \_| ||_ //~;~~~~~~~~~
+ // `\_| (,~~
+ // \~\
+ // ~~
+ })();
+ ```
+ */
+ (stream: Stream, options?: getStream.OptionsWithEncoding): Promise;
+
+ /**
+ Get the `stream` as a buffer.
+
+ It honors the `maxBuffer` option as above, but it refers to byte length rather than string length.
+ */
+ buffer(
+ stream: Stream,
+ options?: getStream.Options
+ ): Promise;
+
+ /**
+ Get the `stream` as an array of values.
+
+ It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen:
+
+ - When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes).
+ - When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array.
+ - When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array.
+ */
+ array(
+ stream: Stream,
+ options?: getStream.Options
+ ): Promise;
+ array(
+ stream: Stream,
+ options: getStream.OptionsWithEncoding<'buffer'>
+ ): Promise;
+ array(
+ stream: Stream,
+ options: getStream.OptionsWithEncoding
+ ): Promise;
+
+ MaxBufferError: typeof MaxBufferErrorClass;
+};
+
+export = getStream;
diff --git a/tests/wcag-compliance/node_modules/get-stream/index.js b/tests/wcag-compliance/node_modules/get-stream/index.js
new file mode 100644
index 0000000..1c5d028
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/index.js
@@ -0,0 +1,61 @@
+'use strict';
+const {constants: BufferConstants} = require('buffer');
+const stream = require('stream');
+const {promisify} = require('util');
+const bufferStream = require('./buffer-stream');
+
+const streamPipelinePromisified = promisify(stream.pipeline);
+
+class MaxBufferError extends Error {
+ constructor() {
+ super('maxBuffer exceeded');
+ this.name = 'MaxBufferError';
+ }
+}
+
+async function getStream(inputStream, options) {
+ if (!inputStream) {
+ throw new Error('Expected a stream');
+ }
+
+ options = {
+ maxBuffer: Infinity,
+ ...options
+ };
+
+ const {maxBuffer} = options;
+ const stream = bufferStream(options);
+
+ await new Promise((resolve, reject) => {
+ const rejectPromise = error => {
+ // Don't retrieve an oversized buffer.
+ if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
+ error.bufferedData = stream.getBufferedValue();
+ }
+
+ reject(error);
+ };
+
+ (async () => {
+ try {
+ await streamPipelinePromisified(inputStream, stream);
+ resolve();
+ } catch (error) {
+ rejectPromise(error);
+ }
+ })();
+
+ stream.on('data', () => {
+ if (stream.getBufferedLength() > maxBuffer) {
+ rejectPromise(new MaxBufferError());
+ }
+ });
+ });
+
+ return stream.getBufferedValue();
+}
+
+module.exports = getStream;
+module.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});
+module.exports.array = (stream, options) => getStream(stream, {...options, array: true});
+module.exports.MaxBufferError = MaxBufferError;
diff --git a/tests/wcag-compliance/node_modules/get-stream/license b/tests/wcag-compliance/node_modules/get-stream/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/get-stream/package.json b/tests/wcag-compliance/node_modules/get-stream/package.json
new file mode 100644
index 0000000..bd47a75
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/package.json
@@ -0,0 +1,47 @@
+{
+ "name": "get-stream",
+ "version": "6.0.1",
+ "description": "Get a stream as a string, buffer, or array",
+ "license": "MIT",
+ "repository": "sindresorhus/get-stream",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts",
+ "buffer-stream.js"
+ ],
+ "keywords": [
+ "get",
+ "stream",
+ "promise",
+ "concat",
+ "string",
+ "text",
+ "buffer",
+ "read",
+ "data",
+ "consume",
+ "readable",
+ "readablestream",
+ "array",
+ "object"
+ ],
+ "devDependencies": {
+ "@types/node": "^14.0.27",
+ "ava": "^2.4.0",
+ "into-stream": "^5.0.0",
+ "tsd": "^0.13.1",
+ "xo": "^0.24.0"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/get-stream/readme.md b/tests/wcag-compliance/node_modules/get-stream/readme.md
new file mode 100644
index 0000000..70b01fd
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/get-stream/readme.md
@@ -0,0 +1,124 @@
+# get-stream
+
+> Get a stream as a string, buffer, or array
+
+## Install
+
+```
+$ npm install get-stream
+```
+
+## Usage
+
+```js
+const fs = require('fs');
+const getStream = require('get-stream');
+
+(async () => {
+ const stream = fs.createReadStream('unicorn.txt');
+
+ console.log(await getStream(stream));
+ /*
+ ,,))))))));,
+ __)))))))))))))),
+ \|/ -\(((((''''((((((((.
+ -*-==//////(('' . `)))))),
+ /|\ ))| o ;-. '((((( ,(,
+ ( `| / ) ;))))' ,_))^;(~
+ | | | ,))((((_ _____------~~~-. %,;(;(>';'~
+ o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~
+ ; ''''```` `: `:::|\,__,%% );`'; ~
+ | _ ) / `:|`----' `-'
+ ______/\/~ | / /
+ /~;;.____/;;' / ___--,-( `;;;/
+ / // _;______;'------~~~~~ /;;/\ /
+ // | | / ; \;;,\
+ (<_ | ; /',/-----' _>
+ \_| ||_ //~;~~~~~~~~~
+ `\_| (,~~
+ \~\
+ ~~
+ */
+})();
+```
+
+## API
+
+The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode.
+
+### getStream(stream, options?)
+
+Get the `stream` as a string.
+
+#### options
+
+Type: `object`
+
+##### encoding
+
+Type: `string`\
+Default: `'utf8'`
+
+[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream.
+
+##### maxBuffer
+
+Type: `number`\
+Default: `Infinity`
+
+Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error.
+
+### getStream.buffer(stream, options?)
+
+Get the `stream` as a buffer.
+
+It honors the `maxBuffer` option as above, but it refers to byte length rather than string length.
+
+### getStream.array(stream, options?)
+
+Get the `stream` as an array of values.
+
+It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen:
+
+- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes).
+
+- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array.
+
+- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array.
+
+## Errors
+
+If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error.
+
+```js
+(async () => {
+ try {
+ await getStream(streamThatErrorsAtTheEnd('unicorn'));
+ } catch (error) {
+ console.log(error.bufferedData);
+ //=> 'unicorn'
+ }
+})()
+```
+
+## FAQ
+
+### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)?
+
+This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package.
+
+## Related
+
+- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer
+
+---
+
+
diff --git a/tests/wcag-compliance/node_modules/human-signals/LICENSE b/tests/wcag-compliance/node_modules/human-signals/LICENSE
new file mode 100644
index 0000000..365f976
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/human-signals/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2021 ehmicky
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/tests/wcag-compliance/node_modules/human-signals/README.md b/tests/wcag-compliance/node_modules/human-signals/README.md
new file mode 100644
index 0000000..08a2ac1
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/human-signals/README.md
@@ -0,0 +1,164 @@
+[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/human-signals.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/human-signals)
+[![Build](https://github.com/ehmicky/human-signals/workflows/Build/badge.svg)](https://github.com/ehmicky/human-signals/actions)
+[![Node](https://img.shields.io/node/v/human-signals.svg?logo=node.js)](https://www.npmjs.com/package/human-signals)
+[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
+[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)
+
+Human-friendly process signals.
+
+This is a map of known process signals with some information about each signal.
+
+Unlike
+[`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
+this includes:
+
+- human-friendly [descriptions](#description)
+- [default actions](#action), including whether they [can be prevented](#forced)
+- whether the signal is [supported](#supported) by the current OS
+
+# Example
+
+```js
+import { signalsByName, signalsByNumber } from 'human-signals'
+
+console.log(signalsByName.SIGINT)
+// {
+// name: 'SIGINT',
+// number: 2,
+// description: 'User interruption with CTRL-C',
+// supported: true,
+// action: 'terminate',
+// forced: false,
+// standard: 'ansi'
+// }
+
+console.log(signalsByNumber[8])
+// {
+// name: 'SIGFPE',
+// number: 8,
+// description: 'Floating point arithmetic error',
+// supported: true,
+// action: 'core',
+// forced: false,
+// standard: 'ansi'
+// }
+```
+
+# Install
+
+```bash
+npm install human-signals
+```
+
+This package is an ES module and must be loaded using
+[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),
+not `require()`.
+
+# Usage
+
+## signalsByName
+
+_Type_: `object`
+
+Object whose keys are signal [names](#name) and values are
+[signal objects](#signal).
+
+## signalsByNumber
+
+_Type_: `object`
+
+Object whose keys are signal [numbers](#number) and values are
+[signal objects](#signal).
+
+## signal
+
+_Type_: `object`
+
+Signal object with the following properties.
+
+### name
+
+_Type_: `string`
+
+Standard name of the signal, for example `'SIGINT'`.
+
+### number
+
+_Type_: `number`
+
+Code number of the signal, for example `2`. While most `number` are
+cross-platform, some are different between different OS.
+
+### description
+
+_Type_: `string`
+
+Human-friendly description for the signal, for example
+`'User interruption with CTRL-C'`.
+
+### supported
+
+_Type_: `boolean`
+
+Whether the current OS can handle this signal in Node.js using
+[`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
+
+The list of supported signals
+[is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/main/docs/6_networking_ipc/signals.md#cross-platform-signals).
+
+### action
+
+_Type_: `string`\
+_Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`, `'unpause'`
+
+What is the default action for this signal when it is not handled.
+
+### forced
+
+_Type_: `boolean`
+
+Whether the signal's default action cannot be prevented. This is `true` for
+`SIGTERM`, `SIGKILL` and `SIGSTOP`.
+
+### standard
+
+_Type_: `string`\
+_Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
+
+Which standard defined that signal.
+
+# Support
+
+For any question, _don't hesitate_ to [submit an issue on GitHub](../../issues).
+
+Everyone is welcome regardless of personal background. We enforce a
+[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
+inclusive environment.
+
+# Contributing
+
+This project was made with ❤️. The simplest way to give back is by starring and
+sharing it online.
+
+If the documentation is unclear or has a typo, please click on the page's `Edit`
+button (pencil icon) and suggest a correction.
+
+If you would like to help us fix a bug or add a new feature, please check our
+[guidelines](CONTRIBUTING.md). Pull requests are welcome!
+
+Thanks go to our wonderful contributors:
+
+
+
+
+
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/index.d.ts b/tests/wcag-compliance/node_modules/npm-run-path/index.d.ts
new file mode 100644
index 0000000..fad851b
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/index.d.ts
@@ -0,0 +1,84 @@
+export interface RunPathOptions {
+ /**
+ Working directory.
+
+ @default process.cwd()
+ */
+ readonly cwd?: string | URL;
+
+ /**
+ PATH to be appended. Default: [`PATH`](https://github.com/sindresorhus/path-key).
+
+ Set it to an empty string to exclude the default PATH.
+ */
+ readonly path?: string;
+
+ /**
+ Path to the Node.js executable to use in child processes if that is different from the current one. Its directory is pushed to the front of PATH.
+
+ This can be either an absolute path or a path relative to the `cwd` option.
+
+ @default process.execPath
+ */
+ readonly execPath?: string;
+}
+
+export type ProcessEnv = Record;
+
+export interface EnvOptions {
+ /**
+ The working directory.
+
+ @default process.cwd()
+ */
+ readonly cwd?: string | URL;
+
+ /**
+ Accepts an object of environment variables, like `process.env`, and modifies the PATH using the correct [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use in the `child_process` options.
+ */
+ readonly env?: ProcessEnv;
+
+ /**
+ The path to the current Node.js executable. Its directory is pushed to the front of PATH.
+
+ This can be either an absolute path or a path relative to the `cwd` option.
+
+ @default process.execPath
+ */
+ readonly execPath?: string;
+}
+
+/**
+Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries.
+
+@returns The augmented path string.
+
+@example
+```
+import childProcess from 'node:child_process';
+import {npmRunPath} from 'npm-run-path';
+
+console.log(process.env.PATH);
+//=> '/usr/local/bin'
+
+console.log(npmRunPath());
+//=> '/Users/sindresorhus/dev/foo/node_modules/.bin:/Users/sindresorhus/dev/node_modules/.bin:/Users/sindresorhus/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/bin'
+```
+*/
+export function npmRunPath(options?: RunPathOptions): string;
+
+/**
+@returns The augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.
+
+@example
+```
+import childProcess from 'node:child_process';
+import {npmRunPathEnv} from 'npm-run-path';
+
+// `foo` is a locally installed binary
+childProcess.execFileSync('foo', {
+ env: npmRunPathEnv()
+});
+```
+*/
+export function npmRunPathEnv(options?: EnvOptions): ProcessEnv;
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/index.js b/tests/wcag-compliance/node_modules/npm-run-path/index.js
new file mode 100644
index 0000000..77dfae2
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/index.js
@@ -0,0 +1,38 @@
+import process from 'node:process';
+import path from 'node:path';
+import url from 'node:url';
+import pathKey from 'path-key';
+
+export function npmRunPath(options = {}) {
+ const {
+ cwd = process.cwd(),
+ path: path_ = process.env[pathKey()],
+ execPath = process.execPath,
+ } = options;
+
+ let previous;
+ const cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;
+ let cwdPath = path.resolve(cwdString);
+ const result = [];
+
+ while (previous !== cwdPath) {
+ result.push(path.join(cwdPath, 'node_modules/.bin'));
+ previous = cwdPath;
+ cwdPath = path.resolve(cwdPath, '..');
+ }
+
+ // Ensure the running `node` binary is used.
+ result.push(path.resolve(cwdString, execPath, '..'));
+
+ return [...result, path_].join(path.delimiter);
+}
+
+export function npmRunPathEnv({env = process.env, ...options} = {}) {
+ env = {...env};
+
+ const path = pathKey({env});
+ options.path = env[path];
+ env[path] = npmRunPath(options);
+
+ return env;
+}
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/license b/tests/wcag-compliance/node_modules/npm-run-path/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.d.ts b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.d.ts
new file mode 100644
index 0000000..f411d62
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.d.ts
@@ -0,0 +1,31 @@
+export interface Options {
+ /**
+ Use a custom environment variables object.
+
+ Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env).
+ */
+ readonly env?: Record;
+
+ /**
+ Get the PATH key for a specific platform.
+
+ Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform).
+ */
+ readonly platform?: NodeJS.Platform;
+}
+
+/**
+Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform.
+
+@example
+```
+import pathKey from 'path-key';
+
+const key = pathKey();
+//=> 'PATH'
+
+const PATH = process.env[key];
+//=> '/usr/local/bin:/usr/bin:/bin'
+```
+*/
+export default function pathKey(options?: Options): string;
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.js b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.js
new file mode 100644
index 0000000..2c02914
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/index.js
@@ -0,0 +1,12 @@
+export default function pathKey(options = {}) {
+ const {
+ env = process.env,
+ platform = process.platform
+ } = options;
+
+ if (platform !== 'win32') {
+ return 'PATH';
+ }
+
+ return Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
+}
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/license b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/package.json b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/package.json
new file mode 100644
index 0000000..609070d
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "path-key",
+ "version": "4.0.0",
+ "description": "Get the PATH environment variable key cross-platform",
+ "license": "MIT",
+ "repository": "sindresorhus/path-key",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": "./index.js",
+ "engines": {
+ "node": ">=12"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "path",
+ "key",
+ "environment",
+ "env",
+ "variable",
+ "get",
+ "cross-platform",
+ "windows"
+ ],
+ "devDependencies": {
+ "@types/node": "^14.14.37",
+ "ava": "^3.15.0",
+ "tsd": "^0.14.0",
+ "xo": "^0.38.2"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/readme.md b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/readme.md
new file mode 100644
index 0000000..aa22506
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/npm-run-path/node_modules/path-key/readme.md
@@ -0,0 +1,57 @@
+# path-key
+
+> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform
+
+It's usually `PATH` but on Windows it can be any casing like `Path`...
+
+## Install
+
+```
+$ npm install path-key
+```
+
+## Usage
+
+```js
+import pathKey from 'path-key';
+
+const key = pathKey();
+//=> 'PATH'
+
+const PATH = process.env[key];
+//=> '/usr/local/bin:/usr/bin:/bin'
+```
+
+## API
+
+### pathKey(options?)
+
+#### options
+
+Type: `object`
+
+##### env
+
+Type: `object`\
+Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env)
+
+Use a custom environment variables object.
+
+#### platform
+
+Type: `string`\
+Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)
+
+Get the PATH key for a specific platform.
+
+---
+
+
diff --git a/tests/wcag-compliance/node_modules/onetime/index.d.ts b/tests/wcag-compliance/node_modules/onetime/index.d.ts
new file mode 100644
index 0000000..3c80803
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/onetime/index.d.ts
@@ -0,0 +1,59 @@
+export interface Options {
+ /**
+ Throw an error when called more than once.
+
+ @default false
+ */
+ readonly throw?: boolean;
+}
+
+declare const onetime: {
+ /**
+ Ensure a function is only called once. When called multiple times it will return the return value from the first call.
+
+ @param fn - Function that should only be called once.
+ @returns A function that only calls `fn` once.
+
+ @example
+ ```
+ import onetime from 'onetime';
+
+ let index = 0;
+
+ const foo = onetime(() => ++index);
+
+ foo(); //=> 1
+ foo(); //=> 1
+ foo(); //=> 1
+
+ onetime.callCount(foo); //=> 3
+ ```
+ */
+ (
+ fn: (...arguments: ArgumentsType) => ReturnType,
+ options?: Options
+ ): (...arguments: ArgumentsType) => ReturnType;
+
+ /**
+ Get the number of times `fn` has been called.
+
+ @param fn - Function to get call count from.
+ @returns A number representing how many times `fn` has been called.
+
+ @example
+ ```
+ import onetime from 'onetime';
+
+ const foo = onetime(() => {});
+ foo();
+ foo();
+ foo();
+
+ console.log(onetime.callCount(foo));
+ //=> 3
+ ```
+ */
+ callCount(fn: (...arguments: any[]) => unknown): number;
+};
+
+export default onetime;
diff --git a/tests/wcag-compliance/node_modules/onetime/index.js b/tests/wcag-compliance/node_modules/onetime/index.js
new file mode 100644
index 0000000..eae4f33
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/onetime/index.js
@@ -0,0 +1,41 @@
+import mimicFunction from 'mimic-fn';
+
+const calledFunctions = new WeakMap();
+
+const onetime = (function_, options = {}) => {
+ if (typeof function_ !== 'function') {
+ throw new TypeError('Expected a function');
+ }
+
+ let returnValue;
+ let callCount = 0;
+ const functionName = function_.displayName || function_.name || '';
+
+ const onetime = function (...arguments_) {
+ calledFunctions.set(onetime, ++callCount);
+
+ if (callCount === 1) {
+ returnValue = function_.apply(this, arguments_);
+ function_ = null;
+ } else if (options.throw === true) {
+ throw new Error(`Function \`${functionName}\` can only be called once`);
+ }
+
+ return returnValue;
+ };
+
+ mimicFunction(onetime, function_);
+ calledFunctions.set(onetime, callCount);
+
+ return onetime;
+};
+
+onetime.callCount = function_ => {
+ if (!calledFunctions.has(function_)) {
+ throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
+ }
+
+ return calledFunctions.get(function_);
+};
+
+export default onetime;
diff --git a/tests/wcag-compliance/node_modules/onetime/license b/tests/wcag-compliance/node_modules/onetime/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/onetime/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (https://sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/onetime/package.json b/tests/wcag-compliance/node_modules/onetime/package.json
new file mode 100644
index 0000000..475a1e3
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/onetime/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "onetime",
+ "version": "6.0.0",
+ "description": "Ensure a function is only called once",
+ "license": "MIT",
+ "repository": "sindresorhus/onetime",
+ "funding": "https://github.com/sponsors/sindresorhus",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "type": "module",
+ "exports": "./index.js",
+ "engines": {
+ "node": ">=12"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "once",
+ "function",
+ "one",
+ "onetime",
+ "func",
+ "fn",
+ "single",
+ "call",
+ "called",
+ "prevent"
+ ],
+ "dependencies": {
+ "mimic-fn": "^4.0.0"
+ },
+ "devDependencies": {
+ "ava": "^3.15.0",
+ "tsd": "^0.14.0",
+ "xo": "^0.38.2"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/onetime/readme.md b/tests/wcag-compliance/node_modules/onetime/readme.md
new file mode 100644
index 0000000..e2b26fb
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/onetime/readme.md
@@ -0,0 +1,94 @@
+# onetime
+
+> Ensure a function is only called once
+
+When called multiple times it will return the return value from the first call.
+
+*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
+
+## Install
+
+```
+$ npm install onetime
+```
+
+## Usage
+
+```js
+import onetime from 'onetime';
+
+let index = 0;
+
+const foo = onetime(() => ++index);
+
+foo(); //=> 1
+foo(); //=> 1
+foo(); //=> 1
+
+onetime.callCount(foo); //=> 3
+```
+
+```js
+import onetime from 'onetime';
+
+const foo = onetime(() => {}, {throw: true});
+
+foo();
+
+foo();
+//=> Error: Function `foo` can only be called once
+```
+
+## API
+
+### onetime(fn, options?)
+
+Returns a function that only calls `fn` once.
+
+#### fn
+
+Type: `Function`
+
+Function that should only be called once.
+
+#### options
+
+Type: `object`
+
+##### throw
+
+Type: `boolean`\
+Default: `false`
+
+Throw an error when called more than once.
+
+### onetime.callCount(fn)
+
+Returns a number representing how many times `fn` has been called.
+
+Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
+
+```js
+import onetime from 'onetime';
+
+const foo = onetime(() => {});
+
+foo();
+foo();
+foo();
+
+console.log(onetime.callCount(foo));
+//=> 3
+```
+
+#### fn
+
+Type: `Function`
+
+Function to get call count from.
+
+## onetime for enterprise
+
+Available as part of the Tidelift Subscription.
+
+The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
diff --git a/tests/wcag-compliance/node_modules/path-key/index.d.ts b/tests/wcag-compliance/node_modules/path-key/index.d.ts
new file mode 100644
index 0000000..7c575d1
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/path-key/index.d.ts
@@ -0,0 +1,40 @@
+///
+
+declare namespace pathKey {
+ interface Options {
+ /**
+ Use a custom environment variables object. Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env).
+ */
+ readonly env?: {[key: string]: string | undefined};
+
+ /**
+ Get the PATH key for a specific platform. Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform).
+ */
+ readonly platform?: NodeJS.Platform;
+ }
+}
+
+declare const pathKey: {
+ /**
+ Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform.
+
+ @example
+ ```
+ import pathKey = require('path-key');
+
+ const key = pathKey();
+ //=> 'PATH'
+
+ const PATH = process.env[key];
+ //=> '/usr/local/bin:/usr/bin:/bin'
+ ```
+ */
+ (options?: pathKey.Options): string;
+
+ // TODO: Remove this for the next major release, refactor the whole definition to:
+ // declare function pathKey(options?: pathKey.Options): string;
+ // export = pathKey;
+ default: typeof pathKey;
+};
+
+export = pathKey;
diff --git a/tests/wcag-compliance/node_modules/path-key/index.js b/tests/wcag-compliance/node_modules/path-key/index.js
new file mode 100644
index 0000000..0cf6415
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/path-key/index.js
@@ -0,0 +1,16 @@
+'use strict';
+
+const pathKey = (options = {}) => {
+ const environment = options.env || process.env;
+ const platform = options.platform || process.platform;
+
+ if (platform !== 'win32') {
+ return 'PATH';
+ }
+
+ return Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
+};
+
+module.exports = pathKey;
+// TODO: Remove this for the next major release
+module.exports.default = pathKey;
diff --git a/tests/wcag-compliance/node_modules/path-key/license b/tests/wcag-compliance/node_modules/path-key/license
new file mode 100644
index 0000000..e7af2f7
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/path-key/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tests/wcag-compliance/node_modules/path-key/package.json b/tests/wcag-compliance/node_modules/path-key/package.json
new file mode 100644
index 0000000..c8cbd38
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/path-key/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "path-key",
+ "version": "3.1.1",
+ "description": "Get the PATH environment variable key cross-platform",
+ "license": "MIT",
+ "repository": "sindresorhus/path-key",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "path",
+ "key",
+ "environment",
+ "env",
+ "variable",
+ "var",
+ "get",
+ "cross-platform",
+ "windows"
+ ],
+ "devDependencies": {
+ "@types/node": "^11.13.0",
+ "ava": "^1.4.1",
+ "tsd": "^0.7.2",
+ "xo": "^0.24.0"
+ }
+}
diff --git a/tests/wcag-compliance/node_modules/path-key/readme.md b/tests/wcag-compliance/node_modules/path-key/readme.md
new file mode 100644
index 0000000..a9052d7
--- /dev/null
+++ b/tests/wcag-compliance/node_modules/path-key/readme.md
@@ -0,0 +1,61 @@
+# path-key [![Build Status](https://travis-ci.org/sindresorhus/path-key.svg?branch=master)](https://travis-ci.org/sindresorhus/path-key)
+
+> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform
+
+It's usually `PATH`, but on Windows it can be any casing like `Path`...
+
+
+## Install
+
+```
+$ npm install path-key
+```
+
+
+## Usage
+
+```js
+const pathKey = require('path-key');
+
+const key = pathKey();
+//=> 'PATH'
+
+const PATH = process.env[key];
+//=> '/usr/local/bin:/usr/bin:/bin'
+```
+
+
+## API
+
+### pathKey(options?)
+
+#### options
+
+Type: `object`
+
+##### env
+
+Type: `object`
+Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env)
+
+Use a custom environment variables object.
+
+#### platform
+
+Type: `string`
+Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)
+
+Get the PATH key for a specific platform.
+
+
+---
+
+