Upstream attribution material — site website scope Non-development lockfile dependencies, including shared devOptional and all platform-specific optional variants. This is a build/runtime superset, not a shipped-bundle inventory or SBOM. Source: site/package-lock.json Lockfile SHA-256: d301f16ffb7ce9122f79d49f6173f0b728d6bbe044db7ac1d07a60328c2572ac Original published attribution files are reproduced below, unchanged, with provenance. Missing license metadata or text and bundled-library obligations remain explicitly unresolved. This is not legal clearance or a completeness/compliance claim. The offline freshness check does not re-download the published archives. ================================================================ @astrojs/compiler-binding@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.5.1.tgz Locked integrity: sha512-oczyolLUl9mNrtuBuNjuvn5thpHrFLXAHAWGTRg0JDHQ8cGVsVeFekOu2uSoQGgainJIi+A3/9m0DyYwz3Nlnw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: ee92354a87bc4a402e022fa15e10a6c713136aba84c46095dccc2b8091132806; bytes: 1136 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026 [Astro contributors](https://github.com/withastro/compiler/graphs/contributors) 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. --- END ORIGINAL BYTES --- ================================================================ @astrojs/compiler-binding-android-arm64@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-android-arm64/-/compiler-binding-android-arm64-0.5.1.tgz Locked integrity: sha512-nMb2nMIJtcWLNH+fV75Enmi+jp4tIOYOfsv4XtpgdOWkqc9P4uSSdK5u1xb340AzrXo5V18SxLl/nc3vcqtamQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-darwin-arm64@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.5.1.tgz Locked integrity: sha512-5k4+nZ/WRt+dcVow4z7rBuI7iv9A58h/uQ91YJe1PrTivbcCkq3u2Ynx/AZJwII4CsZawBCeGpojkFjutZBhBQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-darwin-x64@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.5.1.tgz Locked integrity: sha512-0Buw+YST9Ff2EqQyhRMQujuFq/dijLw3zXWhsvI0dJ2pGrT38iVoxTEca2eBX/PfhlwkVWSRJEKO5gMqKHyeHg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-linux-arm64-gnu@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.5.1.tgz Locked integrity: sha512-x5LRpyCoMKuu3INr18cn42YhwSOaRpp9b5Ny3eJJ/sWVeejC16Zeshu1JlvlSmEZACLeWxU5JM0RX6T6nI+YyA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-linux-arm64-musl@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.5.1.tgz Locked integrity: sha512-mL7tQEuDk3rGfaKmrO63nw6WBy1TPVioQGmVyjcAr+C+a/k3SVMYBytNSMqH9mZPT/Swj30JaZ2N842Z1NnOEQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-linux-x64-gnu@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.5.1.tgz Locked integrity: sha512-uLGc9jtxwiDe4cQyhNPQim4ECiB/YzbWlXssfLAv8r374kArfTwBHjwR2+j+XVyF71yCx5mF9YNRclRqdNBgeg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-linux-x64-musl@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.5.1.tgz Locked integrity: sha512-G0cywinaQUc8v1MrytvYKUX7svTDMmYtOCZfxjwKPbJi59zIqM+Ll0rWgO0GQWLZH3XoPYo19ZwlP3Xt9ep9YA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-wasm32-wasi@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.5.1.tgz Locked integrity: sha512-yMhLL8asmLydoAdnEZxAw6eLfNDs3YJl6jqn0pjPt6zrb2U5qIDLnii4/twThpIFODKkQ6YDpBRTOz/vSfZCxw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-win32-arm64-msvc@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.5.1.tgz Locked integrity: sha512-aClIG6poFt3Wf/bZykrEAX2nAnKvBHW6RXiKUa69QjBtWH0/FOlOAjnFcxRNlhej2AMWNYFx0o+LGjwMcH8P7Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-binding-win32-x64-msvc@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.5.1.tgz Locked integrity: sha512-/E6uBCagY70YpWqssBC+/FuniNSloeQPRgj7l3LDWiqjxIyTLnIgX1sTt18FU7jrigetpSnC9cHAM6b6IxSgPw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @astrojs/compiler-rs@0.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.5.1.tgz Locked integrity: sha512-1k1acnX7DepIiea9U9/Y+d1hdAFfylu1ZQQkkYgRSwBOBAsXInolyZuh/2tax+83vu/A+hOYP6P3+265RvMTvw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: ee92354a87bc4a402e022fa15e10a6c713136aba84c46095dccc2b8091132806; bytes: 1136 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026 [Astro contributors](https://github.com/withastro/compiler/graphs/contributors) 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: c75af231c0fde21ae5f3fa426c3822cace1c04b96d165ce03669ea7b57a00dc6; bytes: 1825 --- BEGIN ORIGINAL BYTES --- # Astro Compiler Astro's compiler, written in Rust with [NAPI-RS](https://napi.rs/) bindings for Node.js. ## Install ``` npm install @astrojs/compiler-rs ``` ## Usage #### Transform `.astro` to JavaScript The Astro compiler transforms `.astro` component files into JavaScript modules whose default export generates HTML. ```js import { transform } from "@astrojs/compiler-rs"; const result = transform(source, { filename: "/Users/astro/Code/project/src/pages/index.astro", sourcemap: "both", }); ``` #### Parse `.astro` and return an AST The compiler can emit an ESTree-compatible AST using the `parse` method. ```js import { parse } from "@astrojs/compiler-rs"; const result = parse(source); console.log(JSON.stringify(result.ast, null, 2)); ``` ## Contributing **New contributors welcome!** Check out our [Contributors Guide](CONTRIBUTING.md) for help getting started. Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll help you get your first contribution in no time! ## Links - [License (MIT)](LICENSE) - [Code of Conduct](https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md) - [Open Governance & Voting](https://github.com/withastro/.github/blob/main/GOVERNANCE.md) - [Project Funding](https://github.com/withastro/.github/blob/main/FUNDING.md) - [Website](https://astro.build/) ## Sponsors Astro is free, open source software made possible by these wonderful sponsors. [❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)

Sponsor logos including the current Astro Sponsors, Gold Sponsors, and Exclusive Partner Sponsors: Netlify, Sentry, and Project IDX.

--- END ORIGINAL BYTES --- ================================================================ @astrojs/internal-helpers@0.11.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.11.0.tgz Locked integrity: sha512-3rzxJ+xbo0+8YyqOzLziIN32wmsHdCjEVz2sGOpRxJ+Ben/KiLph4ItxBy1abEL+E8fkRzqjg0rfXmaHJGw9JA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- ================================================================ @astrojs/markdown-satteri@0.4.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.4.2.tgz Locked integrity: sha512-g4QehXnB/MzxQWnSf17NciFInMqEJy9948p8cc7zGg/r7995m0Ln5PMr3Xlnj24iey1LchaoZ3SzTOa3D4P/3w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- ================================================================ @astrojs/prism@4.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/prism/-/prism-4.0.2.tgz Locked integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- ================================================================ @astrojs/react@7.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/react/-/react-7.0.0.tgz Locked integrity: sha512-BUs2jVvuUnPBA/vtp9y1PvvoYeZZtjmwphu0TJX0wSQ6xzR31/OyflQ9Gmm4rn9IRZNFObCJG7wWsZSqr4OMUA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 85558dbf485637c19a105e568d14f73c4c5f5ccd9d89726d0b0056f9a3bb8dc2; bytes: 3829 --- BEGIN ORIGINAL BYTES --- # @astrojs/react ⚛️ This **[Astro integration][astro-integration]** enables server-side rendering and client-side hydration for your [React](https://react.dev/) components. ## Documentation Read the [`@astrojs/react` docs][docs] ## React Compiler Install the optional Oxc compiler: ```sh pnpm add -D oxc-transform-react ``` Enable it in `astro.config.mjs`: ```js import react from '@astrojs/react'; import { defineConfig } from 'astro/config'; export default defineConfig({ integrations: [react({ compiler: true })], }); ``` The compiler automatically memoizes client components and hooks. It does not compile server rendering. The target defaults to your installed React major version. For React 17 or 18, also install `react-compiler-runtime` as a runtime dependency. Pass an options object, such as `compiler: { compilationMode: 'annotation' }`, to configure Oxc's React Compiler. The integration's `include` and `exclude` filters apply; dependencies and Astro files are excluded. Compilation is disabled by default. ## Migrating custom Babel transforms The integration uses `@vitejs/plugin-react` v6 and Oxc for JSX and Fast Refresh. The `babel` integration option has been removed in this major release. If you use custom Babel transforms, install `@rolldown/plugin-babel` and `@babel/core`, keeping your existing Babel plugins and presets installed: ```sh pnpm add -D @rolldown/plugin-babel @babel/core ``` Move your Babel plugins and presets from `react({ babel: ... })` to `babel()` in `vite.plugins`. For example, migrate a project using `babel-plugin-styled-components` from: ```js import react from '@astrojs/react'; import { defineConfig } from 'astro/config'; export default defineConfig({ integrations: [react({ babel: { plugins: ['babel-plugin-styled-components'] } })], }); ``` To: ```js import react from '@astrojs/react'; import babel from '@rolldown/plugin-babel'; import { defineConfig } from 'astro/config'; export default defineConfig({ integrations: [react()], vite: { plugins: [ babel({ plugins: ['babel-plugin-styled-components'], }), ], }, }); ``` This also works with `react({ compiler: true })`. Babel runs before Oxc transforms TypeScript and JSX. The Babel plugin automatically enables parsing for `.jsx`, `.ts`, and `.tsx` files. It does not load `babel.config.js` or `.babelrc` files; pass the options directly to `babel()`. The old `babel` callback is not supported; use the plugin's [`overrides` and preset hooks](https://github.com/rolldown/plugins/tree/main/packages/babel#options) for conditional transforms. Do not enable `babel-plugin-react-compiler` on the same components as the Oxc compiler. ## Support - Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more! - Check our [Astro Integration Documentation][astro-integration] for more on integrations. - Submit bug reports and feature requests as [GitHub issues][issues]. ## Contributing This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started: - [Contributor Manual][contributing] - [Code of Conduct][coc] - [Community Guide][community] ## License MIT Copyright (c) 2023–present [Astro][astro] [astro]: https://astro.build/ [docs]: https://docs.astro.build/en/guides/integrations-guide/react/ [contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md [coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md [community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md [discord]: https://astro.build/chat/ [issues]: https://github.com/withastro/astro/issues [astro-integration]: https://docs.astro.build/en/guides/integrations/ --- END ORIGINAL BYTES --- ================================================================ @astrojs/sitemap@3.7.4 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.4.tgz Locked integrity: sha512-LbKNC24bdUWcQf/pThB6qLlSqHojxGjZDURIzFocY8rlWnAn2t74nnhnK6S5x0NHriHoAduLEpVjRykmeGiVvA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 8d99b15b2ecd8d1a395a5c1f54b849ceb0fd20c38f61f20209c5ec4c68bfa3a1; bytes: 1340 --- BEGIN ORIGINAL BYTES --- # @astrojs/sitemap 🗺 This **[Astro integration][astro-integration]** generates a sitemap based on your pages when you build your Astro project. ## Documentation Read the [`@astrojs/sitemap` docs][docs] ## Support - Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more! - Check our [Astro Integration Documentation][astro-integration] for more on integrations. - Submit bug reports and feature requests as [GitHub issues][issues]. ## Contributing This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started: - [Contributor Manual][contributing] - [Code of Conduct][coc] - [Community Guide][community] ## License MIT Copyright (c) 2023–present [Astro][astro] [astro]: https://astro.build/ [docs]: https://docs.astro.build/en/guides/integrations-guide/sitemap/ [contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md [coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md [community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md [discord]: https://astro.build/chat/ [issues]: https://github.com/withastro/astro/issues [astro-integration]: https://docs.astro.build/en/guides/integrations/ --- END ORIGINAL BYTES --- ================================================================ @astrojs/telemetry@3.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.3.tgz Locked integrity: sha512-C1TLn5sPJr0x4vk56piHWKbnqlEB8BKyte5Y45V02U+D7BGO5eMqZDH5aPjnkXQWJggvmsTXxH03QMZ9NgWLzQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- ================================================================ @babel/helper-string-parser@7.29.7 Declared package license: MIT Published archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz Locked integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 117da2af0d4ce0fe1c8e19b5cff9dcd806adf973d328d27b11d4448c4ff24f76; bytes: 1106 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors 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. --- END ORIGINAL BYTES --- ================================================================ @babel/helper-validator-identifier@7.29.7 Declared package license: MIT Published archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz Locked integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 117da2af0d4ce0fe1c8e19b5cff9dcd806adf973d328d27b11d4448c4ff24f76; bytes: 1106 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors 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. --- END ORIGINAL BYTES --- ================================================================ @babel/parser@7.29.9 Declared package license: MIT Published archive: https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz Locked integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2e97627cb278aa7556fb9e8817368302301a595b6c7582512b8d74c57b773652; bytes: 1086 --- BEGIN ORIGINAL BYTES --- Copyright (C) 2012-2014 by various contributors (see AUTHORS) 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. --- END ORIGINAL BYTES --- ================================================================ @babel/types@7.29.8 Declared package license: MIT Published archive: https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz Locked integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 117da2af0d4ce0fe1c8e19b5cff9dcd806adf973d328d27b11d4448c4ff24f76; bytes: 1106 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2014-present Sebastian McKenzie and other contributors 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. --- END ORIGINAL BYTES --- ================================================================ @bruits/satteri-darwin-arm64@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-darwin-arm64/-/satteri-darwin-arm64-0.10.5.tgz Locked integrity: sha512-27KTVl4TJkVahMy/ohyA7qd4938G5UNneFUz/PsScYfpIhj0IVAS23mpcJXdPF44sa6nva198lmV/cKIb2YPyA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-darwin-x64@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-darwin-x64/-/satteri-darwin-x64-0.10.5.tgz Locked integrity: sha512-IjnLe3nKspq6qaeqGgjT7MT8VrTV74yWRlaag7ZdNsI8TDAYZ0iPxMCo+9KQZHUk5EyVB+reBI/PFWL5KuFw9Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-linux-arm64-gnu@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-linux-arm64-gnu/-/satteri-linux-arm64-gnu-0.10.5.tgz Locked integrity: sha512-glkYXZCJywjP13v67eAyAMSJdF+ncvEbYvgi/wOtffL9tQ27lr/zsyzUfgs+ovjJ9d8JNQKiXeiArJcX8PJL9w== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-linux-arm64-musl@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-linux-arm64-musl/-/satteri-linux-arm64-musl-0.10.5.tgz Locked integrity: sha512-yWdgG1g17Nh2QyGVlFUxGRa3FEFwiMcpZEyMNWkbM3deC94cmVc+/i9OuyFpdKuWo3GkgoCtYVOoxk1uCnCZIA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-linux-x64-gnu@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-linux-x64-gnu/-/satteri-linux-x64-gnu-0.10.5.tgz Locked integrity: sha512-FVaLoPT1fBgGl0J+AYebyyXJYBachGl8Oyyrf1lye4RTqCB4S0Gwkj1uM9RJyThUOvx5VUmAT1CnNh1SFHA+kw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-linux-x64-musl@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-linux-x64-musl/-/satteri-linux-x64-musl-0.10.5.tgz Locked integrity: sha512-EHpVAx2bqW3GINHTKkljtxVfQmVDGWIuwOYOP5YghTj+0PkBa2o8oKPRtQ9Kbsr1Fye8jtUcDjhwj2jMNugZKg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-wasm32-wasi@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-wasm32-wasi/-/satteri-wasm32-wasi-0.10.5.tgz Locked integrity: sha512-ypz8c/Zmipxp4IoeDa228Gstv6TLzVmNs3yC6wKCoNSOjx1iwpgzu87Y3hTkXFdwChVGU85qeUDuOIarGUZQLw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-win32-arm64-msvc@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-win32-arm64-msvc/-/satteri-win32-arm64-msvc-0.10.5.tgz Locked integrity: sha512-siTV88nb0LRqNpkL2gXboqCwVdq95sLtzMHS1/3eONV2gLbB3NAK46wmSMvCO/yquBvI2lvaFIfd8P12ecsxBw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @bruits/satteri-win32-x64-msvc@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@bruits/satteri-win32-x64-msvc/-/satteri-win32-x64-msvc-0.10.5.tgz Locked integrity: sha512-C3IfPvfvMXmlzBxaMPKFS1XiuV9pu2mC7YqkPk7PSvTgPZ8gbdASIpHpztDLvTTQjqZ0z1Ol8tK5X+V6XXC0wQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @capsizecss/unpack@4.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@capsizecss/unpack/-/unpack-4.0.1.tgz Locked integrity: sha512-CuNiSqg7+e1cO/GjffyMOm5Tt2jUF9CWHHnvQ/UkqvtkGfHdgwEC0wpmq7fkN3gxwpRnrAN0WzO3vREKmNolMQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: f5162df964aa2bf1aff6d8af92f34bd8a7786fe110651f3332fd6ba71ef59573; bytes: 1061 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 SEEK 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3dde29eb926a6612fa97e7f746f900e54b8446e1dc404ca9b7f582b9a338b493; bytes: 6139 --- BEGIN ORIGINAL BYTES --- Capsize
# @capsizecss/unpack Unpack the capsize font metrics directly from a font file. ```bash npm install @capsizecss/unpack ``` - [Usage](#usage) - [fromBuffer](#frombuffer) - [fromBlob](#fromblob) - [fromUrl](#fromurl) - [fromFile](#fromfile) - [Options](#options) - [postscriptName](#postscriptname) - [Font Metrics](#font-metrics) ## Usage ### `fromBuffer` Takes a buffer and returns the resolved [font metrics](#font-metrics). ```ts import { fromBuffer } from '@capsizecss/unpack'; const metrics = await fromBuffer(buffer); ``` ### `fromBlob` Takes a file blob and returns the resolved [font metrics](#font-metrics). ```ts import { fromBlob } from '@capsizecss/unpack'; const metrics = await fromBlob(file); ``` ### `fromUrl` Takes a url string and returns the resolved [font metrics](#font-metrics). ```ts import { fromUrl } from '@capsizecss/unpack'; const metrics = await fromUrl(url); ``` ### `fromFile` Takes a file path string and returns the resolved [font metrics](#font-metrics). ```ts import { fromFile } from '@capsizecss/unpack/fs'; const metrics = await fromFile(filePath); ``` ## Options All of the above APIs accept an optional second parameter with the following options: #### `postscriptName` Capsize can extract the metrics for a single font from a TrueType Collection (TTC) file by providing the `postscriptName`. ```ts import { fromFile } from '@capsizecss/unpack'; const metrics = await fromFile('AvenirNext.ttc', { postscriptName: 'AvenirNext-Bold', }); ``` ## Font metrics The font metrics object returned contains the following properties: | Property | Type | Description | | -------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | familyName | string | The font’s family name as authored by font creator | | fullName | string | The font’s full name as authored by font creator | | postscriptName | string | The font’s unique PostScript name as authored by font creator | | category | string | The style of the font: serif, sans-serif, monospace, display, or handwriting. | | capHeight | number | The height of capital letters above the baseline | | ascent | number | The height of the ascenders above baseline | | descent | number | The descent of the descenders below baseline | | lineGap | number | The amount of space included between lines | | unitsPerEm | number | The size of the font’s internal coordinate grid | | xHeight | number | The height of the main body of lower case letters above baseline | | xWidthAvg | number | The average width of character glyphs in the font for the selected unicode subset. Calculated [based on character frequencies in written text], falling back to the built in `xAvgCharWidth` from the OS/2 table. | | subsets | {
[subset]: { xWidthAvg: number }
} | A lookup of the `xWidthAvg` metric by subset (see [supported subsets]) | [based on character frequencies in written text]: ../metrics/README.md#how-xwidthavg-is-calculated [supported subsets]: ../metrics/README.md#subsets ## Thanks - [Devon Govett](https://github.com/devongovett) for creating [Fontkit](https://github.com/foliojs/fontkit). A [fork of Fontkit](https://github.com/delucis/fontkitten) does all the heavy lifting of extracting the font metrics under the covers. - [SEEK](https://au.seek.com) for giving us the space to do interesting work. ## License MIT. --- END ORIGINAL BYTES --- ================================================================ @clack/core@1.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@clack/core/-/core-1.5.1.tgz Locked integrity: sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3e873d2aba8b76bcbe151ba558506ca6bfa8437db9323fa87086c5a7fcf10f42; bytes: 1123 --- BEGIN ORIGINAL BYTES --- MIT License MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team) 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. --- END ORIGINAL BYTES --- ================================================================ @clack/prompts@1.8.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@clack/prompts/-/prompts-1.8.1.tgz Locked integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3e873d2aba8b76bcbe151ba558506ca6bfa8437db9323fa87086c5a7fcf10f42; bytes: 1123 --- BEGIN ORIGINAL BYTES --- MIT License MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team) 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/core@1.11.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz Locked integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/core@1.11.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz Locked integrity: sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/core@2.0.0-beta.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz Locked integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/runtime@1.11.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz Locked integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/runtime@1.11.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz Locked integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/runtime@2.0.0-beta.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz Locked integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/wasi-threads@1.2.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz Locked integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/wasi-threads@1.2.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz Locked integrity: sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @emnapi/wasi-threads@2.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz Locked integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @encore-os/tokens@0.9.0 Declared package license: UNLICENSED (first-party proprietary; declared by the owner 2026-10-02) Published archive: https://registry.npmjs.org/@encore-os/tokens/-/tokens-0.9.0.tgz Locked integrity: sha512-xI2cfi7OSuEvR1s8LRy7Y9eKySEnyAzem818ZcbAE7eZ1QgVxkTQBoidGDIm39669EOu7gcLfgDNeLiM8q9TsA== Unresolved: No collection gap detected; not an independent legal determination ================================================================ @esbuild/aix-ppc64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz Locked integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/android-arm@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz Locked integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/android-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz Locked integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/android-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz Locked integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/darwin-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz Locked integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/darwin-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz Locked integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/freebsd-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz Locked integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/freebsd-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz Locked integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-arm@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz Locked integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz Locked integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-ia32@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz Locked integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-loong64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz Locked integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-mips64el@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz Locked integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-ppc64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz Locked integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-riscv64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz Locked integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-s390x@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz Locked integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/linux-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz Locked integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/netbsd-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz Locked integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/netbsd-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz Locked integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/openbsd-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz Locked integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/openbsd-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz Locked integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/openharmony-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz Locked integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/sunos-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz Locked integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/win32-arm64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz Locked integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/win32-ia32@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz Locked integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @esbuild/win32-x64@0.28.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz Locked integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @fontsource-variable/inter@5.3.0 Declared package license: OFL-1.1 Published archive: https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.3.0.tgz Locked integrity: sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345; bytes: 4477 --- BEGIN ORIGINAL BYTES --- Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL ----------------------------------------------------------- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ----------------------------------------------------------- PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. "Reserved Font Name" refers to any names specified as such after the copyright statement(s). "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. TERMINATION This license becomes null and void if any of the above conditions are not met. DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2c8edceaa317baf1e806bca5b97580aeaaa258036a7a5394207209b221116238; bytes: 2609 --- BEGIN ORIGINAL BYTES --- # Fontsource Inter [![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/inter?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/inter) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/inter)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/inter)](https://github.com/fontsource/fontsource) The CSS and web font files to easily self-host the “Inter” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/inter) to view more details on this package. ## Quick Installation Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). ```javascript npm install @fontsource-variable/inter ``` Within your app entry file or site component, import it in. ```javascript import "@fontsource-variable/inter"; // Defaults to wght axis import "@fontsource-variable/inter/wght.css"; // Specify axis import "@fontsource-variable/inter/wght-italic.css"; // Specify axis and style ``` Supported variables: - Weights: `[100,200,300,400,500,600,700,800,900]` - Styles: `[italic,normal]` - Subsets: `[cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese]` - Axes: `[opsz,wght]` > Note: `italic` may not be supported by all fonts. To learn more about what axes and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/inter). Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. ```css body { font-family: "Inter Variable"; } ``` ## Licensing Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) [OFL-1.1](https://openfontlicense.org) ## Other Notes Font version (provided by source): `v20`. If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). --- END ORIGINAL BYTES --- ================================================================ @fontsource-variable/jetbrains-mono@5.3.0 Declared package license: OFL-1.1 Published archive: https://registry.npmjs.org/@fontsource-variable/jetbrains-mono/-/jetbrains-mono-5.3.0.tgz Locked integrity: sha512-F32xpS2NsGYoQi2ADSkKTgpJj7ozajsGgDJ8woTnqjmIB+dxDIqImjl4pXZVEExu8UFZ2ndhmX18EBS/hdz3Lw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 403581b69dac5cff4079205e01c6b467e56af449ecbd7247693ddb1baafa005b; bytes: 4524 --- BEGIN ORIGINAL BYTES --- Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL ----------------------------------------------------------- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ----------------------------------------------------------- PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. "Reserved Font Name" refers to any names specified as such after the copyright statement(s). "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. TERMINATION This license becomes null and void if any of the above conditions are not met. DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 395bc2d3a87559fa90d93bdefa89b8ce918c9daf37b4ff9d46d7cb41fd0e7a1a; bytes: 2754 --- BEGIN ORIGINAL BYTES --- # Fontsource JetBrains Mono [![npm (scoped)](https://img.shields.io/npm/v/@fontsource-variable/jetbrains-mono?color=brightgreen)](https://www.npmjs.com/package/@fontsource-variable/jetbrains-mono) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource-variable/jetbrains-mono)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource-variable/jetbrains-mono)](https://github.com/fontsource/fontsource) The CSS and web font files to easily self-host the “JetBrains Mono” variable font. Please visit the main [Fontsource website](https://fontsource.org/fonts/jetbrains-mono) to view more details on this package. ## Quick Installation Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). ```javascript npm install @fontsource-variable/jetbrains-mono ``` Within your app entry file or site component, import it in. ```javascript import "@fontsource-variable/jetbrains-mono"; // Defaults to wght axis import "@fontsource-variable/jetbrains-mono/wght.css"; // Specify axis import "@fontsource-variable/jetbrains-mono/wght-italic.css"; // Specify axis and style ``` Supported variables: - Weights: `[100,200,300,400,500,600,700,800]` - Styles: `[italic,normal]` - Subsets: `[cyrillic,cyrillic-ext,greek,latin,latin-ext,vietnamese]` - Axes: `[wght]` > Note: `italic` may not be supported by all fonts. To learn more about what axes and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/jetbrains-mono). Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. ```css body { font-family: "JetBrains Mono Variable"; } ``` ## Licensing Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) [OFL-1.1](https://openfontlicense.org) ## Other Notes Font version (provided by source): `v24`. If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). --- END ORIGINAL BYTES --- ================================================================ @fontsource/inter@5.3.0 Declared package license: OFL-1.1 Published archive: https://registry.npmjs.org/@fontsource/inter/-/inter-5.3.0.tgz Locked integrity: sha512-RofMylZmjlJEfELXeNHFWBRcSs75rGU/6bV2S2jfnvv/3rPXPGe0LgUJTklcHZ9lM4OZmAVFhcJPnACfb91A3g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345; bytes: 4477 --- BEGIN ORIGINAL BYTES --- Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL ----------------------------------------------------------- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ----------------------------------------------------------- PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. "Reserved Font Name" refers to any names specified as such after the copyright statement(s). "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. TERMINATION This license becomes null and void if any of the above conditions are not met. DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 385283b3e59c653c34bb04f4ac494913f4a5b8034f2b5e564d41656b47b6c1e9; bytes: 2503 --- BEGIN ORIGINAL BYTES --- # Fontsource Inter [![npm (scoped)](https://img.shields.io/npm/v/@fontsource/inter?color=brightgreen)](https://www.npmjs.com/package/@fontsource/inter) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/inter)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/inter)](https://github.com/fontsource/fontsource) The CSS and web font files to easily self-host the “Inter” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/inter) to view more details on this package. ## Quick Installation Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction). ```javascript npm install @fontsource/inter ``` Within your app entry file or site component, import it in. ```javascript import "@fontsource/inter"; // Defaults to weight 400 import "@fontsource/inter/400.css"; // Specify weight import "@fontsource/inter/400-italic.css"; // Specify weight and style ``` Supported variables: - Weights: `[100,200,300,400,500,600,700,800,900]` - Styles: `[italic,normal]` - Subsets: `[cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese]` > Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/inter). Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. ```css body { font-family: "Inter"; } ``` ## Licensing Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0. Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) [OFL-1.1](https://openfontlicense.org) ## Other Notes Font version (provided by source): `v20`. If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues). --- END ORIGINAL BYTES --- ================================================================ @img/colour@1.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz Locked integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: e2eaa4603c14cb26f301e88648c12a853fa3f0f5da6d4b0972958c666e7f2ab8; bytes: 4433 --- BEGIN ORIGINAL BYTES --- # Licensing ## color Copyright (c) 2012 Heather Arthur 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. ## color-convert Copyright (c) 2011-2016 Heather Arthur . Copyright (c) 2016-2021 Josh Junon . 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. ## color-string Copyright (c) 2011 Heather Arthur 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. ## color-name The MIT License (MIT) Copyright (c) 2015 Dmitry Ivanov 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: be7edf3bc6467f761168cef3bb2b9b3def2532c98a86249848376ea00338ad1d; bytes: 562 --- BEGIN ORIGINAL BYTES --- # `@img/colour` The latest version of the [color](https://www.npmjs.com/package/color) package is now ESM-only, however some JavaScript runtimes do not yet support this, which includes versions of Node.js prior to 20.19.0. This package converts the `color` package and its dependencies, all of which are MIT-licensed, to CommonJS. - [color](https://www.npmjs.com/package/color) - [color-convert](https://www.npmjs.com/package/color-convert) - [color-string](https://www.npmjs.com/package/color-string) - [color-name](https://www.npmjs.com/package/color-name) --- END ORIGINAL BYTES --- ================================================================ @img/sharp-darwin-arm64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz Locked integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: ef448bf7ac130f0c6b51dbfbadc617b046a200d082de8648ab090784c5db0c3d; bytes: 699 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-darwin-arm64` Prebuilt sharp for use with macOS 64-bit ARM. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-darwin-x64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz Locked integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 1b3dbcb9a61421084e5cadfdf2838a393d5488f53461cbc83cab62b351076c36; bytes: 690 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-darwin-x64` Prebuilt sharp for use with macOS x64. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-freebsd-wasm32@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz Locked integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 0df583dbc268077130253f0ec2e094e350e5e9d428b9251d68e76196872285b4; bytes: 706 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-freebsd-wasm32` Prebuilt sharp for use with FreeBSD (WebAssembly). ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-darwin-arm64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz Locked integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: 5dd6d3c034f925604681d49b7bedc71bd08dcf3d0cfc6d16b9f0569497d700dc; bytes: 4333 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-darwin-arm64` Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-darwin-x64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz Locked integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: 986086beb25bd1b05712a2a0689a64f2e422ae5d7f0d9e46dad44fba3f9a13ff; bytes: 4324 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-darwin-x64` Prebuilt libvips and dependencies for use with sharp on macOS x64. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-arm@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz Locked integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: d2fbff9f36a84a34bd77255a844ae61de18688b15e0b7bd0a41c0c30391660d7; bytes: 4338 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-arm` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) 32-bit ARM. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-arm64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz Locked integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: bdf6919b0ffd7dcd31907ca49f520f26e8543825e0358f51b9036fed428eddb6; bytes: 4340 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-arm64` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) 64-bit ARM. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-ppc64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz Locked integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: 6fb8b7207acc691c55856a65207571da154ee155b163992f2e7d88620ca55194; bytes: 4337 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-ppc64` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) ppc64le. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-riscv64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz Locked integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: cd5163af4e88135a82f0cd0b94bbd331e0eff4e5e47d8b5c0d97a55b0dfccfcd; bytes: 4345 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-riscv64` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) RISC-V 64-bit. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-s390x@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz Locked integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: 517dabfb009423898c6aa79a632b7b2110857e0e5c4889c5c1cf85c239270cf3; bytes: 4335 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-s390x` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) s390x. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linux-x64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz Locked integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: b4fb1a9f5909cfd58edb4177c2028ce3033cf8651aef740a554c1dc58b3c5ee3; bytes: 4331 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linux-x64` Prebuilt libvips and dependencies for use with sharp on Linux (glibc) x64. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linuxmusl-arm64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz Locked integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: 1671df5758d1976c073b74d853d5267b286cac16a6492e912afb90b1e3d81be5; bytes: 4343 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linuxmusl-arm64` Prebuilt libvips and dependencies for use with sharp on Linux (musl) 64-bit ARM. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-libvips-linuxmusl-x64@1.3.4 Declared package license: LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz Locked integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg== Unresolved: bundled-library-obligations-require-owner-or-counsel-review; upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier LGPL-3.0-or-later. Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original licensing-readme: package/README.md SHA-256: df733be80a44f45878f212d7f0859ffd18fbdd8ed988b5226663487732aa1c1c; bytes: 4334 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-libvips-linuxmusl-x64` Prebuilt libvips and dependencies for use with sharp on Linux (musl) x64. ## Licensing This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-arm@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz Locked integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: f71dbcc9dc73279a7c47d851153f5be343eabb6d152ee7e2cd3cd1c1d276c3bd; bytes: 706 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-arm` Prebuilt sharp for use with Linux (glibc) ARM (32-bit). ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-arm64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz Locked integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: ccc883ec303dac4dbe86e7e255d86c62263323aec600978761e57353c55cd63e; bytes: 706 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-arm64` Prebuilt sharp for use with Linux (glibc) 64-bit ARM. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-ppc64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz Locked integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: bdafeda99223a1086e9bb39755a20d221d3a1f11086186dac49a96aed00c0af1; bytes: 701 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-ppc64` Prebuilt sharp for use with Linux (glibc) ppc64. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-riscv64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz Locked integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 876f8a4847f39f3eab8d0ae03c594d098d59bc1f887ff42778d7da1034eabe94; bytes: 711 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-riscv64` Prebuilt sharp for use with Linux (glibc) RISC-V 64-bit. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-s390x@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz Locked integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3b381a4b06f57c22ef4b8320f0095d1c379e971d1c657b7ce26b4a71230f6043; bytes: 701 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-s390x` Prebuilt sharp for use with Linux (glibc) s390x. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linux-x64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz Locked integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 8f8f907a15368c3ab82e675dde406263c321e1d14533285f6827da72b2bb7f55; bytes: 697 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linux-x64` Prebuilt sharp for use with Linux (glibc) x64. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linuxmusl-arm64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz Locked integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: dd8ec01c9950cf6996d1b6baea0036aeb48c2f7f53f8dd52d92dde4d8ce9d074; bytes: 709 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linuxmusl-arm64` Prebuilt sharp for use with Linux (musl) 64-bit ARM. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-linuxmusl-x64@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz Locked integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 711a113a4feee4312861aaa9d0bacb8693a37ff1614861f21302a1e500e63744; bytes: 700 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-linuxmusl-x64` Prebuilt sharp for use with Linux (musl) x64. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-wasm32@0.35.5 Declared package license: Apache-2.0 AND LGPL-3.0-or-later AND MIT Published archive: https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz Locked integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ== Unresolved: bundled-library-obligations-require-owner-or-counsel-review Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 9d7a84ade91e8e50f5dfc303fb53e580e806f6f89bde804e84a01c1b8853fff5; bytes: 3740 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-wasm32` Prebuilt sharp for use with WebAssembly. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cgif | MIT License | | emscripten | [MIT License](https://github.com/emscripten-core/emscripten/blob/main/LICENSE) | | expat | MIT License | | glib | LGPLv3 | | highway | BSD 3-Clause | | lcms | MIT License | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | resvg | MIT License | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: 36e4e862aac3ac2dd037ff116627e0106ac67688b368282981962b920d8221d5; bytes: 394 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "cgif": "0.5.4", "emscripten": "6.0.10", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "glib": "2.90.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "png": "1.6.58", "resvg": "0.48.1", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-webcontainers-wasm32@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz Locked integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 4def47c6dfd9ff59a4aa8d7320a8cc5fb6913911d225feff7cd260779c1fc92f; bytes: 718 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-webcontainers-wasm32` Prebuilt sharp for use with WebContainers (WebAssembly). ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ @img/sharp-win32-arm64@0.35.5 Declared package license: Apache-2.0 AND LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz Locked integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q== Unresolved: bundled-library-obligations-require-owner-or-counsel-review Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original license: package/LICENSE SHA-256: dc1f5d2d43c5531dfe0acaf4e950ea5dbe3e61e1850cf0e983bda7efc10d6693; bytes: 10464 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 64357d4f111b6add13806616b45c0a760afdf314b4f6e01f7fb6fc6894562df9; bytes: 4922 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-win32-arm64` Prebuilt sharp for use with Windows 64-bit ARM. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-win32-ia32@0.35.5 Declared package license: Apache-2.0 AND LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz Locked integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A== Unresolved: bundled-library-obligations-require-owner-or-counsel-review Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original license: package/LICENSE SHA-256: dc1f5d2d43c5531dfe0acaf4e950ea5dbe3e61e1850cf0e983bda7efc10d6693; bytes: 10464 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 9bc1b102b966e442800ecbba245d0145778fb74acfbfca17a332a2e12dba85c8; bytes: 4927 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-win32-ia32` Prebuilt sharp for use with Windows x86 (deprecated). ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @img/sharp-win32-x64@0.35.5 Declared package license: Apache-2.0 AND LGPL-3.0-or-later Published archive: https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz Locked integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg== Unresolved: bundled-library-obligations-require-owner-or-counsel-review Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original license: package/LICENSE SHA-256: dc1f5d2d43c5531dfe0acaf4e950ea5dbe3e61e1850cf0e983bda7efc10d6693; bytes: 10464 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3d083ada5ebafe1e6c227daa7b061d4254b61df4a3901c359ffdeac817ce5866; bytes: 4913 --- BEGIN ORIGINAL BYTES --- # `@img/sharp-win32-x64` Prebuilt sharp for use with Windows x64. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. This software contains third-party libraries used under the terms of the following licenses: | Library | Used under the terms of | |---------------|-----------------------------------------------------------------------------------------------------------| | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) | | cairo | Mozilla Public License 1.1 | | cgif | MIT License | | expat | MIT License | | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) | | freetype | [freetype License](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) | | fribidi | LGPLv3 | | glib | LGPLv3 | | harfbuzz | MIT License | | highway | BSD 3-Clause | | lcms | MIT License | | libarchive | BSD 2-Clause | | libexif | LGPLv3 | | libffi | MIT License | | libheif | LGPLv3 | | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) | | libnsgif | MIT License | | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) | | librsvg | LGPLv3 | | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) | | libultrahdr | MIT License | | libvips | LGPLv3 | | libwebp | New BSD License | | libxml2 | MIT License | | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) | | pango | LGPLv3 | | pixman | MIT License | | proxy-libintl | LGPLv3 | | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) | Use of libraries under the terms of the LGPLv3 is via the "any later version" clause of the LGPLv2 or LGPLv2.1. Please report any errors or omissions via https://github.com/lovell/sharp-libvips/issues/new --- END ORIGINAL BYTES --- --- Original bundled-versions: package/versions.json SHA-256: e2611d5d854815a8b33c8a3d2ec649511a9596ccf16844e8eae7cf81e79881c4; bytes: 596 --- BEGIN ORIGINAL BYTES --- { "aom": "3.15.1", "archive": "3.8.9", "cairo": "1.18.6", "cgif": "0.5.4", "exif": "0.6.26", "expat": "2.8.5", "ffi": "3.8.0", "fontconfig": "2.18.3", "freetype": "2.14.3", "fribidi": "1.0.17", "glib": "2.90.0", "harfbuzz": "14.5.0", "heif": "1.23.5", "highway": "1.4.0", "imagequant": "2.4.1", "lcms": "2.19.1", "mozjpeg": "0826579", "pango": "1.58.2", "pixman": "0.46.4", "png": "1.6.58", "proxy-libintl": "0.5", "rsvg": "2.63.2", "tiff": "4.7.2", "uhdr": "2.0.2", "vips": "8.18.7", "webp": "1.6.0", "xml2": "2.15.4", "zlib-ng": "2.3.3" } --- END ORIGINAL BYTES --- ================================================================ @jridgewell/gen-mapping@0.3.13 Declared package license: MIT Published archive: https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz Locked integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 769d154fbde32a915af110b1123650bc79f4cbe675acc66e005265bf069c6c6c; bytes: 1080 --- BEGIN ORIGINAL BYTES --- Copyright 2024 Justin Ridgewell 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. --- END ORIGINAL BYTES --- ================================================================ @jridgewell/remapping@2.3.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz Locked integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 769d154fbde32a915af110b1123650bc79f4cbe675acc66e005265bf069c6c6c; bytes: 1080 --- BEGIN ORIGINAL BYTES --- Copyright 2024 Justin Ridgewell 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. --- END ORIGINAL BYTES --- ================================================================ @jridgewell/resolve-uri@3.1.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz Locked integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: b8778b155bfde5a28b023a558753c0fa058a52bb9de35c343c250be1bbcdedab; bytes: 1079 --- BEGIN ORIGINAL BYTES --- Copyright 2019 Justin Ridgewell 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. --- END ORIGINAL BYTES --- ================================================================ @jridgewell/sourcemap-codec@1.6.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz Locked integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 769d154fbde32a915af110b1123650bc79f4cbe675acc66e005265bf069c6c6c; bytes: 1080 --- BEGIN ORIGINAL BYTES --- Copyright 2024 Justin Ridgewell 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 50e5282b46bafe5e2c87a0f224a86876067694f0434c5b27c0ea2d5bbceba5d7; bytes: 10051 --- BEGIN ORIGINAL BYTES --- # @jridgewell/sourcemap-codec Encode/decode the `mappings` property of a [sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). ## Why? Sourcemaps are difficult to generate and manipulate, because the `mappings` property – the part that actually links the generated code back to the original source – is encoded using an obscure method called [Variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity). On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap. This package makes the process slightly easier. ## Installation ```bash npm install @jridgewell/sourcemap-codec ``` ## Usage ```js import { encode, decode } from '@jridgewell/sourcemap-codec'; var decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); assert.deepEqual( decoded, [ // the first line (of the generated code) has no mappings, // as shown by the starting semi-colon (which separates lines) [], // the second line contains four (comma-separated) segments [ // segments are encoded as you'd expect: // [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ] // i.e. the first segment begins at column 2, and maps back to the second column // of the second line (both zero-based) of the 0th source, and uses the 0th // name in the `map.names` array [ 2, 0, 2, 2, 0 ], // the remaining segments are 4-length rather than 5-length, // because they don't map a name [ 4, 0, 2, 4 ], [ 6, 0, 2, 5 ], [ 7, 0, 2, 7 ] ], // the final line contains two segments [ [ 2, 1, 10, 19 ], [ 12, 1, 11, 20 ] ] ]); var encoded = encode( decoded ); assert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); ``` ## Benchmarks ``` node v20.10.0 amp.js.map - 45120 segments Decode Memory Usage: local code 5815135 bytes @jridgewell/sourcemap-codec 1.4.15 5868160 bytes sourcemap-codec 5492584 bytes source-map-0.6.1 13569984 bytes source-map-0.8.0 6390584 bytes chrome dev tools 8011136 bytes Smallest memory usage is sourcemap-codec Decode speed: decode: local code x 492 ops/sec ±1.22% (90 runs sampled) decode: @jridgewell/sourcemap-codec 1.4.15 x 499 ops/sec ±1.16% (89 runs sampled) decode: sourcemap-codec x 376 ops/sec ±1.66% (89 runs sampled) decode: source-map-0.6.1 x 34.99 ops/sec ±0.94% (48 runs sampled) decode: source-map-0.8.0 x 351 ops/sec ±0.07% (95 runs sampled) chrome dev tools x 165 ops/sec ±0.91% (86 runs sampled) Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 Encode Memory Usage: local code 444248 bytes @jridgewell/sourcemap-codec 1.4.15 623024 bytes sourcemap-codec 8696280 bytes source-map-0.6.1 8745176 bytes source-map-0.8.0 8736624 bytes Smallest memory usage is local code Encode speed: encode: local code x 796 ops/sec ±0.11% (97 runs sampled) encode: @jridgewell/sourcemap-codec 1.4.15 x 795 ops/sec ±0.25% (98 runs sampled) encode: sourcemap-codec x 231 ops/sec ±0.83% (86 runs sampled) encode: source-map-0.6.1 x 166 ops/sec ±0.57% (86 runs sampled) encode: source-map-0.8.0 x 203 ops/sec ±0.45% (88 runs sampled) Fastest is encode: local code,encode: @jridgewell/sourcemap-codec 1.4.15 *** babel.min.js.map - 347793 segments Decode Memory Usage: local code 35424960 bytes @jridgewell/sourcemap-codec 1.4.15 35424696 bytes sourcemap-codec 36033464 bytes source-map-0.6.1 62253704 bytes source-map-0.8.0 43843920 bytes chrome dev tools 45111400 bytes Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 Decode speed: decode: local code x 38.18 ops/sec ±5.44% (52 runs sampled) decode: @jridgewell/sourcemap-codec 1.4.15 x 38.36 ops/sec ±5.02% (52 runs sampled) decode: sourcemap-codec x 34.05 ops/sec ±4.45% (47 runs sampled) decode: source-map-0.6.1 x 4.31 ops/sec ±2.76% (15 runs sampled) decode: source-map-0.8.0 x 55.60 ops/sec ±0.13% (73 runs sampled) chrome dev tools x 16.94 ops/sec ±3.78% (46 runs sampled) Fastest is decode: source-map-0.8.0 Encode Memory Usage: local code 2606016 bytes @jridgewell/sourcemap-codec 1.4.15 2626440 bytes sourcemap-codec 21152576 bytes source-map-0.6.1 25023928 bytes source-map-0.8.0 25256448 bytes Smallest memory usage is local code Encode speed: encode: local code x 127 ops/sec ±0.18% (83 runs sampled) encode: @jridgewell/sourcemap-codec 1.4.15 x 128 ops/sec ±0.26% (83 runs sampled) encode: sourcemap-codec x 29.31 ops/sec ±2.55% (53 runs sampled) encode: source-map-0.6.1 x 18.85 ops/sec ±3.19% (36 runs sampled) encode: source-map-0.8.0 x 19.34 ops/sec ±1.97% (36 runs sampled) Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 *** preact.js.map - 1992 segments Decode Memory Usage: local code 261696 bytes @jridgewell/sourcemap-codec 1.4.15 244296 bytes sourcemap-codec 302816 bytes source-map-0.6.1 939176 bytes source-map-0.8.0 336 bytes chrome dev tools 587368 bytes Smallest memory usage is source-map-0.8.0 Decode speed: decode: local code x 17,782 ops/sec ±0.32% (97 runs sampled) decode: @jridgewell/sourcemap-codec 1.4.15 x 17,863 ops/sec ±0.40% (100 runs sampled) decode: sourcemap-codec x 12,453 ops/sec ±0.27% (101 runs sampled) decode: source-map-0.6.1 x 1,288 ops/sec ±1.05% (96 runs sampled) decode: source-map-0.8.0 x 9,289 ops/sec ±0.27% (101 runs sampled) chrome dev tools x 4,769 ops/sec ±0.18% (100 runs sampled) Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 Encode Memory Usage: local code 262944 bytes @jridgewell/sourcemap-codec 1.4.15 25544 bytes sourcemap-codec 323048 bytes source-map-0.6.1 507808 bytes source-map-0.8.0 507480 bytes Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 Encode speed: encode: local code x 24,207 ops/sec ±0.79% (95 runs sampled) encode: @jridgewell/sourcemap-codec 1.4.15 x 24,288 ops/sec ±0.48% (96 runs sampled) encode: sourcemap-codec x 6,761 ops/sec ±0.21% (100 runs sampled) encode: source-map-0.6.1 x 5,374 ops/sec ±0.17% (99 runs sampled) encode: source-map-0.8.0 x 5,633 ops/sec ±0.32% (99 runs sampled) Fastest is encode: @jridgewell/sourcemap-codec 1.4.15,encode: local code *** react.js.map - 5726 segments Decode Memory Usage: local code 678816 bytes @jridgewell/sourcemap-codec 1.4.15 678816 bytes sourcemap-codec 816400 bytes source-map-0.6.1 2288864 bytes source-map-0.8.0 721360 bytes chrome dev tools 1012512 bytes Smallest memory usage is local code Decode speed: decode: local code x 6,178 ops/sec ±0.19% (98 runs sampled) decode: @jridgewell/sourcemap-codec 1.4.15 x 6,261 ops/sec ±0.22% (100 runs sampled) decode: sourcemap-codec x 4,472 ops/sec ±0.90% (99 runs sampled) decode: source-map-0.6.1 x 449 ops/sec ±0.31% (95 runs sampled) decode: source-map-0.8.0 x 3,219 ops/sec ±0.13% (100 runs sampled) chrome dev tools x 1,743 ops/sec ±0.20% (99 runs sampled) Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 Encode Memory Usage: local code 140960 bytes @jridgewell/sourcemap-codec 1.4.15 159808 bytes sourcemap-codec 969304 bytes source-map-0.6.1 930520 bytes source-map-0.8.0 930248 bytes Smallest memory usage is local code Encode speed: encode: local code x 8,013 ops/sec ±0.19% (100 runs sampled) encode: @jridgewell/sourcemap-codec 1.4.15 x 7,989 ops/sec ±0.20% (101 runs sampled) encode: sourcemap-codec x 2,472 ops/sec ±0.21% (99 runs sampled) encode: source-map-0.6.1 x 2,200 ops/sec ±0.17% (99 runs sampled) encode: source-map-0.8.0 x 2,220 ops/sec ±0.37% (99 runs sampled) Fastest is encode: local code *** vscode.map - 2141001 segments Decode Memory Usage: local code 198955264 bytes @jridgewell/sourcemap-codec 1.4.15 199175352 bytes sourcemap-codec 199102688 bytes source-map-0.6.1 386323432 bytes source-map-0.8.0 244116432 bytes chrome dev tools 293734280 bytes Smallest memory usage is local code Decode speed: decode: local code x 3.90 ops/sec ±22.21% (15 runs sampled) decode: @jridgewell/sourcemap-codec 1.4.15 x 3.95 ops/sec ±23.53% (15 runs sampled) decode: sourcemap-codec x 3.82 ops/sec ±17.94% (14 runs sampled) decode: source-map-0.6.1 x 0.61 ops/sec ±7.81% (6 runs sampled) decode: source-map-0.8.0 x 9.54 ops/sec ±0.28% (28 runs sampled) chrome dev tools x 2.18 ops/sec ±10.58% (10 runs sampled) Fastest is decode: source-map-0.8.0 Encode Memory Usage: local code 13509880 bytes @jridgewell/sourcemap-codec 1.4.15 13537648 bytes sourcemap-codec 32540104 bytes source-map-0.6.1 127531040 bytes source-map-0.8.0 127535312 bytes Smallest memory usage is local code Encode speed: encode: local code x 20.10 ops/sec ±0.19% (38 runs sampled) encode: @jridgewell/sourcemap-codec 1.4.15 x 20.26 ops/sec ±0.32% (38 runs sampled) encode: sourcemap-codec x 5.44 ops/sec ±1.64% (18 runs sampled) encode: source-map-0.6.1 x 2.30 ops/sec ±4.79% (10 runs sampled) encode: source-map-0.8.0 x 2.46 ops/sec ±6.53% (10 runs sampled) Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 ``` # License MIT --- END ORIGINAL BYTES --- ================================================================ @jridgewell/trace-mapping@0.3.31 Declared package license: MIT Published archive: https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz Locked integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 769d154fbde32a915af110b1123650bc79f4cbe675acc66e005265bf069c6c6c; bytes: 1080 --- BEGIN ORIGINAL BYTES --- Copyright 2024 Justin Ridgewell 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. --- END ORIGINAL BYTES --- ================================================================ @napi-rs/wasm-runtime@1.2.4 Declared package license: MIT Published archive: https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.4.tgz Locked integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @napi-rs/wasm-runtime@1.2.6 Declared package license: MIT Published archive: https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz Locked integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @oslojs/encoding@1.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz Locked integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 37765ef8cf5691a06a6ee5fa3ad0349e25a54ab3a9e370033add44a01b2e4396; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024 pilcrowOnPaper 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. --- END ORIGINAL BYTES --- ================================================================ @oxc-project/types@0.156.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz Locked integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 95ced5ecf1133fbf41d409b5555c86c344f83f3b019926057ddbc07cfdcc27b3; bytes: 1119 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024-present VoidZero Inc. & Contributors Copyright (c) 2023 Boshen 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. --- END ORIGINAL BYTES --- ================================================================ @resvg/resvg-js@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js/-/resvg-js-2.6.2.tgz Locked integrity: sha512-xBaJish5OeGmniDj9cW5PRa/PtmuVU3ziqrbr5xJj901ZDN4TosrVaNZpEiLZAxdfnhAe7uQ7QFWfjPe9d9K2Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4b89d4518bd135ab4ee154a7bce722246b57a98c3d7efc1a09409898160c2bd1; bytes: 16724 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 26e1e747532706012aa7a870a2aa0ab5d427bc82658e7c8dbf496e99a6574361; bytes: 12590 --- BEGIN ORIGINAL BYTES --- # resvg-js GitHub CI Status @resvg/resvg-js npm version @resvg/resvg-js downloads [![Rust 1.65+](https://img.shields.io/badge/rust-1.65+-orange.svg)](https://www.rust-lang.org) > resvg-js is a high-performance SVG renderer and toolkit, powered by Rust based [resvg](https://github.com/RazrFalcon/resvg/), with Node.js backend using [napi-rs](https://github.com/napi-rs/napi-rs), also a pure WebAssembly backend. Please use all lowercase `resvg-js` when referencing project names. **💖 🙏[Sponsoring me](#sponsor)** > Your sponsorship means a lot to me. It will help me sustain my projects actively and make more of my ideas come true. Much appreciated! ## Features - Fast, safe and zero dependencies, with correct output. - Convert SVG to PNG, includes cropping, scaling and setting the background color. - Support system fonts and custom fonts in SVG text. - `v2`: Gets the width and height of the SVG and the generated PNG. - `v2`: Support for outputting simplified SVG strings, such as converting shapes(rect, circle, etc) to ``. - `v2`: Support WebAssembly. - `v2`: Support to get SVG bounding box and crop according to bounding box. - `v2`: Support for loading images of external links in ``. - No need for node-gyp and postinstall, the `.node` file has been compiled for you. - Cross-platform support, including [Apple M Chips](https://www.apple.com/newsroom/2020/11/apple-unleashes-m1/). - Support for running as native addons in Deno. ## Sponsor Alipay(支付宝) ## Installation ### Node.js ```shell npm i @resvg/resvg-js ``` ### Browser(Wasm) ```html ``` ## Docs - Node.js see [index.d.ts](./index.d.ts) - Wasm see [wasm/index.d.ts](./wasm/index.d.ts) ## Example ### [Node.js Example](example/index.js) This example will load Source Han Serif, and then render the SVG to PNG. ```shell node example/index.js Loaded 1 font faces in 0ms. Font './example/SourceHanSerifCN-Light-subset.ttf':0 found in 0.006ms. ✨ Done in 55.65491008758545 ms ``` ### [Deno Example](example/index-deno.js) ```shell deno run --unstable --allow-read --allow-write --allow-ffi example/index-deno.js [2022-11-16T15:03:29Z DEBUG resvg_js::fonts] Loaded 1 font faces in 0.067ms. [2022-11-16T15:03:29Z DEBUG resvg_js::fonts] Font './example/SourceHanSerifCN-Light-subset.ttf':0 found in 0.001ms. Original SVG Size: 1324 x 687 Output PNG Size : 1200 x 623 ✨ Done in 66 ms ``` | SVG | PNG | | ---------------------------------------- | -------------------------------------------- | | | | ## Usage ### Node.js ```js const { promises } = require('fs') const { join } = require('path') const { Resvg } = require('@resvg/resvg-js') async function main() { const svg = await promises.readFile(join(__dirname, './text.svg')) const opts = { background: 'rgba(238, 235, 230, .9)', fitTo: { mode: 'width', value: 1200, }, font: { fontFiles: ['./example/SourceHanSerifCN-Light-subset.ttf'], // Load custom fonts. loadSystemFonts: false, // It will be faster to disable loading system fonts. // defaultFontFamily: 'Source Han Serif CN Light', // You can omit this. }, } const resvg = new Resvg(svg, opts) const pngData = resvg.render() const pngBuffer = pngData.asPng() console.info('Original SVG Size:', `${resvg.width} x ${resvg.height}`) console.info('Output PNG Size :', `${pngData.width} x ${pngData.height}`) await promises.writeFile(join(__dirname, './text-out.png'), pngBuffer) } main() ``` ### Bun Starting with [Bun 0.8.1](https://github.com/oven-sh/bun/issues/172#issuecomment-1692930718), resvg-js can be run directly in Bun without any modification to the JS files, and is fully compatible with the syntax in Node.js. ```shell bun example/index.js ``` ### Deno Starting with [Deno 1.26.1](https://github.com/denoland/deno/releases/tag/v1.26.1), there is support for running Native Addons directly from Node.js. This allows for performance that is close to that found in Node.js. ```shell deno run --unstable --allow-read --allow-write --allow-ffi example/index-deno.js ``` ```js import * as path from 'https://deno.land/std@0.159.0/path/mod.ts' import { Resvg } from 'npm:@resvg/resvg-js' const __dirname = path.dirname(path.fromFileUrl(import.meta.url)) const svg = await Deno.readFile(path.join(__dirname, './text.svg')) const opts = { fitTo: { mode: 'width', value: 1200, }, } const t = performance.now() const resvg = new Resvg(svg, opts) const pngData = resvg.render() const pngBuffer = pngData.asPng() console.info('Original SVG Size:', `${resvg.width} x ${resvg.height}`) console.info('Output PNG Size :', `${pngData.width} x ${pngData.height}`) console.info('✨ Done in', performance.now() - t, 'ms') await Deno.writeFile(path.join(__dirname, './text-out-deno.png'), pngBuffer) ``` ### WebAssembly This package also ships a pure WebAssembly artifact built with `wasm-bindgen` to run in browsers. #### Browser ```html ``` See [playground](wasm/index.html), it is also possible to [call Wasm in Node.js](example/wasm-node.js), but it is slower. ## Sample Benchmark ```shell npm i benny@3.x sharp@0.x @types/sharp svg2img@0.x npm run bench ``` ```shell Running "resize width" suite... resvg-js(Rust): 12 ops/s sharp: 9 ops/s skr-canvas(Rust): 7 ops/s svg2img(canvg and node-canvas): 6 ops/s ``` ## Support matrix | | Node.js 12 | Node.js 14 | Node.js 16 | Node.js 18 | Node.js 20 | npm | | ---------------- | ---------- | ---------- | ---------- | ---------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Windows x64 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-win32-x64-msvc.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-win32-x64-msvc) | | Windows x32 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-win32-ia32-msvc.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-win32-ia32-msvc) | | Windows arm64 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-win32-arm64-msvc.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-win32-arm64-msvc) | | macOS x64 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-darwin-x64.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-darwin-x64) | | macOS arm64(M1) | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-darwin-arm64.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-darwin-arm64) | | Linux x64 gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-linux-x64-gnu.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-linux-x64-gnu) | | Linux x64 musl | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-linux-x64-musl.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-linux-x64-musl) | | Linux arm gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-linux-arm-gnueabihf.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm-gnueabihf) | | Linux arm64 gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-linux-arm64-gnu.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm64-gnu) | | Linux arm64 musl | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-linux-arm64-musl.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm64-musl) | | Android arm64 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm64.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm64) | | Android armv7 | ✓ | ✓ | ✓ | ✓ | ✓ | [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm-eabi.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm-eabi) | ## Test or Contributing - Install latest `Rust` - Install `Node.js@10+` which fully supported `Node-API` - Install `wasm-pack` ```bash curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh ``` Normally `wasm-pack` will install `wasm-bindgen` automatically, but if the installation [fails due to network reasons](https://github.com/rustwasm/wasm-pack-template/issues/44#issuecomment-521657516), please try to install it manually. ```bash cargo install wasm-bindgen-cli ``` On computers with Apple M chips, the following error message may appear: > Error: failed to download from https://github.com/WebAssembly/binaryen/releases/download/version_90/binaryen-version_90-x86_64-apple-darwin.tar.gz Please install binaryen manually: ```bash brew install binaryen ``` ### Build Node.js bindings ```bash npm i npm run build npm test ``` ### Build WebAssembly bindings ```bash npm i npm run build:wasm npm run test:wasm ``` ## Roadmap I will consider implementing the following features, if you happen to be interested, please feel free to discuss with me or submit a PR. - [x] Support async API - [x] Upgrade to napi-rs v2 - [x] Support WebAssembly - [x] Output usvg-simplified SVG string - [x] Support for getting SVG Bounding box - [ ] Support for generating more lossless bitmap formats, e.g. avif, webp, JPEG XL ## Release package We use GitHub actions to automatically publish npm packages. ```bash # 1.0.0 => 1.0.1 npm version patch # or 1.0.0 => 1.1.0 npm version minor ``` ## License Please use all lowercase `resvg-js` when referencing project names. [MPLv2.0](https://www.mozilla.org/en-US/MPL/) Copyright (c) 2021-present, yisibl(一丝) --- END ORIGINAL BYTES --- ================================================================ @resvg/resvg-js-android-arm-eabi@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-android-arm-eabi/-/resvg-js-android-arm-eabi-2.6.2.tgz Locked integrity: sha512-FrJibrAk6v29eabIPgcTUMPXiEz8ssrAk7TXxsiZzww9UTQ1Z5KAbFJs+Z0Ez+VZTYgnE5IQJqBcoSiMebtPHA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-android-arm64@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-android-arm64/-/resvg-js-android-arm64-2.6.2.tgz Locked integrity: sha512-VcOKezEhm2VqzXpcIJoITuvUS/fcjIw5NA/w3tjzWyzmvoCdd+QXIqy3FBGulWdClvp4g+IfUemigrkLThSjAQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-darwin-arm64@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-darwin-arm64/-/resvg-js-darwin-arm64-2.6.2.tgz Locked integrity: sha512-nmok2LnAd6nLUKI16aEB9ydMC6Lidiiq2m1nEBDR1LaaP7FGs4AJ90qDraxX+CWlVuRlvNjyYJTNv8qFjtL9+A== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-darwin-x64@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-darwin-x64/-/resvg-js-darwin-x64-2.6.2.tgz Locked integrity: sha512-GInyZLjgWDfsVT6+SHxQVRwNzV0AuA1uqGsOAW+0th56J7Nh6bHHKXHBWzUrihxMetcFDmQMAX1tZ1fZDYSRsw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-linux-arm-gnueabihf@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-linux-arm-gnueabihf/-/resvg-js-linux-arm-gnueabihf-2.6.2.tgz Locked integrity: sha512-YIV3u/R9zJbpqTTNwTZM5/ocWetDKGsro0SWp70eGEM9eV2MerWyBRZnQIgzU3YBnSBQ1RcxRZvY/UxwESfZIw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-linux-arm64-gnu@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-gnu/-/resvg-js-linux-arm64-gnu-2.6.2.tgz Locked integrity: sha512-zc2BlJSim7YR4FZDQ8OUoJg5holYzdiYMeobb9pJuGDidGL9KZUv7SbiD4E8oZogtYY42UZEap7dqkkYuA91pg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-linux-arm64-musl@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-musl/-/resvg-js-linux-arm64-musl-2.6.2.tgz Locked integrity: sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-linux-x64-gnu@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-linux-x64-gnu/-/resvg-js-linux-x64-gnu-2.6.2.tgz Locked integrity: sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-linux-x64-musl@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-linux-x64-musl/-/resvg-js-linux-x64-musl-2.6.2.tgz Locked integrity: sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-win32-arm64-msvc@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-win32-arm64-msvc/-/resvg-js-win32-arm64-msvc-2.6.2.tgz Locked integrity: sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-win32-ia32-msvc@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-win32-ia32-msvc/-/resvg-js-win32-ia32-msvc-2.6.2.tgz Locked integrity: sha512-har4aPAlvjnLcil40AC77YDIk6loMawuJwFINEM7n0pZviwMkMvjb2W5ZirsNOZY4aDbo5tLx0wNMREp5Brk+w== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @resvg/resvg-js-win32-x64-msvc@2.6.2 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/@resvg/resvg-js-win32-x64-msvc/-/resvg-js-win32-x64-msvc-2.6.2.tgz Locked integrity: sha512-ZXtYhtUr5SSaBrUDq7DiyjOFJqBVL/dOBN7N/qmi/pO0IgiWW/f/ue3nbvu9joWE5aAKDoIzy/CxsY0suwGosQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MPL-2.0. ================================================================ @rolldown/binding-android-arm-eabi@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz Locked integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-android-arm64@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz Locked integrity: sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-darwin-arm64@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz Locked integrity: sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-darwin-x64@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz Locked integrity: sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-freebsd-x64@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz Locked integrity: sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-arm-gnueabihf@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz Locked integrity: sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-arm64-gnu@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz Locked integrity: sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-arm64-musl@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz Locked integrity: sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-ppc64-gnu@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz Locked integrity: sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-s390x-gnu@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz Locked integrity: sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-x64-gnu@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz Locked integrity: sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-linux-x64-musl@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz Locked integrity: sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-openharmony-arm64@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz Locked integrity: sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-wasm32-wasi@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz Locked integrity: sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-win32-arm64-msvc@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz Locked integrity: sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/binding-win32-x64-msvc@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz Locked integrity: sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ @rolldown/pluginutils@1.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz Locked integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: e1919b3b98b8bf6c1b99fcc60a0ed46027c97ac947432e1278446c9606f50161; bytes: 1106 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026-present, rolldown/plugins repository contributors 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 4886d9da5238f5d7e44fa2558a3c8d4939e5eb212cc1a3e587472ee2b65fd3fd; bytes: 6177 --- BEGIN ORIGINAL BYTES --- # @rolldown/pluginutils [![npm](https://img.shields.io/npm/v/@rolldown/pluginutils.svg)](https://npmx.dev/package/@rolldown/pluginutils) Plugin utilities for [Rolldown](https://rolldown.rs). Includes regex helpers for plugin hook filters, composable filter expressions, and a helper for filtering out Vite-serve-only plugins. ## Install ```bash pnpm add -D @rolldown/pluginutils ``` ## Usage ```ts import { exactRegex, prefixRegex, makeIdFiltersToMatchWithQuery } from '@rolldown/pluginutils' ``` All filter helpers are also exposed via the `/filter` subpath: ```ts import { and, or, id, include } from '@rolldown/pluginutils/filter' ``` ## Regex helpers ### `exactRegex` - **Type:** `(str: string, flags?: string) => RegExp` Constructs a `RegExp` that matches the exact string specified. Useful as a plugin hook filter. ```ts import { exactRegex } from '@rolldown/pluginutils' const plugin = { name: 'plugin', resolveId: { filter: { id: exactRegex('foo') }, handler(id) {}, // only called for `foo` }, } ``` ### `prefixRegex` - **Type:** `(str: string, flags?: string) => RegExp` Constructs a `RegExp` that matches values starting with the specified prefix. ```ts import { prefixRegex } from '@rolldown/pluginutils' const plugin = { name: 'plugin', resolveId: { filter: { id: prefixRegex('foo') }, handler(id) {}, // called for IDs starting with `foo` }, } ``` ### `makeIdFiltersToMatchWithQuery` - **Type:** `(input: string | RegExp | (string | RegExp)[]) => string | RegExp | (string | RegExp)[]` Converts an id filter so that it also matches ids that include a query string. ```ts import { makeIdFiltersToMatchWithQuery } from '@rolldown/pluginutils' const plugin = { name: 'plugin', transform: { filter: { id: makeIdFiltersToMatchWithQuery(['**/*.js', /\.ts$/]) }, // Matches: // foo.js, foo.js?foo, foo.txt?foo.js, // foo.ts, foo.ts?foo, foo.txt?foo.ts handler(code, id) {}, }, } ``` ## Composable filters [Composable filter expressions](https://rolldown.rs/apis/plugin-api/hook-filters#composable-filters) for use cases where a simple `id`/`include`/`exclude` is not enough. For example, when a plugin needs to combine `id`, `moduleType`, `code`, and `query` conditions. ```ts import { and, code, id, include, interpreter, moduleType, or } from '@rolldown/pluginutils' const expr = include(and(or(id(/\.tsx?$/), id(/\.jsx?$/)), moduleType('tsx'), code(/import React/))) interpreter(expr, sourceCode, sourceId, 'tsx') // boolean ``` ### Builders | Builder | Description | | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | `and(...exprs)` | All operands must match. | | `or(...exprs)` | At least one operand must match. | | `not(expr)` | Negates the operand. | | `id(pattern, params?)` | Match the module id. `pattern` is `string` or `RegExp`. `params.cleanUrl` strips the query/hash before matching. | | `importerId(pattern, params?)` | Match the importer's id. Same shape as `id`. | | `moduleType(type)` | Match Rolldown's module type (`'js'`, `'jsx'`, `'ts'`, `'tsx'`, `'json'`, `'text'`, `'base64'`, `'dataurl'`, `'binary'`, `'empty'`, or a custom string). | | `code(pattern)` | Match the module source. `string` matches with `includes`; `RegExp` with `test`. | | `query(key, pattern)` | Match a single query parameter. `pattern` is `boolean` (key presence/truthiness), `string` (exact value), or `RegExp` (value pattern). | | `queries(obj)` | Shorthand for `and(...)` over multiple `query` entries. | | `include(expr)` | Top-level wrapper marking `expr` as an inclusion rule. | | `exclude(expr)` | Top-level wrapper marking `expr` as an exclusion rule. | ### `interpreter` - **Type:** `(exprs, code?, id?, moduleType?, importerId?) => boolean` Evaluates one or more top-level expressions against the given inputs. Returns `true` when at least one `include` matches and no `exclude` matches; when no `include` is present, defaults to `true` unless an `exclude` matches. The argument required by each expression must be provided. For example, evaluating an `id(...)` expression without passing `id` will throw. ## `filterVitePlugins` - **Type:** `(plugins: T | T[] | null | undefined | false) => T[]` Removes Vite plugins that target the dev server (`apply: 'serve'`) from a (possibly nested) plugin array. Plugins whose `apply` is a function are invoked with a `command: 'build'` context to decide. Useful when reusing a Vite plugin array inside a Rolldown config. ```ts import { defineConfig } from 'rolldown' import { filterVitePlugins } from '@rolldown/pluginutils' import viteReact from '@vitejs/plugin-react' export default defineConfig({ plugins: filterVitePlugins([ viteReact(), { name: 'dev-only', apply: 'serve', // filtered out // ... }, ]), }) ``` ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/core@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/core/-/core-4.4.3.tgz Locked integrity: sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- ================================================================ @shikijs/engine-javascript@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.4.3.tgz Locked integrity: sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2dc23693e27a02f85c43bda129df42b22a3693b4ed43e5ed8eb75f0224308cfc; bytes: 265 --- BEGIN ORIGINAL BYTES --- # @shikijs/engine-javascript Engine for Shiki using JavaScript's native RegExp. Uses [Oniguruma-To-ES](https://github.com/slevithan/oniguruma-to-es) to transpile regex syntax and behavior. [Documentation](https://shiki.style/guide/regex-engines) ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/engine-oniguruma@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.4.3.tgz Locked integrity: sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: ca20dc24a136ea3b338e919fbb8fcad972ea1d35a72b11c3531d9c57fefd2060; bytes: 167 --- BEGIN ORIGINAL BYTES --- # @shikijs/engine-oniguruma Engine for Shiki using Oniguruma RegExp engine in WebAssembly. [Documentation](https://shiki.style/guide/regex-engines) ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/langs@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/langs/-/langs-4.4.3.tgz Locked integrity: sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 64e4c92bd2c1f3a8adebf84f282cefdd964e5a8a906d3523d50cb6fdbb19fed1; bytes: 64 --- BEGIN ORIGINAL BYTES --- # @shikijs/langs TextMate grammars for Shiki. ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/primitive@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.4.3.tgz Locked integrity: sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- ================================================================ @shikijs/themes@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/themes/-/themes-4.4.3.tgz Locked integrity: sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: a29ad575a10f0033151f12f936077b082f0a2a562fe30f538cc0b75697541e86; bytes: 63 --- BEGIN ORIGINAL BYTES --- # @shikijs/themes TextMate themes for Shiki. ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/types@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/types/-/types-4.4.3.tgz Locked integrity: sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: fc598bcb88a798ea50a8e2cf7505a7148784bb9d4e49ef3846740fd1c6e58127; bytes: 52 --- BEGIN ORIGINAL BYTES --- # @shikijs/types Types for Shiki. ## License MIT --- END ORIGINAL BYTES --- ================================================================ @shikijs/vscode-textmate@10.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz Locked integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: b5cb7ff7859e7d282d98fc43ab081b0dda5dc659dc3385cf65740c759a7e6a6c; bytes: 1083 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) Microsoft Corporation 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. --- END ORIGINAL BYTES --- ================================================================ @shuding/opentype.js@1.4.0-beta.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@shuding/opentype.js/-/opentype.js-1.4.0-beta.0.tgz Locked integrity: sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a5b87c9bc191e7f9c06b07bd7cbbed3ed846dfdb50e859484b2c245aa1ab2e61; bytes: 1085 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2020 Frederik De Bleser 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/node@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz Locked integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: a7db79d5cd483c6f6d1a51f4042e32598ec39e2391a5dd5be62a71d59299cda8; bytes: 1838 --- BEGIN ORIGINAL BYTES ---

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License

--- ## Documentation For full documentation, visit [tailwindcss.com](https://tailwindcss.com). ## Community For help, discussion about best practices, or feature ideas: [Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions) ## Contributing If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz Locked integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-android-arm64@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz Locked integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-darwin-arm64@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz Locked integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-darwin-x64@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz Locked integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-freebsd-x64@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz Locked integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-linux-arm-gnueabihf@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz Locked integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-linux-arm64-gnu@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz Locked integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-linux-arm64-musl@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz Locked integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-linux-x64-gnu@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz Locked integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-linux-x64-musl@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz Locked integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-wasm32-wasi@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz Locked integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ== Unresolved: bundled-library-obligations-require-owner-or-counsel-review Its license text was collected, but it bundles other libraries whose obligations have not been reviewed. --- Original license: package/node_modules/@emnapi/core/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- --- Original license: package/node_modules/@emnapi/runtime/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- --- Original license: package/node_modules/@emnapi/wasi-threads/LICENSE SHA-256: 2088f55c6731498410b20c95ebd345ed4a4a800bf74c0fba4d282fd2a021daaa; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021-present Toyobayashi 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. --- END ORIGINAL BYTES --- --- Original license: package/node_modules/tslib/LICENSE.txt SHA-256: 210b19e543130388c68654b7497e967119ce17145f66ab7d85688fbd70f08751; bytes: 655 --- BEGIN ORIGINAL BYTES --- Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-win32-arm64-msvc@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz Locked integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/oxide-win32-x64-msvc@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz Locked integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @tailwindcss/vite@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz Locked integrity: sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: b510db84ba673fd57f272321441b32302ae775b02ed55e10cf81d3913713c51e; bytes: 2800 --- BEGIN ORIGINAL BYTES ---

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License

--- ## Documentation For full documentation, visit [tailwindcss.com](https://tailwindcss.com). ## Community For help, discussion about best practices, or feature ideas: [Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions) ## Contributing If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**. --- ## `@tailwindcss/vite` plugin API ### Enabling or disabling Lightning CSS By default, this plugin detects whether or not the CSS is being built for production by checking the `NODE_ENV` environment variable. When building for production Lightning CSS will be enabled otherwise it is disabled. If you want to always enable or disable Lightning CSS the `optimize` option may be used: ```js import tailwindcss from '@tailwindcss/vite' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ tailwindcss({ // Disable Lightning CSS optimization optimize: false, }), ], }) ``` It's also possible to keep Lightning CSS enabled but disable minification: ```js import tailwindcss from '@tailwindcss/vite' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ tailwindcss({ // Enable Lightning CSS but disable minification optimize: { minify: false }, }), ], }) ``` --- END ORIGINAL BYTES --- ================================================================ @tybys/wasm-util@0.10.4 Declared package license: MIT Published archive: https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz Locked integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 09e436100bf926e78df875ec80cf3d0c643dfec779b52cfe2aa96afa0de714cb; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2022-present Toyobayashi 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. --- END ORIGINAL BYTES --- ================================================================ @types/estree@1.0.9 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz Locked integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: estree/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/estree-jsx@1.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz Locked integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: estree-jsx/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/hast@3.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz Locked integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: hast/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/mdast@4.0.4 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz Locked integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: mdast/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/nlcst@2.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/nlcst/-/nlcst-2.0.3.tgz Locked integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: nlcst/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/node@22.20.4 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/node/-/node-22.20.4.tgz Locked integrity: sha512-zJRE40jpHtKqE/C4fgHrAKQLJuSpzEnP9ff9Y7YtoR3Wd2pwqzlekDeEuUQXjRd+QCYnVnNwuJYmhdk9XV8gvA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: node v22.20/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/node@24.19.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/node/-/node-24.19.0.tgz Locked integrity: sha512-zY+5tKxXdhGh1PYI0ac+7juvEu4OI6vWtVVoj5i2m42jxAY1U+zHGt6QCyOFwykdP62sM3MJ9stoYYUw5aCWew== Unresolved: No collection gap detected; not an independent legal determination --- Original license: node v24.19/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/react@19.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz Locked integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: react/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/react-dom@19.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz Locked integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: react-dom/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/sax@1.2.7 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz Locked integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: sax/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @types/unist@3.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz Locked integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: unist/LICENSE SHA-256: c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383; bytes: 1141 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Microsoft Corporation. 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 --- END ORIGINAL BYTES --- ================================================================ @ungap/structured-clone@1.4.0 Declared package license: ISC Published archive: https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz Locked integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: dc6d4961d8b6ee747231582ae9c53ce1d66bf76bc9f5a28f554c0e97210953bf; bytes: 765 --- BEGIN ORIGINAL BYTES --- ISC License Copyright (c) 2021, Andrea Giammarchi, @WebReflection Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ @vercel/analytics@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz Locked integrity: sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 592702a2a974fdaf3f43acb336275c4b8ab0a7cfcbeb248f897848f96954c5ed; bytes: 1079 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2026 Vercel, Inc. 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. --- END ORIGINAL BYTES --- ================================================================ @vitejs/plugin-react@6.1.1 Declared package license: MIT Published archive: https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.1.tgz Locked integrity: sha512-yxLaQV9gkhS8ezJqCM6+ndU7mDY6gqAg75NQ+0IjwEI8IYOmQCgkRwHKVSfWXW076DsqMo0Dk+0FK1U+M5RgFw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 29b68325fe026047d13e187b44c33b2acacf7dc647dec4583702e59f235e13b5; bytes: 1103 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. --- END ORIGINAL BYTES --- ================================================================ am-i-vibing@0.4.0 Declared package license: MIT Published archive: https://registry.npmjs.org/am-i-vibing/-/am-i-vibing-0.4.0.tgz Locked integrity: sha512-MxT4XZL7pzLHpuvhDKdMaQHMGGkJDLluKBLsbstn+8wv9sWcFT6h+0ve9qkml95amVTZtZV83gQe2hY+ojgHLg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. --- Original licensing-readme: package/README.md SHA-256: bf6358950756434f5367be0152fa0e9acdcc0ab3dd3a46e0c0bc2cd1ff8ebe35; bytes: 5951 --- BEGIN ORIGINAL BYTES --- # am-i-vibing Detect agentic coding environments and AI assistant tools. This library allows CLI tools and Node apps to detect when they're being executed by AI agents. This enables them to adapt by, for example, providing different output formats or logs. ## Installation Install as library: ```bash npm install am-i-vibing ``` Run as CLI tool: ```bash npx am-i-vibing ``` ```ts import { detectAgenticEnvironment } from "am-i-vibing"; const result = detectAgenticEnvironment(); console.log(`Detected: ${result.name} (${result.type})`); ``` ## Supported AI Tools - **Aider** - **Bolt** - **Claude Code** - **Codex CLI** - **Crush** - **Cursor** - **Gemini CLI** - **GitHub Copilot Agent** - **Jules** - **Octofriend** (process detection only — requires `checkProcesses`) - **opencode** - **Replit** - **Warp** - **Windsurf** - **Zed** ## Example use case Generating LLM-specific error messages or logs: ```typescript import { isAgent } from "am-i-vibing"; const agent = isAgent(); function handleError(error: Error) { if (agent) { console.info(` # Error ${error.message} ${error.name} ${error.stack} Use the search_docs tool to find help for this error. If the tool is not available, prompt the user to enable the MCP server followng the instructions at https://example.com/mcp `); } else { console.error("An error occurred:", error.message); } } ``` ## Environment Types The library detects three main types of environments: - **Agent**: Command was directly run by an AI agent (e.g. Claude Code, Codex CLI, Jules) - **Interactive**: Interactive commands run inside an AI environment (e.g. Cursor terminal, Replit shell) - **Hybrid**: Environments that combine both agentic and interactive features in the same session (e.g. Warp) There may be false positives, such as if a user directly runs a command in an terminal opened by an AI tool, such as a Copilot terminal in VS Code. ## Library Usage ```typescript import { detectAgenticEnvironment, isAgent, isInteractive, isHybrid, } from "am-i-vibing"; // Full detection const result = detectAgenticEnvironment(); console.log(`Detected: ${result.name} (${result.type})`); console.log(`ID: ${result.id}`); console.log(`Is agentic: ${result.isAgentic}`); // Quick checks if (isAgent()) { console.log("Running under direct AI agent control"); } if (isInteractive()) { console.log("Running in interactive AI environment"); } if (isHybrid()) { console.log("Running in hybrid AI environment"); } // Note: Hybrid environments return true for both isAgent() and isInteractive() ``` ### Process-tree detection (opt-in) Most providers expose an environment variable that uniquely identifies them, and that's the only signal `am-i-vibing` consults by default. A small number (e.g. Octofriend) can only be detected by inspecting the parent process chain. Reading the process tree spawns a subprocess and is meaningfully slow on Windows, so it is **off by default**. To opt in: ```typescript import { detectAgenticEnvironment } from "am-i-vibing"; const result = detectAgenticEnvironment({ checkProcesses: true }); ``` You can also pre-supply an ancestry (e.g. if you are already collecting one): ```typescript import { detectAgenticEnvironment } from "am-i-vibing"; import { getProcessAncestry } from "process-ancestry"; const result = detectAgenticEnvironment({ processAncestry: getProcessAncestry(), }); ``` Supplying `processAncestry` implies `checkProcesses: true` unless you set it to `false` explicitly. ## Detection Result The library returns a `DetectionResult` object with the following structure: ```typescript interface DetectionResult { isAgentic: boolean; // Whether any agentic environment was detected id: string | null; // Provider ID (e.g., "claude-code") name: string | null; // Human-readable name (e.g., "Claude Code") type: AgenticType | null; // "agent" | "interactive" | "hybrid" } ``` ## CLI Usage Use the CLI to quickly check if you're running in an agentic environment: ```bash # Basic detection npx am-i-vibing # ✓ Detected: Claude Code (agent) # JSON output npx am-i-vibing --format json # {"isAgentic": true, "id": "claude-code", "name": "Claude Code", "type": "agent"} # Check for specific environment type npx am-i-vibing --check agent # ✓ Running in agent environment: Claude Code npx am-i-vibing --check interactive # ✗ Not running in interactive environment # Quiet mode (useful for scripts) npx am-i-vibing --quiet # Claude Code # Debug mode (full diagnostic output) npx am-i-vibing --debug # {"detection": {"isAgentic": true, "id": "claude-code", "name": "Claude Code", "type": "agent"}, "environment": {...}, "processAncestry": [...]} ``` ### CLI Options - `-f, --format ` - Output format (default: text) - `-c, --check ` - Check for specific environment type - `-q, --quiet` - Only output result, no labels - `-p, --check-processes` - Also walk the process tree for detection (slower, off by default) - `-d, --debug` - Debug output with environment and process info (implies `--check-processes`) - `-h, --help` - Show help message ### Exit Codes - `0` - Agentic environment detected (or specific check passed) - `1` - No agentic environment detected (or specific check failed) ## Debug Output The `--debug` flag provides comprehensive diagnostic information including: - **detection**: Standard detection result (same as `--format json`) - **environment**: Complete dump of `process.env` variables - **processAncestry**: Process tree showing parent processes up to the root This is useful for troubleshooting detection issues and understanding the runtime environment. ```bash npx am-i-vibing --debug # { # "detection": { ... }, # "environment": { ... }, # "processAncestry": [...] # } ``` ## License MIT Copyright © 2025 Matt Kane --- END ORIGINAL BYTES --- ================================================================ anymatch@3.1.3 Declared package license: ISC Published archive: https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz Locked integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5a3b0007c4203f10fe11b3fe8747253eb994f135e10b73e1f88ada941af09c6e; bytes: 784 --- BEGIN ORIGINAL BYTES --- The ISC License Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: dde55ac85d7df17bd51f715302f7c81582d1c962a932b296d3f37cbfeffb0da2; bytes: 4023 --- BEGIN ORIGINAL BYTES --- anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master) ====== Javascript module to match a string against a regular expression, glob, string, or function that takes the string as an argument and returns a truthy or falsy value. The matcher can also be an array of any or all of these. Useful for allowing a very flexible user-defined config to define things like file paths. __Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__ Usage ----- ```sh npm install anymatch ``` #### anymatch(matchers, testString, [returnIndex], [options]) * __matchers__: (_Array|String|RegExp|Function_) String to be directly matched, string with glob patterns, regular expression test, function that takes the testString as an argument and returns a truthy value if it should be matched, or an array of any number and mix of these types. * __testString__: (_String|Array_) The string to test against the matchers. If passed as an array, the first element of the array will be used as the `testString` for non-function matchers, while the entire array will be applied as the arguments for function matchers. * __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options. * __returnIndex__: (_Boolean [optional]_) If true, return the array index of the first matcher that that testString matched, or -1 if no match, instead of a boolean result. ```js const anymatch = require('anymatch'); const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ; anymatch(matchers, 'path/to/file.js'); // true anymatch(matchers, 'path/anyjs/baz.js'); // true anymatch(matchers, 'path/to/foo.js'); // true anymatch(matchers, 'path/to/bar.js'); // true anymatch(matchers, 'bar.js'); // false // returnIndex = true anymatch(matchers, 'foo.js', {returnIndex: true}); // 2 anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1 // any picomatc // using globs to match directories and their children anymatch('node_modules', 'node_modules'); // true anymatch('node_modules', 'node_modules/somelib/index.js'); // false anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true const matcher = anymatch(matchers); ['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ] anymatch master* ❯ ``` #### anymatch(matchers) You can also pass in only your matcher(s) to get a curried function that has already been bound to the provided matching criteria. This can be used as an `Array#filter` callback. ```js var matcher = anymatch(matchers); matcher('path/to/file.js'); // true matcher('path/anyjs/baz.js', true); // 1 ['foo.js', 'bar.js'].filter(matcher); // ['foo.js'] ``` Changelog ---------- [See release notes page on GitHub](https://github.com/micromatch/anymatch/releases) - **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only. - **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information). - **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch) for glob pattern matching. Issues with glob pattern matching should be reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues). License ------- [ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE) --- END ORIGINAL BYTES --- ================================================================ arg@5.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/arg/-/arg-5.0.2.tgz Locked integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 91887c62d26f64b8d6e98b1dca57e75aca62e6f9af79fb0783f8f1904abaeea6; bytes: 1079 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2021 Vercel, Inc. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 82b3b5080545f2b50441deb23c5ef8ac4981e3a4667e4b12a6e1183d2e79e248; bytes: 6642 --- BEGIN ORIGINAL BYTES --- # Arg `arg` is an unopinionated, no-frills CLI argument parser. ## Installation ```bash npm install arg ``` ## Usage `arg()` takes either 1 or 2 arguments: 1. Command line specification object (see below) 2. Parse options (_Optional_, defaults to `{permissive: false, argv: process.argv.slice(2), stopAtPositional: false}`) It returns an object with any values present on the command-line (missing options are thus missing from the resulting object). Arg performs no validation/requirement checking - we leave that up to the application. All parameters that aren't consumed by options (commonly referred to as "extra" parameters) are added to `result._`, which is _always_ an array (even if no extra parameters are passed, in which case an empty array is returned). ```javascript const arg = require('arg'); // `options` is an optional parameter const args = arg( spec, (options = { permissive: false, argv: process.argv.slice(2) }) ); ``` For example: ```console $ node ./hello.js --verbose -vvv --port=1234 -n 'My name' foo bar --tag qux --tag=qix -- --foobar ``` ```javascript // hello.js const arg = require('arg'); const args = arg({ // Types '--help': Boolean, '--version': Boolean, '--verbose': arg.COUNT, // Counts the number of times --verbose is passed '--port': Number, // --port or --port= '--name': String, // --name or --name= '--tag': [String], // --tag or --tag= // Aliases '-v': '--verbose', '-n': '--name', // -n ; result is stored in --name '--label': '--name' // --label or --label=; // result is stored in --name }); console.log(args); /* { _: ["foo", "bar", "--foobar"], '--port': 1234, '--verbose': 4, '--name': "My name", '--tag': ["qux", "qix"] } */ ``` The values for each key=>value pair is either a type (function or [function]) or a string (indicating an alias). - In the case of a function, the string value of the argument's value is passed to it, and the return value is used as the ultimate value. - In the case of an array, the only element _must_ be a type function. Array types indicate that the argument may be passed multiple times, and as such the resulting value in the returned object is an array with all of the values that were passed using the specified flag. - In the case of a string, an alias is established. If a flag is passed that matches the _key_, then the _value_ is substituted in its place. Type functions are passed three arguments: 1. The parameter value (always a string) 2. The parameter name (e.g. `--label`) 3. The previous value for the destination (useful for reduce-like operations or for supporting `-v` multiple times, etc.) This means the built-in `String`, `Number`, and `Boolean` type constructors "just work" as type functions. Note that `Boolean` and `[Boolean]` have special treatment - an option argument is _not_ consumed or passed, but instead `true` is returned. These options are called "flags". For custom handlers that wish to behave as flags, you may pass the function through `arg.flag()`: ```javascript const arg = require('arg'); const argv = [ '--foo', 'bar', '-ff', 'baz', '--foo', '--foo', 'qux', '-fff', 'qix' ]; function myHandler(value, argName, previousValue) { /* `value` is always `true` */ return 'na ' + (previousValue || 'batman!'); } const args = arg( { '--foo': arg.flag(myHandler), '-f': '--foo' }, { argv } ); console.log(args); /* { _: ['bar', 'baz', 'qux', 'qix'], '--foo': 'na na na na na na na na batman!' } */ ``` As well, `arg` supplies a helper argument handler called `arg.COUNT`, which equivalent to a `[Boolean]` argument's `.length` property - effectively counting the number of times the boolean flag, denoted by the key, is passed on the command line.. For example, this is how you could implement `ssh`'s multiple levels of verbosity (`-vvvv` being the most verbose). ```javascript const arg = require('arg'); const argv = ['-AAAA', '-BBBB']; const args = arg( { '-A': arg.COUNT, '-B': [Boolean] }, { argv } ); console.log(args); /* { _: [], '-A': 4, '-B': [true, true, true, true] } */ ``` ### Options If a second parameter is specified and is an object, it specifies parsing options to modify the behavior of `arg()`. #### `argv` If you have already sliced or generated a number of raw arguments to be parsed (as opposed to letting `arg` slice them from `process.argv`) you may specify them in the `argv` option. For example: ```javascript const args = arg( { '--foo': String }, { argv: ['hello', '--foo', 'world'] } ); ``` results in: ```javascript const args = { _: ['hello'], '--foo': 'world' }; ``` #### `permissive` When `permissive` set to `true`, `arg` will push any unknown arguments onto the "extra" argument array (`result._`) instead of throwing an error about an unknown flag. For example: ```javascript const arg = require('arg'); const argv = [ '--foo', 'hello', '--qux', 'qix', '--bar', '12345', 'hello again' ]; const args = arg( { '--foo': String, '--bar': Number }, { argv, permissive: true } ); ``` results in: ```javascript const args = { _: ['--qux', 'qix', 'hello again'], '--foo': 'hello', '--bar': 12345 }; ``` #### `stopAtPositional` When `stopAtPositional` is set to `true`, `arg` will halt parsing at the first positional argument. For example: ```javascript const arg = require('arg'); const argv = ['--foo', 'hello', '--bar']; const args = arg( { '--foo': Boolean, '--bar': Boolean }, { argv, stopAtPositional: true } ); ``` results in: ```javascript const args = { _: ['hello', '--bar'], '--foo': true }; ``` ### Errors Some errors that `arg` throws provide a `.code` property in order to aid in recovering from user error, or to differentiate between user error and developer error (bug). ##### ARG_UNKNOWN_OPTION If an unknown option (not defined in the spec object) is passed, an error with code `ARG_UNKNOWN_OPTION` will be thrown: ```js // cli.js try { require('arg')({ '--hi': String }); } catch (err) { if (err.code === 'ARG_UNKNOWN_OPTION') { console.log(err.message); } else { throw err; } } ``` ```shell node cli.js --extraneous true Unknown or unexpected option: --extraneous ``` # FAQ A few questions and answers that have been asked before: ### How do I require an argument with `arg`? Do the assertion yourself, such as: ```javascript const args = arg({ '--name': String }); if (!args['--name']) throw new Error('missing required argument: --name'); ``` # License Released under the [MIT License](LICENSE.md). --- END ORIGINAL BYTES --- ================================================================ argparse@2.0.1 Declared package license: Python-2.0 Published archive: https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz Locked integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: de4d1f2d2ad5ad0cfd1657a106476b31cb5db5ef9d1ff842b237c0c81f0c8a23; bytes: 12775 --- BEGIN ORIGINAL BYTES --- A. HISTORY OF THE SOFTWARE ========================== Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands as a successor of a language called ABC. Guido remains Python's principal author, although it includes many contributions from others. In 1995, Guido continued his work on Python at the Corporation for National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) in Reston, Virginia where he released several versions of the software. In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs team moved to Digital Creations, which became Zope Corporation. In 2001, the Python Software Foundation (PSF, see https://www.python.org/psf/) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation was a sponsoring member of the PSF. All Python releases are Open Source (see http://www.opensource.org for the Open Source Definition). Historically, most, but not all, Python releases have also been GPL-compatible; the table below summarizes the various releases. Release Derived Year Owner GPL- from compatible? (1) 0.9.0 thru 1.2 1991-1995 CWI yes 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes 1.6 1.5.2 2000 CNRI no 2.0 1.6 2000 BeOpen.com no 1.6.1 1.6 2001 CNRI yes (2) 2.1 2.0+1.6.1 2001 PSF no 2.0.1 2.0+1.6.1 2001 PSF yes 2.1.1 2.1+2.0.1 2001 PSF yes 2.1.2 2.1.1 2002 PSF yes 2.1.3 2.1.2 2002 PSF yes 2.2 and above 2.1.1 2001-now PSF yes Footnotes: (1) GPL-compatible doesn't mean that we're distributing Python under the GPL. All Python licenses, unlike the GPL, let you distribute a modified version without making your changes open source. The GPL-compatible licenses make it possible to combine Python with other software that is released under the GPL; the others don't. (2) According to Richard Stallman, 1.6.1 is not GPL-compatible, because its license has a choice of law clause. According to CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 is "not incompatible" with the GPL. Thanks to the many outside volunteers who have worked under Guido's direction to make these releases possible. B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON =============================================================== PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 ------------------------------------------- BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization ("Licensee") accessing and otherwise using this software in source or binary form and its associated documentation ("the Software"). 2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee. 3. BeOpen is making the Software available to Licensee on an "AS IS" basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 5. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the "BeOpen Python" logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page. 7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement. CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 --------------------------------------- 1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6.1 software in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 1.6.1 alone or in any derivative version, provided, however, that CNRI's License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) 1995-2001 Corporation for National Research Initiatives; All Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version prepared by Licensee. Alternately, in lieu of CNRI's License Agreement, Licensee may substitute the following text (omitting the quotes): "Python 1.6.1 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6.1 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1013. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1013". 3. In the event Licensee prepares a derivative work that is based on or incorporates Python 1.6.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 1.6.1. 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. This License Agreement shall be governed by the federal intellectual property law of the United States, including without limitation the federal copyright law, and, to the extent such U.S. federal law does not apply, by the law of the Commonwealth of Virginia, excluding Virginia's conflict of law provisions. Notwithstanding the foregoing, with regard to derivative works based on Python 1.6.1 that incorporate non-separable material that was previously distributed under the GNU General Public License (GPL), the law of the Commonwealth of Virginia shall govern this License Agreement only as to issues arising under or with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between CNRI and Licensee. This License Agreement does not grant permission to use CNRI trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By clicking on the "ACCEPT" button where indicated, or by copying, installing or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and conditions of this License Agreement. ACCEPT CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 -------------------------------------------------- Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ aria-query@5.3.2 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz Locked integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c8df456c7ccba74b959087dff494d4ac2a12dfb0400c08b46b2494a08a000567; bytes: 10236 --- BEGIN ORIGINAL BYTES --- 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 2020 A11yance 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e6c6be167ef9996797d3db16cf81dca08e6fed9c2c086c420e9a1316e001acb7; bytes: 7134 --- BEGIN ORIGINAL BYTES --- # ARIA Query ![CI](https://github.com/A11yance/aria-query/workflows/CI/badge.svg) Programmatic access to the [WAI-ARIA 1.2 Roles Model](https://www.w3.org/TR/wai-aria-1.2/#roles). This package tracks the W3C Recommendation (last update: 6 June 2023). CDN URL: ## Building the `src/etc` files The files under `src/etc` are generated by the `breakUpAriaJSON` script. To change them, edit the file `scripts/roles.json` then run: ```bash node ./scripts/breakUpAriaJSON.js git add scripts/roles.json src/etc ``` It should work with Node version 6.11.2 or later. ## Utilities ### Interface These methods are available on each export from the module. The typing here in the documentation is pseudo-typed. Each export will have its own specific types for each method signature. ```javascript {| entries: () => Array<$Item>, get: (key: $Key) => ?$Value, has: (key: $Key) => boolean, keys: () => Array<$Key>, values: () => Array<$Value>, |}; ``` ### Roles ```javascript import { roles } from 'aria-query'; ``` A map of role names to the role definition. For example: ```javascript let alertRole = roles.get('alert'); /** * Value of alertRole * { * "requiredProps": {}, * "props": { * "aria-atomic": "true", * "aria-busy": null, * "aria-controls": null, * "aria-current": null, * "aria-describedby": null, * "aria-details": null, * "aria-disabled": null, * "aria-dropeffect": null, * "aria-errormessage": null, * "aria-expanded": null, * "aria-flowto": null, * "aria-grabbed": null, * "aria-haspopup": null, * "aria-hidden": null, * "aria-invalid": null, * "aria-keyshortcuts": null, * "aria-label": null, * "aria-labelledby": null, * "aria-live": "assertive", * "aria-owns": null, * "aria-relevant": null, * "aria-roledescription": null * }, * "abstract": false, * "childrenPresentational": false, * "baseConcepts": [], * "relatedConcepts": [ { * "module": "XForms", * "concept": { * "name": "alert" * } * }], * "superClass": [["roletype", "structure", "section"]] * } ``` ### Elements to Roles ```javascript import { elementRoles } from 'aria-query'; ``` HTML Elements with inherent roles are mapped to those roles. In the case of an element like ``, the element often requires a `type` attribute to map to an ARIA role. ```javascript [ [ '{"name": "article"}', [ 'article' ] ], [ '{"name": "button"}', [ 'button' ] ], [ '{"name": "td"}', [ 'cell', 'gridcell' ] ], [ '{"name": "input", "attributes": [ {"name": "type", "value": "checkbox"}] }', [ 'checkbox' ] ], [ '{"name": "th"}', [ 'columnheader' ] ], [ '{"name": "select"}', [ 'combobox', 'listbox' ] ], [ '{"name": "menuitem"}', [ 'command', 'menuitem' ] ], [ '{"name": "dd"}', [ 'definition' ] ], [ '{"name": "figure"}', [ 'figure' ] ], [ '{"name": "form"}', [ 'form' ] ], [ '{"name": "table"}', [ 'grid', 'table' ] ], [ '{"name": "fieldset"}', [ 'group' ] ], [ '{"name": "h1"}', [ 'heading' ] ], [ '{"name": "h2"}', [ 'heading' ] ], [ '{"name": "h3"}', [ 'heading' ] ], [ '{"name": "h4"}', [ 'heading' ] ], [ '{"name": "h5"}', [ 'heading' ] ], [ '{"name": "h6"}', [ 'heading' ] ], [ '{"name": "img"}', [ 'img' ] ], [ '{"name": "a"}', [ 'link' ] ], [ '{"name": "link"}', [ 'link' ] ], [ '{"name": "ol"}', [ 'list' ] ], [ '{"name": "ul"}', [ 'list' ] ], [ '{"name": "li"}', [ 'listitem' ] ], [ '{"name": "nav"}', [ 'navigation' ] ], [ '{"name": "option"}', [ 'option' ] ], [ '{"name": "input", "attributes": [ {"name": "type", "value": "radio"}] }', [ 'radio' ] ], [ '{"name": "frame"}', [ 'region' ] ], [ '{"name": "rel"}', [ 'roletype' ] ], [ '{"name": "tr"}', [ 'row' ] ], [ '{"name": "tbody"}', [ 'rowgroup' ] ], [ '{"name": "tfoot"}', [ 'rowgroup' ] ], [ '{"name": "thead"}', [ 'rowgroup' ] ], [ '{"name": "th", "attributes": [ {"name": "scope", "value": "row"}] }', [ 'rowheader' ] ], [ '{"name": "input", "attributes": [ {"name": "type", "value": "search"}] }', [ 'searchbox' ] ], [ '{"name": "hr"}', [ 'separator' ] ], [ '{"name": "dt"}', [ 'term' ] ], [ '{"name": "dfn"}', [ 'term' ] ], [ '{"name": "textarea"}', [ 'textbox' ] ], [ '{"name": "input", "attributes": [ {"name": "type", "value": "text"}] }', [ 'textbox' ] ], ] ``` The map of elements to roles is keyed by an HTML concept. An HTML concept corresponds to the `baseConcepts` and `relatedConcepts` of an ARIA role. Concepts exist in the context of a `module`: HTML, XForms, Dublin Core, for example. The concept representation is an object literal with a name property (the element name) and an optional attributes array. The roles are provided in a [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). ### Role to element ```javascript import { roleElements } from 'aria-query'; ``` ARIA roles are mapped to the HTML Elements with the same inherent role. Some roles, such as `columnheader` are only mapped to an HTML element that expresses specific attributes. In the case of ``, the element often requires a `type` attribute to map to an ARIA role. ```javascript [ [ 'article', [ {"name": "article"} ] ], [ 'button', [ {"name": "button"} ] ], [ 'cell', [ {"name": "td"} ] ], [ 'checkbox', [ {"name": "input", "attributes": [ {"name": "type", "value": "checkbox"}] } ] ], [ 'columnheader', [ {"name": "th"} ] ], [ 'combobox', [ {"name": "select"} ] ], [ 'command', [ {"name": "menuitem"} ] ], [ 'definition', [ {"name": "dd"}', '{"name": "dfn"} ] ], [ 'figure', [ {"name": "figure"} ] ], [ 'form', [ {"name": "form"} ] ], [ 'grid', [ {"name": "table"} ] ], [ 'gridcell', [ {"name": "td"} ] ], [ 'group', [ {"name": "fieldset"} ] ], [ 'heading', [ {"name": "h1"}', '{"name": "h2"}', '{"name": "h3"}', '{"name": "h4"}', '{"name": "h5"}', '{"name": "h6"} ] ], [ 'img', [ {"name": "img"} ] ], [ 'link', [ {"name": "a"}', '{"name": "link"} ] ], [ 'list', [ {"name": "ol"}', '{"name": "ul"} ] ], [ 'listbox', [ {"name": "select"} ] ], [ 'listitem', [ {"name": "li"} ] ], [ 'menuitem', [ {"name": "menuitem"} ] ], [ 'navigation', [ {"name": "nav"} ] ], [ 'option', [ {"name": "option"} ] ], [ 'radio', [ {"name": "input", "attributes": [ {"name": "type", "value": "radio"}] } ] ], [ 'region', [ {"name": "frame"} ] ], [ 'roletype', [ {"name": "rel"} ] ], [ 'row', [ {"name": "tr"} ] ], [ 'rowgroup', [ {"name": "tbody"}', '{"name": "tfoot"}', '{"name": "thead"} ] ], [ 'rowheader', [ {"name": "th", "attributes": [ {"name": "scope", "value": "row"}] }, {"name": "th", "attributes": [ {"name": "scope", "value": "rowgroup"}] } ] ], [ 'searchbox', [ {"name": "input", "attributes": [ {"name": "type", "value": "search"}] } ] ], [ 'separator', [ {"name": "hr"} ] ], [ 'table', [ {"name": "table"} ] ], [ 'term', [ {"name": "dt"} ] ], [ 'textbox', [ {"name": "textarea"}', '{"name": "input", "attributes": [ {"name": "type", "value": "text"}] } ] ], ] ``` ## License Copyright (c) 2021 A11yance --- END ORIGINAL BYTES --- ================================================================ astro@7.3.5 Declared package license: MIT Published archive: https://registry.npmjs.org/astro/-/astro-7.3.5.tgz Locked integrity: sha512-1p/ernaq/RuESbM5NMjWzbO6SiebMGrGcYlGjMfBhzzgM+n/X7AUmVyw8BqW2QYCdivpsHwJBcD1fqmlTZjZHg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4aa72be797aad0e5e21827eaae6a1df9e122d7a401f07d2c308a6b9a5f0e1278; bytes: 3628 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Fred K. Schott 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. """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository: Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors) 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. """ """ This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository: MIT License Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors 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. """ --- END ORIGINAL BYTES --- ================================================================ axobject-query@4.1.0 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz Locked integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c8df456c7ccba74b959087dff494d4ac2a12dfb0400c08b46b2494a08a000567; bytes: 10236 --- BEGIN ORIGINAL BYTES --- 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 2020 A11yance 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 43054c9c1a68a22a28f1069fb023871b00074cc4af3830a608bf373fd886b483; bytes: 21175 --- BEGIN ORIGINAL BYTES --- # AXObject Query ![CI](https://github.com/A11yance/axobject-query/workflows/CI/badge.svg) Approximate model of the [Chrome AXObject](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXObject.h). The project attempts to map the AXObject concepts to the [WAI-ARIA 1.1 Roles Model](https://www.w3.org/TR/wai-aria-1.1/#roles) so that a complete representation of the semantic HTML layer, as it is exposed assistive technology, can be obtained. CDN URL: ## Utilities ### AXObjects ```javascript import { AXObjects } from 'axobject-query'; ``` #### Interface These methods are available on each export from the module. The typing here in the documentation is pseudo-typed. Each export will have its own specific types for each method signature. ```javascript {| entries: () => Array<$Item>, get: (key: $Key) => ?$Value, has: (key: $Key) => boolean, keys: () => Array<$Key>, values: () => Array<$Value>, |}; ``` ### Concepts in the project AXObjects are mapped to their HTML and ARIA concepts in the `relatedConcepts` field. The `type` field is a loose association of an AXObject to the `window`, `structure` and `widget` abstract roles in ARIA. The `generic` value is given to `DivRole`; it does not exist in ARIA. Divs are special in HTML in the way that they are used as generic containers. Span might have also been associated with a generic type except that there is no `SpanRole` AXObject. ```javascript [ [ 'AbbrRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'AlertDialogRole', { relatedConcepts: [ [Object] ], type: 'window' } ], [ 'AlertRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'AnnotationRole', { relatedConcepts: [], type: 'structure' } ], [ 'ApplicationRole', { relatedConcepts: [ [Object] ], type: 'window' } ], [ 'ArticleRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'AudioRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'BannerRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'BlockquoteRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'BusyIndicatorRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'ButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'CanvasRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'CaptionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'CellRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' } ], [ 'CheckBoxRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'ColorWellRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'ColumnHeaderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'ColumnRole', { relatedConcepts: [], type: 'structure' } ], [ 'ComboBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'ComplementaryRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'ContentInfoRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DateRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'DateTimeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'DefinitionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DescriptionListDetailRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DescriptionListRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DescriptionListTermRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DetailsRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'DialogRole', { relatedConcepts: [ [Object], [Object] ], type: 'window' } ], [ 'DirectoryRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'DisclosureTriangleRole', { relatedConcepts: [], type: 'widget' } ], [ 'DivRole', { relatedConcepts: [ [Object] ], type: 'generic' } ], [ 'DocumentRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'EmbeddedObjectRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'FeedRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'FigcaptionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'FigureRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'FooterRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'FormRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'GridRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'GroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'HeadingRole', { relatedConcepts: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], type: 'structure' } ], [ 'IframePresentationalRole', { relatedConcepts: [], type: 'window' } ], [ 'IframeRole', { relatedConcepts: [ [Object] ], type: 'window' } ], [ 'IgnoredRole', { relatedConcepts: [], type: 'structure' } ], [ 'ImageMapLinkRole', { relatedConcepts: [], type: 'widget' } ], [ 'ImageMapRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'ImageRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'InlineTextBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'InputTimeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'LabelRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'LegendRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'LineBreakRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'LinkRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'ListBoxOptionRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'ListBoxRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'ListItemRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'ListMarkerRole', { relatedConcepts: [], type: 'structure' } ], [ 'ListRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'structure' } ], [ 'LogRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'MainRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'MarkRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'MarqueeRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'MathRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'MenuBarRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'MenuButtonRole', { relatedConcepts: [], type: 'widget' } ], [ 'MenuItemRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'MenuItemCheckBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'MenuItemRadioRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'MenuListOptionRole', { relatedConcepts: [], type: 'widget' } ], [ 'MenuListPopupRole', { relatedConcepts: [], type: 'widget' } ], [ 'MenuRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'MeterRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'NavigationRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'NoneRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'NoteRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'OutlineRole', { relatedConcepts: [], type: 'structure' } ], [ 'ParagraphRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'PopUpButtonRole', { relatedConcepts: [], type: 'widget' } ], [ 'PreRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'PresentationalRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'ProgressIndicatorRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'RadioButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'RadioGroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'RegionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'RootWebAreaRole', { relatedConcepts: [], type: 'structure' } ], [ 'RowHeaderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'RowRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'RubyRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'RulerRole', { relatedConcepts: [], type: 'structure' } ], [ 'ScrollAreaRole', { relatedConcepts: [], type: 'structure' } ], [ 'ScrollBarRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'SeamlessWebAreaRole', { relatedConcepts: [], type: 'structure' } ], [ 'SearchRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'SearchBoxRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'SliderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'SliderThumbRole', { relatedConcepts: [], type: 'structure' } ], [ 'SpinButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], [ 'SpinButtonPartRole', { relatedConcepts: [], type: 'structure' } ], [ 'SplitterRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'StaticTextRole', { relatedConcepts: [], type: 'structure' } ], [ 'StatusRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'SVGRootRole', { relatedConcepts: [], type: 'structure' } ], [ 'SwitchRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'TabGroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TabRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'TableHeaderContainerRole', { relatedConcepts: [], type: 'structure' } ], [ 'TableRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], [ 'TabListRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TabPanelRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TermRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TextFieldRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' } ], [ 'TimeRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TimerRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'ToggleButtonRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'ToolbarRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'TreeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'TreeGridRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'TreeItemRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'UserInterfaceTooltipRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], [ 'VideoRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], [ 'WebAreaRole', { relatedConcepts: [], type: 'structure' } ], [ 'WindowRole', { relatedConcepts: [], type: 'window' } ], ] ``` ### AXObject to Element ```javascript import { AXObjectElements } from 'axobject-query'; ``` AXObjects are mapped to their related HTML concepts, which may require attributes (in the case of inputs) to obtain the correct association. ```javascript [ [ 'AbbrRole', [ { name: 'abbr' } ] ], [ 'ArticleRole', [ { name: 'article' } ] ], [ 'AudioRole', [ { name: 'audio' } ] ], [ 'BlockquoteRole', [ { name: 'blockquote' } ] ], [ 'ButtonRole', [ { name: 'button' } ] ], [ 'CanvasRole', [ { name: 'canvas' } ] ], [ 'CaptionRole', [ { name: 'caption' } ] ], [ 'CellRole', [ { name: 'td' } ] ], [ 'CheckBoxRole', [ { name: 'input', attributes: [Object] } ] ], [ 'ColorWellRole', [ { name: 'input', attributes: [Object] } ] ], [ 'ColumnHeaderRole', [ { name: 'th' } ] ], [ 'DateRole', [ { name: 'input', attributes: [Object] } ] ], [ 'DateTimeRole', [ { name: 'input', attributes: [Object] } ] ], [ 'DefinitionRole', [ { name: 'dfn' } ] ], [ 'DescriptionListDetailRole', [ { name: 'dd' } ] ], [ 'DescriptionListRole', [ { name: 'dl' } ] ], [ 'DescriptionListTermRole', [ { name: 'dt' } ] ], [ 'DetailsRole', [ { name: 'details' } ] ], [ 'DialogRole', [ { name: 'dialog' } ] ], [ 'DirectoryRole', [ { name: 'dir' } ] ], [ 'DivRole', [ { name: 'div' } ] ], [ 'EmbeddedObjectRole', [ { name: 'embed' } ] ], [ 'FigcaptionRole', [ { name: 'figcaption' } ] ], [ 'FigureRole', [ { name: 'figure' } ] ], [ 'FooterRole', [ { name: 'footer' } ] ], [ 'FormRole', [ { name: 'form' } ] ], [ 'HeadingRole', [ { name: 'h1' }, { name: 'h2' }, { name: 'h3' }, { name: 'h4' }, { name: 'h5' }, { name: 'h6' } ] ], [ 'IframeRole', [ { name: 'iframe' } ] ], [ 'ImageMapRole', [ { name: 'img', attributes: [Object] } ] ], [ 'ImageRole', [ { name: 'img' } ] ], [ 'InlineTextBoxRole', [ { name: 'input' } ] ], [ 'InputTimeRole', [ { name: 'input', attributes: [Object] } ] ], [ 'LabelRole', [ { name: 'label' } ] ], [ 'LegendRole', [ { name: 'legend' } ] ], [ 'LineBreakRole', [ { name: 'br' } ] ], [ 'LinkRole', [ { name: 'a', attributes: [Object] } ] ], [ 'ListBoxOptionRole', [ { name: 'option' } ] ], [ 'ListItemRole', [ { name: 'li' } ] ], [ 'ListRole', [ { name: 'ul' }, { name: 'ol' } ] ], [ 'MainRole', [ { name: 'main' } ] ], [ 'MarkRole', [ { name: 'mark' } ] ], [ 'MarqueeRole', [ { name: 'marquee' } ] ], [ 'MenuItemRole', [ { name: 'menuitem' } ] ], [ 'MenuRole', [ { name: 'menu' } ] ], [ 'MeterRole', [ { name: 'meter' } ] ], [ 'NavigationRole', [ { name: 'nav' } ] ], [ 'ParagraphRole', [ { name: 'p' } ] ], [ 'PreRole', [ { name: 'pre' } ] ], [ 'ProgressIndicatorRole', [ { name: 'progress' } ] ], [ 'RadioButtonRole', [ { name: 'input', attributes: [Object] } ] ], [ 'RowHeaderRole', [ { name: 'th', attributes: [Object] } ] ], [ 'RowRole', [ { name: 'tr' } ] ], [ 'RubyRole', [ { name: 'ruby' } ] ], [ 'SearchBoxRole', [ { name: 'input', attributes: [Object] } ] ], [ 'SliderRole', [ { name: 'input', attributes: [Object] } ] ], [ 'SpinButtonRole', [ { name: 'input', attributes: [Object] } ] ], [ 'TableRole', [ { name: 'table' } ] ], [ 'TextFieldRole', [ { name: 'input' }, { name: 'input', attributes: [Object] } ] ], [ 'TimeRole', [ { name: 'time' } ] ], [ 'VideoRole', [ { name: 'video' ] ], ] ``` ### AXObject to Role ```javascript import { AXObjectRoles } from 'axobject-query'; ``` AXObjects are mapped to their related ARIA concepts.. ```javascript [ [ 'AlertDialogRole', [ { name: 'alertdialog' } ] ], [ 'AlertRole', [ { name: 'alert' } ] ], [ 'ApplicationRole', [ { name: 'application' } ] ], [ 'ArticleRole', [ { name: 'article' } ] ], [ 'BannerRole', [ { name: 'banner' } ] ], [ 'BusyIndicatorRole', [ { attributes: [Object] } ] ], [ 'ButtonRole', [ { name: 'button' } ] ], [ 'CellRole', [ { name: 'cell' }, { name: 'gridcell' } ] ], [ 'CheckBoxRole', [ { name: 'checkbox' } ] ], [ 'ColumnHeaderRole', [ { name: 'columnheader' } ] ], [ 'ComboBoxRole', [ { name: 'combobox' } ] ], [ 'ComplementaryRole', [ { name: 'complementary' } ] ], [ 'ContentInfoRole', [ { name: 'structureinfo' } ] ], [ 'DialogRole', [ { name: 'dialog' } ] ], [ 'DirectoryRole', [ { name: 'directory' } ] ], [ 'DocumentRole', [ { name: 'document' } ] ], [ 'FeedRole', [ { name: 'feed' } ] ], [ 'FigureRole', [ { name: 'figure' } ] ], [ 'FormRole', [ { name: 'form' } ] ], [ 'GridRole', [ { name: 'grid' } ] ], [ 'GroupRole', [ { name: 'group' } ] ], [ 'HeadingRole', [ { name: 'heading' } ] ], [ 'ImageRole', [ { name: 'img' } ] ], [ 'LinkRole', [ { name: 'link' } ] ], [ 'ListBoxOptionRole', [ { name: 'option' } ] ], [ 'ListBoxRole', [ { name: 'listbox' } ] ], [ 'ListItemRole', [ { name: 'listitem' } ] ], [ 'ListRole', [ { name: 'list' } ] ], [ 'LogRole', [ { name: 'log' } ] ], [ 'MainRole', [ { name: 'main' } ] ], [ 'MarqueeRole', [ { name: 'marquee' } ] ], [ 'MathRole', [ { name: 'math' } ] ], [ 'MenuBarRole', [ { name: 'menubar' } ] ], [ 'MenuItemRole', [ { name: 'menuitem' } ] ], [ 'MenuItemCheckBoxRole', [ { name: 'menuitemcheckbox' } ] ], [ 'MenuItemRadioRole', [ { name: 'menuitemradio' } ] ], [ 'MenuRole', [ { name: 'menu' } ] ], [ 'NavigationRole', [ { name: 'navigation' } ] ], [ 'NoneRole', [ { name: 'none' } ] ], [ 'NoteRole', [ { name: 'note' } ] ], [ 'PresentationalRole', [ { name: 'presentation' } ] ], [ 'ProgressIndicatorRole', [ { name: 'progressbar' } ] ], [ 'RadioButtonRole', [ { name: 'radio' } ] ], [ 'RadioGroupRole', [ { name: 'radiogroup' } ] ], [ 'RegionRole', [ { name: 'region' } ] ], [ 'RowHeaderRole', [ { name: 'rowheader' } ] ], [ 'RowRole', [ { name: 'row' } ] ], [ 'ScrollBarRole', [ { name: 'scrollbar' } ] ], [ 'SearchRole', [ { name: 'search' } ] ], [ 'SearchBoxRole', [ { name: 'searchbox' } ] ], [ 'SliderRole', [ { name: 'slider' } ] ], [ 'SpinButtonRole', [ { name: 'spinbutton' } ] ], [ 'SplitterRole', [ { name: 'separator' } ] ], [ 'StatusRole', [ { name: 'status' } ] ], [ 'SwitchRole', [ { name: 'switch' } ] ], [ 'TabGroupRole', [ { name: 'tablist' } ] ], [ 'TabRole', [ { name: 'tab' } ] ], [ 'TableRole', [ { name: 'table' } ] ], [ 'TabListRole', [ { name: 'tablist' } ] ], [ 'TabPanelRole', [ { name: 'tabpanel' } ] ], [ 'TermRole', [ { name: 'term' } ] ], [ 'TextFieldRole', [ { name: 'textbox' } ] ], [ 'TimerRole', [ { name: 'timer' } ] ], [ 'ToggleButtonRole', [ { attributes: [Object] } ] ], [ 'ToolbarRole', [ { name: 'toolbar' } ] ], [ 'TreeRole', [ { name: 'tree' } ] ], [ 'TreeGridRole', [ { name: 'treegrid' } ] ], [ 'TreeItemRole', [ { name: 'treeitem' } ] ], [ 'UserInterfaceTooltipRole', [ { name: 'tooltip' } ] ], ] ``` ### Element to AXObject ```javascript import { elementAXObjects } from 'axobject-query'; ``` HTML elements are mapped to their related AXConcepts concepts. ```javascript [ [ { name: 'abbr' }, [ 'AbbrRole' ] ], [ { name: 'article' }, [ 'ArticleRole' ] ], [ { name: 'audio' }, [ 'AudioRole' ] ], [ { name: 'blockquote' }, [ 'BlockquoteRole' ] ], [ { name: 'button' }, [ 'ButtonRole' ] ], [ { name: 'canvas' }, [ 'CanvasRole' ] ], [ { name: 'caption' }, [ 'CaptionRole' ] ], [ { name: 'td' }, [ 'CellRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'CheckBoxRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'ColorWellRole' ] ], [ { name: 'th' }, [ 'ColumnHeaderRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'DateRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'DateTimeRole' ] ], [ { name: 'dfn' }, [ 'DefinitionRole' ] ], [ { name: 'dd' }, [ 'DescriptionListDetailRole' ] ], [ { name: 'dl' }, [ 'DescriptionListRole' ] ], [ { name: 'dt' }, [ 'DescriptionListTermRole' ] ], [ { name: 'details' }, [ 'DetailsRole' ] ], [ { name: 'dialog' }, [ 'DialogRole' ] ], [ { name: 'dir' }, [ 'DirectoryRole' ] ], [ { name: 'div' }, [ 'DivRole' ] ], [ { name: 'embed' }, [ 'EmbeddedObjectRole' ] ], [ { name: 'figcaption' }, [ 'FigcaptionRole' ] ], [ { name: 'figure' }, [ 'FigureRole' ] ], [ { name: 'footer' }, [ 'FooterRole' ] ], [ { name: 'form' }, [ 'FormRole' ] ], [ { name: 'h1' }, [ 'HeadingRole' ] ], [ { name: 'h2' }, [ 'HeadingRole' ] ], [ { name: 'h3' }, [ 'HeadingRole' ] ], [ { name: 'h4' }, [ 'HeadingRole' ] ], [ { name: 'h5' }, [ 'HeadingRole' ] ], [ { name: 'h6' }, [ 'HeadingRole' ] ], [ { name: 'iframe' }, [ 'IframeRole' ] ], [ { name: 'img', attributes: [ [Object] ] }, [ 'ImageMapRole' ] ], [ { name: 'img' }, [ 'ImageRole' ] ], [ { name: 'input' }, [ 'InlineTextBoxRole', 'TextFieldRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'InputTimeRole' ] ], [ { name: 'label' }, [ 'LabelRole' ] ], [ { name: 'legend' }, [ 'LegendRole' ] ], [ { name: 'br' }, [ 'LineBreakRole' ] ], [ { name: 'a', attributes: [ [Object] ] }, [ 'LinkRole' ] ], [ { name: 'option' }, [ 'ListBoxOptionRole' ] ], [ { name: 'li' }, [ 'ListItemRole' ] ], [ { name: 'ul' }, [ 'ListRole' ] ], [ { name: 'ol' }, [ 'ListRole' ] ], [ { name: 'main' }, [ 'MainRole' ] ], [ { name: 'mark' }, [ 'MarkRole' ] ], [ { name: 'marquee' }, [ 'MarqueeRole' ] ], [ { name: 'menuitem' }, [ 'MenuItemRole' ] ], [ { name: 'menu' }, [ 'MenuRole' ] ], [ { name: 'meter' }, [ 'MeterRole' ] ], [ { name: 'nav' }, [ 'NavigationRole' ] ], [ { name: 'p' }, [ 'ParagraphRole' ] ], [ { name: 'pre' }, [ 'PreRole' ] ], [ { name: 'progress' }, [ 'ProgressIndicatorRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'RadioButtonRole' ] ], [ { name: 'th', attributes: [ [Object] ] }, [ 'RowHeaderRole' ] ], [ { name: 'tr' }, [ 'RowRole' ] ], [ { name: 'ruby' }, [ 'RubyRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'SearchBoxRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'SliderRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'SpinButtonRole' ] ], [ { name: 'table' }, [ 'TableRole' ] ], [ { name: 'input' }, [ 'InlineTextBoxRole', 'TextFieldRole' ] ], [ { name: 'input', attributes: [ [Object] ] }, [ 'TextFieldRole' ] ], [ { name: 'time' }, [ 'TimeRole' ] ], [ { name: 'video' }, [ 'VideoRole' ] ], ] ``` ## License Copyright (c) 2021 A11yance --- END ORIGINAL BYTES --- ================================================================ bail@2.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/bail/-/bail-2.0.2.tgz Locked integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 4d2cadf873fc59eb721b2ea7177954bcd528e9602d5f1337a118fb2d39407aef; bytes: 2995 --- BEGIN ORIGINAL BYTES --- # bail [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Throw if given an error. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`bail(err?)`](#bailerr) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package throws a given error. ## When should I use this? Use this package if you’re building some scripts that might theoretically get errors but frequently don’t and you keep writing `if (error) throw error` over and over again and you’re just really done with that. ## Install This package is [ESM only][esm]. In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: ```sh npm install bail ``` In Deno with [Skypack][]: ```js import {bail} from 'https://cdn.skypack.dev/bail@2?dts' ``` In browsers with [Skypack][]: ```html ``` ## Use ```js import {bail} from 'bail' bail() bail(new Error('failure')) // Error: failure // at repl:1:6 // at REPLServer.defaultEval (repl.js:154:27) // … ``` ## API This package exports the following identifier: `bail`. There is no default export. ### `bail(err?)` Throw a given error (`Error?`). ## Types This package is fully typed with [TypeScript][]. There are no extra exported types. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`noop`][noop] * [`noop2`][noop2] * [`noop3`][noop3] ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/bail/workflows/main/badge.svg [build]: https://github.com/wooorm/bail/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bail.svg [coverage]: https://codecov.io/github/wooorm/bail [downloads-badge]: https://img.shields.io/npm/dm/bail.svg [downloads]: https://www.npmjs.com/package/bail [size-badge]: https://img.shields.io/bundlephobia/minzip/bail.svg [size]: https://bundlephobia.com/result?p=bail [npm]: https://docs.npmjs.com/cli/install [skypack]: https://www.skypack.dev [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [noop]: https://www.npmjs.com/package/noop [noop2]: https://www.npmjs.com/package/noop2 [noop3]: https://www.npmjs.com/package/noop3 --- END ORIGINAL BYTES --- ================================================================ base64-js@0.0.8 Declared package license: MIT Published archive: https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz Locked integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.MIT SHA-256: 136239d1783a151cdbf6fd7935dd945082b9d0ee2cbb8497cc0ae49e8a743a47; bytes: 1066 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2014 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e094353c1598ff30bb889996a52acc6b4b4f19f20c05105787284a1f80050497; bytes: 916 --- BEGIN ORIGINAL BYTES --- base64-js ========= `base64-js` does basic base64 encoding/decoding in pure JS. [![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js) [![testling badge](https://ci.testling.com/beatgammit/base64-js.png)](https://ci.testling.com/beatgammit/base64-js) Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data. Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does. ## install With [npm](https://npmjs.org) do: `npm install base64-js` ## methods `var base64 = require('base64-js')` `base64` has two exposed functions, `toByteArray` and `fromByteArray`, which both take a single argument. * `toByteArray` - Takes a base64 string and returns a byte array * `fromByteArray` - Takes a byte array and returns a base64 string ## license MIT --- END ORIGINAL BYTES --- ================================================================ boolbase@1.0.0 Declared package license: ISC Published archive: https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz Locked integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier ISC. ================================================================ camelize@1.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz Locked integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 435a6722c786b0a56fbe7387028f1d9d3f3a2d0fb615bb8fee118727c3f59b7b; bytes: 1073 --- BEGIN ORIGINAL BYTES --- This software is released under the MIT license: 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 88e5683e8bead12c040aa686ecde70e0ff3c5cb3b4cc1f270907f5b417d8edab; bytes: 1984 --- BEGIN ORIGINAL BYTES --- # camelize [![Version Badge][npm-version-svg]][package-url] [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] recursively transform key strings to camel-case # example ``` js var camelize = require('camelize'); var obj = { fee_fie_foe: 'fum', beep_boop: [ { 'abc.xyz': 'mno' }, { 'foo-bar': 'baz' } ] }; var res = camelize(obj); console.log(JSON.stringify(res, null, 2)); ``` output: ``` { "feeFieFoe": "fum", "beepBoop": [ { "abcXyz": "mno" }, { "fooBar": "baz" } ] } ``` # methods ``` js var camelize = require('camelize') ``` ## camelize(obj) Convert the key strings in `obj` to camel-case recursively. # install With [npm](https://npmjs.org) do: ``` npm install camelize ``` To use in the browser, use [browserify](http://browserify.org). # license MIT [package-url]: https://npmjs.org/package/camelize [npm-version-svg]: https://versionbadg.es/ljharb/camelize.svg [deps-svg]: https://david-dm.org/ljharb/camelize.svg [deps-url]: https://david-dm.org/ljharb/camelize [dev-deps-svg]: https://david-dm.org/ljharb/camelize/dev-status.svg [dev-deps-url]: https://david-dm.org/ljharb/camelize#info=devDependencies [npm-badge-png]: https://nodei.co/npm/camelize.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/camelize.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/camelize.svg [downloads-url]: https://npm-stat.com/charts.html?package=camelize [codecov-image]: https://codecov.io/gh/ljharb/camelize/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/ljharb/camelize/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/camelize [actions-url]: https://github.com/ljharb/camelize/actions --- END ORIGINAL BYTES --- ================================================================ ccount@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz Locked integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 204504797c25d7e3e94d250a9dadf7f6dcb0627e9cd8f26df54c2c9f9e1d0868; bytes: 3448 --- BEGIN ORIGINAL BYTES --- # ccount [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Count how often a character (or substring) is used in a string. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`ccount(value, character)`](#ccountvalue-character) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a small utility that helps you find how frequently a substring occurs in another string. ## When should I use this? I find this particularly useful when generating code, for example, when building a string that can either be double or single quoted. I use this utility to choose single quotes when double quotes are used more frequently, and double quotes otherwise. ## Install This package is [ESM only][esm]. In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: ```sh npm install ccount ``` In Deno with [Skypack][]: ```js import {ccount} from 'https://cdn.skypack.dev/ccount@2?dts' ``` In browsers with [Skypack][]: ```html ``` ## Use ```js import {ccount} from 'ccount' ccount('foo(bar(baz)', '(') // => 2 ccount('foo(bar(baz)', ')') // => 1 ``` ## API This package exports the following identifier: `ccount`. There is no default export. ### `ccount(value, character)` Count how often a character (or substring) is used in a string. ###### Parameters * `value` (`string`) — value to search in * `character` (`string`) — character (or substring) to look for ###### Returns `number` — number of times `character` occurred in `value`. ## Types This package is fully typed with [TypeScript][]. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`wooorm/longest-streak`](https://github.com/wooorm/longest-streak) — count of longest repeating streak of `character` in `value` * [`wooorm/direction`](https://github.com/wooorm/direction) — detect directionality: left-to-right, right-to-left, or neutral ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/ccount/workflows/main/badge.svg [build]: https://github.com/wooorm/ccount/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/ccount.svg [coverage]: https://codecov.io/github/wooorm/ccount [downloads-badge]: https://img.shields.io/npm/dm/ccount.svg [downloads]: https://www.npmjs.com/package/ccount [size-badge]: https://img.shields.io/bundlephobia/minzip/ccount.svg [size]: https://bundlephobia.com/result?p=ccount [npm]: https://docs.npmjs.com/cli/install [skypack]: https://www.skypack.dev [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ --- END ORIGINAL BYTES --- ================================================================ character-entities-html4@2.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz Locked integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 4eb2c47eabc4790f7c7d4b594d1fb7e6c886a0d23ffc7ae74db628abf99af459; bytes: 4145 --- BEGIN ORIGINAL BYTES --- # character-entities-html4 [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Map of named character references from HTML 4. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`characterEntitiesHtml4`](#characterentitieshtml4) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a map of named character references in HTML 4 to the characters they represent. ## When should I use this? Maybe when you’re writing an HTML parser or minifier, but otherwise probably never! Even then, it might be better to use [`parse-entities`][parse-entities] or [`stringify-entities`][stringify-entities]. ## Install This package is [ESM only][esm]. In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: ```sh npm install character-entities-html4 ``` In Deno with [Skypack][]: ```js import {characterEntitiesHtml4} from 'https://cdn.skypack.dev/character-entities-html4@2?dts' ``` In browsers with [Skypack][]: ```html ``` ## Use ```js import {characterEntitiesHtml4} from 'character-entities-html4' console.log(characterEntitiesHtml4.AElig) // => 'Æ' console.log(characterEntitiesHtml4.aelig) // => 'æ' console.log(characterEntitiesHtml4.amp) // => '&' console.log(characterEntitiesHtml4.apos) // => undefined ``` ## API This package exports the following identifiers: `characterEntitiesHtml4`. There is no default export. ### `characterEntitiesHtml4` Map of case sensitive named character references from HTML 4. See [`w3.org`][html] for more info. ## Types This package is fully typed with [TypeScript][]. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`parse-entities`](https://github.com/wooorm/parse-entities) — parse (decode) character references * [`stringify-entities`](https://github.com/wooorm/stringify-entities) — serialize (encode) character references * [`character-entities`](https://github.com/wooorm/character-entities) — info on character entities * [`character-entities-invalid`](https://github.com/wooorm/character-entities-invalid) — info on invalid numeric character references * [`character-entities-legacy`](https://github.com/wooorm/character-entities-legacy) — info on legacy named character references ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/character-entities-html4/workflows/main/badge.svg [build]: https://github.com/wooorm/character-entities-html4/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities-html4.svg [coverage]: https://codecov.io/github/wooorm/character-entities-html4 [downloads-badge]: https://img.shields.io/npm/dm/character-entities-html4.svg [downloads]: https://www.npmjs.com/package/character-entities-html4 [size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities-html4.svg [size]: https://bundlephobia.com/result?p=character-entities-html4 [npm]: https://docs.npmjs.com/cli/install [skypack]: https://www.skypack.dev [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [parse-entities]: https://github.com/wooorm/parse-entities [stringify-entities]: https://github.com/wooorm/stringify-entities [html]: https://www.w3.org/TR/html4/sgml/entities.html --- END ORIGINAL BYTES --- ================================================================ character-entities-legacy@3.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz Locked integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 863e4d3983635445107b6aec63878c30fc0ac520724486198b0c1e6d3ed59078; bytes: 4480 --- BEGIN ORIGINAL BYTES --- # character-entities-legacy [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] List of legacy HTML named character references that don’t need a trailing semicolon. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`characterEntitiesLegacy`](#characterentitieslegacy) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a list of certain named character references, that due to legacy reasons, don’t need a trailing semicolon in HTML. For example, `©` is perfectly fine for `©`! ## When should I use this? Maybe when you’re writing an HTML parser or minifier, but otherwise probably never! Even then, it might be better to use [`parse-entities`][parse-entities] or [`stringify-entities`][stringify-entities]. ## Install This package is [ESM only][esm]. In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: ```sh npm install character-entities-legacy ``` In Deno with [Skypack][]: ```js import {characterEntitiesLegacy} from 'https://cdn.skypack.dev/character-entities-legacy@2?dts' ``` In browsers with [Skypack][]: ```html ``` ## Use ```js import {characterEntitiesLegacy} from 'character-entities-legacy' console.log(characterEntitiesLegacy.includes('copy')) // => true console.log(characterEntitiesLegacy.includes('frac34')) // => true console.log(characterEntitiesLegacy.includes('sup1')) // => true ``` ## API This package exports the following identifiers: `characterEntitiesLegacy`. There is no default export. ### `characterEntitiesLegacy` List of (case sensitive) legacy character entity names. [`wooorm/character-entities`][character-entities] holds their decoded values. See [`whatwg/html`][html] for more info. ## Types This package is fully typed with [TypeScript][]. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`wooorm/parse-entities`](https://github.com/wooorm/parse-entities) — parse (decode) character references * [`wooorm/stringify-entities`](https://github.com/wooorm/stringify-entities) — serialize (encode) character references * [`wooorm/character-entities`](https://github.com/wooorm/character-entities) — info on character entities * [`wooorm/character-entities-html4`](https://github.com/wooorm/character-entities-html4) — info on HTML4 character entities * [`wooorm/character-reference-invalid`](https://github.com/wooorm/character-reference-invalid) — info on invalid numeric character references ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/character-entities-legacy/workflows/main/badge.svg [build]: https://github.com/wooorm/character-entities-legacy/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities-legacy.svg [coverage]: https://codecov.io/github/wooorm/character-entities-legacy [downloads-badge]: https://img.shields.io/npm/dm/character-entities-legacy.svg [downloads]: https://www.npmjs.com/package/character-entities-legacy [size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities-legacy.svg [size]: https://bundlephobia.com/result?p=character-entities-legacy [npm]: https://docs.npmjs.com/cli/install [skypack]: https://www.skypack.dev [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [html]: https://github.com/whatwg/html-build/blob/HEAD/entities/json-entities-legacy.inc [parse-entities]: https://github.com/wooorm/parse-entities [stringify-entities]: https://github.com/wooorm/stringify-entities [character-entities]: https://github.com/wooorm/character-entities --- END ORIGINAL BYTES --- ================================================================ chokidar@5.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz Locked integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: bdfd5e0edb6089e6586c8f15e6a86fab83ffbeeda3b3b7b33734ccb8c5906965; bytes: 1124 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2012 Paul Miller (https://paulmillr.com), Elan Shanker 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 1b82b52f67c8b964ad6f1c9e1ea052d305d9a16421a48f732c5d2d5a3d821b86; bytes: 13357 --- BEGIN ORIGINAL BYTES --- # Chokidar [![Weekly downloads](https://img.shields.io/npm/dw/chokidar.svg)](https://github.com/paulmillr/chokidar) Minimal and efficient cross-platform file watching library ## Why? There are many reasons to prefer Chokidar to raw fs.watch / fs.watchFile in 2026: - Events are properly reported - macOS events report filenames - events are not reported twice - changes are reported as add / change / unlink instead of useless `rename` - Atomic writes are supported, using `atomic` option - Some file editors use them - Chunked writes are supported, using `awaitWriteFinish` option - Large files are commonly written in chunks - File / dir filtering is supported - Symbolic links are supported - Recursive watching is always supported, instead of partial when using raw events - Includes a way to limit recursion depth Chokidar relies on the Node.js core `fs` module, but when using `fs.watch` and `fs.watchFile` for watching, it normalizes the events it receives, often checking for truth by getting file stats and/or dir contents. The `fs.watch`-based implementation is the default, which avoids polling and keeps CPU usage down. Be advised that chokidar will initiate watchers recursively for everything within scope of the paths that have been specified, so be judicious about not wasting system resources by watching much more than needed. For some cases, `fs.watchFile`, which utilizes polling and uses more resources, is used. Made for [Brunch](https://brunch.io/) in 2012, it is now used in [~30 million repositories](https://www.npmjs.com/browse/depended/chokidar) and has proven itself in production environments. - **Nov 2025 update:** v5 is out. Makes package ESM-only and increases minimum node.js requirement to v20. - **Sep 2024 update:** v4 is out! It decreases dependency count from 13 to 1, removes support for globs, adds support for ESM / Common.js modules, and bumps minimum node.js version from v8 to v14. Check out [upgrading](#upgrading). ## Getting started Install with npm: ```sh npm install chokidar ``` Use it in your code: ```javascript import chokidar from 'chokidar'; // One-liner for current directory chokidar.watch('.').on('all', (event, path) => { console.log(event, path); }); // Extended options // ---------------- // Initialize watcher. const watcher = chokidar.watch('file, dir, or array', { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.js'), // only watch js files persistent: true, }); // Something to use when events are received. const log = console.log.bind(console); // Add event listeners. watcher .on('add', (path) => log(`File ${path} has been added`)) .on('change', (path) => log(`File ${path} has been changed`)) .on('unlink', (path) => log(`File ${path} has been removed`)); // More possible events. watcher .on('addDir', (path) => log(`Directory ${path} has been added`)) .on('unlinkDir', (path) => log(`Directory ${path} has been removed`)) .on('error', (error) => log(`Watcher error: ${error}`)) .on('ready', () => log('Initial scan complete. Ready for changes')) .on('raw', (event, path, details) => { // internal log('Raw event info:', event, path, details); }); // 'add', 'addDir' and 'change' events also receive stat() results as second // argument when available: https://nodejs.org/api/fs.html#fs_class_fs_stats watcher.on('change', (path, stats) => { if (stats) console.log(`File ${path} changed size to ${stats.size}`); }); // Watch new files. watcher.add('new-file'); watcher.add(['new-file-2', 'new-file-3']); // Get list of actual paths being watched on the filesystem let watchedPaths = watcher.getWatched(); // Un-watch some files. await watcher.unwatch('new-file'); // Stop watching. The method is async! await watcher.close().then(() => console.log('closed')); // Full list of options. See below for descriptions. // Do not use this example! chokidar.watch('file', { persistent: true, // ignore .txt files ignored: (file) => file.endsWith('.txt'), // watch only .txt files // ignored: (file, _stats) => _stats?.isFile() && !file.endsWith('.txt'), awaitWriteFinish: true, // emit single event when chunked writes are completed atomic: true, // emit proper events when "atomic writes" (mv _tmp file) are used // The options also allow specifying custom intervals in ms // awaitWriteFinish: { // stabilityThreshold: 2000, // pollInterval: 100 // }, // atomic: 100, interval: 100, binaryInterval: 300, cwd: '.', depth: 99, followSymlinks: true, ignoreInitial: false, ignorePermissionErrors: false, usePolling: false, alwaysStat: false, }); ``` `chokidar.watch(paths, [options])` - `paths` (string or array of strings). Paths to files, dirs to be watched recursively. - `options` (object) Options object as defined below: #### Persistence - `persistent` (default: `true`). Indicates whether the process should continue to run as long as files are being watched. #### Path filtering - `ignored` function, regex, or path. Defines files/paths to be ignored. The whole relative or absolute path is tested, not just filename. If a function with two arguments is provided, it gets called twice per path - once with a single argument (the path), second time with two arguments (the path and the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path). - `ignoreInitial` (default: `false`). If set to `false` then `add`/`addDir` events are also emitted for matching paths while instantiating the watching as chokidar discovers these file paths (before the `ready` event). - `followSymlinks` (default: `true`). When `false`, only the symlinks themselves will be watched for changes instead of following the link references and bubbling events through the link's path. - `cwd` (no default). The base directory from which watch `paths` are to be derived. Paths emitted with events will be relative to this. #### Performance - `usePolling` (default: `false`). Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU utilization, consider setting this to `false`. It is typically necessary to **set this to `true` to successfully watch files over a network**, and it may be necessary to successfully watch files in other non-standard situations. Setting to `true` explicitly on MacOS overrides the `useFsEvents` default. You may also set the CHOKIDAR_USEPOLLING env variable to true (1) or false (0) in order to override this option. - _Polling-specific settings_ (effective when `usePolling: true`) - `interval` (default: `100`). Interval of file system polling, in milliseconds. You may also set the CHOKIDAR_INTERVAL env variable to override this option. - `binaryInterval` (default: `300`). Interval of file system polling for binary files. ([see list of binary extensions](https://github.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json)) - `alwaysStat` (default: `false`). If relying upon the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object that may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is provided even in cases where it wasn't already available from the underlying watch events. - `depth` (default: `undefined`). If set, limits how many levels of subdirectories will be traversed. - `awaitWriteFinish` (default: `false`). By default, the `add` event will fire when a file first appears on disk, before the entire file has been written. Furthermore, in some cases some `change` events will be emitted while the file is being written. In some cases, especially when watching for large files there will be a need to wait for the write operation to finish before responding to a file creation or modification. Setting `awaitWriteFinish` to `true` (or a truthy value) will poll file size, holding its `add` and `change` events until the size does not change for a configurable amount of time. The appropriate duration setting is heavily dependent on the OS and hardware. For accurate detection this parameter should be relatively high, making file watching much less responsive. Use with caution. - _`options.awaitWriteFinish` can be set to an object in order to adjust timing params:_ - `awaitWriteFinish.stabilityThreshold` (default: 2000). Amount of time in milliseconds for a file size to remain constant before emitting its event. - `awaitWriteFinish.pollInterval` (default: 100). File size polling interval, in milliseconds. #### Errors - `ignorePermissionErrors` (default: `false`). Indicates whether to watch files that don't have read permissions if possible. If watching fails due to `EPERM` or `EACCES` with this set to `true`, the errors will be suppressed silently. - `atomic` (default: `true` if `useFsEvents` and `usePolling` are `false`). Automatically filters out artifacts that occur when using editors that use "atomic writes" instead of writing directly to the source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change` event rather than `unlink` then `add`. If the default of 100 ms does not work well for you, you can override it by setting `atomic` to a custom value, in milliseconds. ### Methods & Events `chokidar.watch()` produces an instance of `FSWatcher`. Methods of `FSWatcher`: - `.add(path / paths)`: Add files, directories for tracking. Takes an array of strings or just one string. - `.on(event, callback)`: Listen for an FS event. Available events: `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `ready`, `raw`, `error`. Additionally `all` is available which gets emitted with the underlying event name and path for every event other than `ready`, `raw`, and `error`. `raw` is internal, use it carefully. - `.unwatch(path / paths)`: Stop watching files or directories. Takes an array of strings or just one string. - `.close()`: **async** Removes all listeners from watched files. Asynchronous, returns Promise. Use with `await` to ensure bugs don't happen. - `.getWatched()`: Returns an object representing all the paths on the file system being watched by this `FSWatcher` instance. The object's keys are all the directories (using absolute paths unless the `cwd` option was used), and the values are arrays of the names of the items contained in each directory. ### CLI Check out third party [chokidar-cli](https://github.com/open-cli-tools/chokidar-cli), which allows to execute a command on each change, or get a stdio stream of change events. ## Troubleshooting Sometimes, Chokidar runs out of file handles, causing `EMFILE` and `ENOSP` errors: - `bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell` - `Error: watch /home/ ENOSPC` There are two things that can cause it. 1. Exhausted file handles for generic fs operations - Can be solved by using [graceful-fs](https://www.npmjs.com/package/graceful-fs), which can monkey-patch native `fs` module used by chokidar: `let fs = require('fs'); let grfs = require('graceful-fs'); grfs.gracefulify(fs);` - Can also be solved by tuning OS: `echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`. 2. Exhausted file handles for `fs.watch` - Can't seem to be solved by graceful-fs or OS tuning - It's possible to start using `usePolling: true`, which will switch backend to resource-intensive `fs.watchFile` All fsevents-related issues (`WARN optional dep failed`, `fsevents is not a constructor`) are solved by upgrading to v4+. ## Changelog - **v4 (Sep 2024):** remove glob support and bundled fsevents. Decrease dependency count from 13 to 1. Rewrite in typescript. Bumps minimum node.js requirement to v14+ - **v3 (Apr 2019):** massive CPU & RAM consumption improvements; reduces deps / package size by a factor of 17x and bumps Node.js requirement to v8.16+. - **v2 (Dec 2017):** globs are now posix-style-only. Tons of bugfixes. - **v1 (Apr 2015):** glob support, symlink support, tons of bugfixes. Node 0.8+ is supported - **v0.1 (Apr 2012):** Initial release, extracted from [Brunch](https://github.com/brunch/brunch/blob/9847a065aea300da99bd0753f90354cde9de1261/src/helpers.coffee#L66) ### Upgrading If you've used globs before and want do replicate the functionality with v4: ```js // v3 chok.watch('**/*.js'); chok.watch('./directory/**/*'); // v4 chok.watch('.', { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.js'), // only watch js files }); chok.watch('./directory'); // other way import { glob } from 'node:fs/promises'; const watcher = watch(await Array.fromAsync(glob('**/*.js'))); // unwatching // v3 chok.unwatch('**/*.js'); // v4 chok.unwatch(await Array.fromAsync(glob('**/*.js'))); ``` ## Also Why was chokidar named this way? What's the meaning behind it? > Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four). This word is also used in other languages like Urdu as (چوکیدار) which is widely used in Pakistan and India. ## License MIT (c) Paul Miller (), see [LICENSE](LICENSE) file. --- END ORIGINAL BYTES --- ================================================================ ci-info@4.4.0 Declared package license: MIT Published archive: https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz Locked integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: f58943cb354fb2707fea2f7b26b04e6014ddb56835cdfd414c9d2c6c59165b64; bytes: 1086 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2016 Thomas Watson Steen 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 726f8f11b0e9e630e7e21ad84a1aa7a6bfab63d66983e8ab4bdc3881ba354a24; bytes: 8696 --- BEGIN ORIGINAL BYTES --- # ci-info Get details about the current Continuous Integration environment. Please [open an issue](https://github.com/watson/ci-info/issues/new?template=ci-server-not-detected.md) if your CI server isn't properly detected :) [![npm](https://img.shields.io/npm/v/ci-info.svg)](https://www.npmjs.com/package/ci-info) [![Tests](https://github.com/watson/ci-info/workflows/Tests/badge.svg)](https://github.com/watson/ci-info/actions) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) ## Installation ```bash npm install ci-info --save ``` ## Usage ```js var ci = require('ci-info') if (ci.isCI) { console.log('The name of the CI server is:', ci.name) } else { console.log('This program is not running on a CI server') } ``` ## Supported CI tools Officially supported CI servers: | Name | Constant | isPR | | ------------------------------------------------------------------------------- | ----------------------- | ---- | | [Agola CI](https://agola.io/) | `ci.AGOLA` | ✅ | | [Alpic](https://alpic.ai/) | `ci.ALPIC` | 🚫 | | [Appcircle](https://appcircle.io/) | `ci.APPCIRCLE` | ✅ | | [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | ✅ | | [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | ✅ | | [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES` | ✅ | | [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian | `ci.BAMBOO` | 🚫 | | [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) | `ci.BITBUCKET` | ✅ | | [Bitrise](https://www.bitrise.io/) | `ci.BITRISE` | ✅ | | [Buddy](https://buddy.works/) | `ci.BUDDY` | ✅ | | [Buildkite](https://buildkite.com) | `ci.BUILDKITE` | ✅ | | [CircleCI](http://circleci.com) | `ci.CIRCLE` | ✅ | | [Cirrus CI](https://cirrus-ci.org) | `ci.CIRRUS` | ✅ | | [Cloudflare Pages](https://pages.cloudflare.com/) | `ci.CLOUDFLARE_PAGES` | 🚫 | | [Cloudflare Workers](https://pages.cloudflare.com/) | `ci.CLOUDFLARE_WORKERS` | 🚫 | | [Codefresh](https://codefresh.io/) | `ci.CODEFRESH` | ✅ | | [Codeship](https://codeship.com) | `ci.CODESHIP` | 🚫 | | [Drone](https://drone.io) | `ci.DRONE` | ✅ | | [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 | | [Earthly CI](https://earthly.dev/) | `ci.EARTHLY` | 🚫 | | [Expo Application Services](https://expo.dev/eas) | `ci.EAS` | 🚫 | | [Gerrit CI](https://www.gerritcodereview.com) | `ci.GERRIT` | 🚫 | | [GitHub Actions](https://github.com/features/actions/) | `ci.GITHUB_ACTIONS` | ✅ | | [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | ✅ | | [Gitea Actions](https://about.gitea.com/) | `ci.GITEA_ACTIONS` | 🚫 | | [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 | | [Google Cloud Build](https://cloud.google.com/build) | `ci.GOOGLE_CLOUD_BUILD` | 🚫 | | [Harness CI](https://www.harness.io/products/continuous-integration) | `ci.HARNESS` | 🚫 | | [Heroku](https://www.heroku.com) | `ci.HEROKU` | 🚫 | | [Hudson](http://hudson-ci.org) | `ci.HUDSON` | 🚫 | | [Jenkins CI](https://jenkins-ci.org) | `ci.JENKINS` | ✅ | | [LayerCI](https://layerci.com/) | `ci.LAYERCI` | ✅ | | [Magnum CI](https://magnum-ci.com) | `ci.MAGNUM` | 🚫 | | [Netlify CI](https://www.netlify.com/) | `ci.NETLIFY` | ✅ | | [Nevercode](http://nevercode.io/) | `ci.NEVERCODE` | ✅ | | [Prow](https://docs.prow.k8s.io/) | `ci.PROW` | 🚫 | | [ReleaseHub](https://releasehub.com/) | `ci.RELEASEHUB` | 🚫 | | [Render](https://render.com/) | `ci.RENDER` | ✅ | | [Sail CI](https://sail.ci/) | `ci.SAIL` | ✅ | | [Screwdriver](https://screwdriver.cd/) | `ci.SCREWDRIVER` | ✅ | | [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` | ✅ | | [Sourcehut](https://sourcehut.org/) | `ci.SOURCEHUT` | 🚫 | | [Strider CD](https://strider-cd.github.io/) | `ci.STRIDER` | 🚫 | | [TaskCluster](http://docs.taskcluster.net) | `ci.TASKCLUSTER` | 🚫 | | [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains | `ci.TEAMCITY` | 🚫 | | [Travis CI](http://travis-ci.org) | `ci.TRAVIS` | ✅ | | [Vela](https://go-vela.github.io/docs/) | `ci.VELA` | ✅ | | [Vercel](https://vercel.com/) | `ci.VERCEL` | ✅ | | [Visual Studio App Center](https://appcenter.ms/) | `ci.APPCENTER` | 🚫 | | [Woodpecker](https://woodpecker-ci.org/) | `ci.WOODPECKER` | ✅ | ## API ### `ci.name` Returns a string containing name of the CI server the code is running on. If CI server is not detected, it returns `null`. Don't depend on the value of this string not to change for a specific vendor. If you find your self writing `ci.name === 'Travis CI'`, you most likely want to use `ci.TRAVIS` instead. ### `ci.isCI` Returns a boolean. Will be `true` if the code is running on a CI server, otherwise `false`. Some CI servers not listed here might still trigger the `ci.isCI` boolean to be set to `true` if they use certain vendor neutral environment variables. In those cases `ci.name` will be `null` and no vendor specific boolean will be set to `true`. ### `ci.isPR` Returns a boolean if PR detection is supported for the current CI server. Will be `true` if a PR is being tested, otherwise `false`. If PR detection is not supported for the current CI server, the value will be `null`. ### `ci.` A vendor specific boolean constant is exposed for each support CI vendor. A constant will be `true` if the code is determined to run on the given CI server, otherwise `false`. Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a complete list, see the support table above. ## Disable CI Checks To disable CI checks and vendor assertion, set the environment variable ``` CI=false ``` ## Ports ci-info has been ported to the following languages | Language | Repository | |----------|------------| | Go | https://github.com/hofstadter-io/cinful | | Rust | https://github.com/sagiegurari/ci_info | | Kotlin | https://github.com/cloudflightio/ci-info | ## License [MIT](LICENSE) --- END ORIGINAL BYTES --- ================================================================ clsx@2.1.1 Declared package license: MIT Published archive: https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz Locked integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 9a9edad7baae52622bddf3c15b2ef8a33d2c89f2d25408ad13e8a7481c6b0c97; bytes: 1104 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Luke Edwards (lukeed.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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 6c0057ca6bc7cc39a2ba857e114929168ce65daaa5ddb2242b40bc4de6dc573a; bytes: 4003 --- BEGIN ORIGINAL BYTES --- # clsx [![CI](https://github.com/lukeed/clsx/workflows/CI/badge.svg)](https://github.com/lukeed/clsx/actions?query=workflow%3ACI) [![codecov](https://badgen.net/codecov/c/github/lukeed/clsx)](https://codecov.io/gh/lukeed/clsx) [![licenses](https://licenses.dev/b/npm/clsx)](https://licenses.dev/npm/clsx) > A tiny (239B) utility for constructing `className` strings conditionally.
Also serves as a [faster](bench) & smaller drop-in replacement for the `classnames` module. This module is available in three formats: * **ES Module**: `dist/clsx.mjs` * **CommonJS**: `dist/clsx.js` * **UMD**: `dist/clsx.min.js` ## Install ``` $ npm install --save clsx ``` ## Usage ```js import clsx from 'clsx'; // or import { clsx } from 'clsx'; // Strings (variadic) clsx('foo', true && 'bar', 'baz'); //=> 'foo bar baz' // Objects clsx({ foo:true, bar:false, baz:isTrue() }); //=> 'foo baz' // Objects (variadic) clsx({ foo:true }, { bar:false }, null, { '--foobar':'hello' }); //=> 'foo --foobar' // Arrays clsx(['foo', 0, false, 'bar']); //=> 'foo bar' // Arrays (variadic) clsx(['foo'], ['', 0, false, 'bar'], [['baz', [['hello'], 'there']]]); //=> 'foo bar baz hello there' // Kitchen sink (with nesting) clsx('foo', [1 && 'bar', { baz:false, bat:null }, ['hello', ['world']]], 'cya'); //=> 'foo bar hello world cya' ``` ## API ### clsx(...input) Returns: `String` #### input Type: `Mixed` The `clsx` function can take ***any*** number of arguments, each of which can be an Object, Array, Boolean, or String. > **Important:** _Any_ falsey values are discarded!
Standalone Boolean values are discarded as well. ```js clsx(true, false, '', null, undefined, 0, NaN); //=> '' ``` ## Modes There are multiple "versions" of `clsx` available, which allows you to bring only the functionality you need! #### `clsx` > **Size (gzip):** 239 bytes
> **Availability:** CommonJS, ES Module, UMD The default `clsx` module; see [API](#API) for info. ```js import { clsx } from 'clsx'; // or import clsx from 'clsx'; ``` #### `clsx/lite` > **Size (gzip):** 140 bytes
> **Availability:** CommonJS, ES Module
> **CAUTION:** Accepts **ONLY** string arguments! Ideal for applications that ***only*** use the string-builder pattern. Any non-string arguments are ignored! ```js import { clsx } from 'clsx/lite'; // or import clsx from 'clsx/lite'; // string clsx('hello', true && 'foo', false && 'bar'); // => "hello foo" // NOTE: Any non-string input(s) ignored clsx({ foo: true }); //=> "" ``` ## Benchmarks For snapshots of cross-browser results, check out the [`bench`](bench) directory~! ## Support All versions of Node.js are supported. All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+). >**Note:** For IE8 support and older, please install `clsx@1.0.x` and beware of [#17](https://github.com/lukeed/clsx/issues/17). ## Tailwind Support Here some additional (optional) steps to enable classes autocompletion using `clsx` with Tailwind CSS.
Visual Studio Code 1. [Install the "Tailwind CSS IntelliSense" Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) 2. Add the following to your [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings): ```json { "tailwindCSS.experimental.classRegex": [ ["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] ] } ```
You may find the [`clsx/lite`](#clsxlite) module useful within Tailwind contexts. This is especially true if/when your application **only** composes classes in this pattern: ```js clsx('text-base', props.active && 'text-primary', props.className); ``` ## Related - [obj-str](https://github.com/lukeed/obj-str) - A smaller (96B) and similiar utility that only works with Objects. ## License MIT © [Luke Edwards](https://lukeed.com) --- END ORIGINAL BYTES --- ================================================================ color-name@1.1.4 Declared package license: MIT Published archive: https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz Locked integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c064f7a3e353bc1bc977f3c897941c75ef763f44f41677e0a15370ca0853d6e2; bytes: 1085 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2015 Dmitry Ivanov 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 796aef7006b975d2a8a5bad00219c9884e67a51ef96d36b3a0df622e60924c1c; bytes: 384 --- BEGIN ORIGINAL BYTES --- A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. [![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) ```js var colors = require('color-name'); colors.red //[255,0,0] ``` --- END ORIGINAL BYTES --- ================================================================ comma-separated-tokens@2.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz Locked integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: d94fc2a50bef51ac17f5ac013f289fee93cd24e7b05212e12dbcb6e35dc205e3; bytes: 4242 --- BEGIN ORIGINAL BYTES --- # comma-separated-tokens [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Parse and stringify comma-separated tokens. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`parse(value)`](#parsevalue) * [`stringify(values[, options])`](#stringifyvalues-options) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [Security](#security) * [License](#license) ## What is this? This is a tiny package that can parse and stringify comma-separated tokens, as used for example in the HTML `accept` attribute, according to the [WHATWG spec][spec]. ## When should I use this? This package is rather niche, it’s low-level and particularly useful when working with [hast][]. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+), install with [npm][]: ```sh npm install comma-separated-tokens ``` In Deno with [`esm.sh`][esmsh]: ```js import {parse, stringify} from 'https://esm.sh/comma-separated-tokens@2' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {parse, stringify} from 'comma-separated-tokens' parse(' a ,b,,d d ') //=> ['a', 'b', '', 'd d'] stringify(['a', 'b', '', 'd d']) //=> 'a, b, , d d' ``` ## API This package exports the identifier `parse` and `stringify`. There is no default export. ### `parse(value)` Parse commma-separated tokens (`string`) to an array of strings (`Array`), according to the [WHATWG spec][spec]. ### `stringify(values[, options])` Serialize an array of strings or numbers (`Array`) to comma-separated tokens (`string`). Handles empty items at start or end correctly. > 👉 **Note**: it’s not possible to specify initial or final whitespace per > value. ##### `options` Configuration (optional). ###### `options.padLeft` Whether to pad a space before a token (`boolean`, default: `true`). ###### `options.padRight` Whether to pad a space after a token (`boolean`, default: `false`). ## Types This package is fully typed with [TypeScript][]. It exports the additional type `Options`. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers. ## Related * [`space-separated-tokens`](https://github.com/wooorm/space-separated-tokens) — parse/stringify space-separated tokens * [`collapse-white-space`](https://github.com/wooorm/collapse-white-space) — replace multiple white-space characters with a single space * [`property-information`](https://github.com/wooorm/property-information) — info on HTML properties ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## Security This package is safe. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/comma-separated-tokens/workflows/main/badge.svg [build]: https://github.com/wooorm/comma-separated-tokens/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/comma-separated-tokens.svg [coverage]: https://codecov.io/github/wooorm/comma-separated-tokens [downloads-badge]: https://img.shields.io/npm/dm/comma-separated-tokens.svg [downloads]: https://www.npmjs.com/package/comma-separated-tokens [size-badge]: https://img.shields.io/bundlephobia/minzip/comma-separated-tokens.svg [size]: https://bundlephobia.com/result?p=comma-separated-tokens [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [license]: license [author]: https://wooorm.com [spec]: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#comma-separated-tokens [hast]: https://github.com/syntax-tree/hast --- END ORIGINAL BYTES --- ================================================================ commander@11.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/commander/-/commander-11.1.0.tgz Locked integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 04512a63dce4d2d506ad612dc0bd7681ccf6e3655f7b6eaef7dfac8323d1ec0b; bytes: 1098 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2011 TJ Holowaychuk 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. --- END ORIGINAL BYTES --- ================================================================ common-ancestor-path@2.0.0 Declared package license: BlueOak-1.0.0 Published archive: https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz Locked integrity: sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 8a1af140fdfbf5afd3df27f7e662f989c5b963a300020dfafce42033cae9e004; bytes: 1552 --- BEGIN ORIGINAL BYTES --- # Blue Oak Model License Version 1.0.0 ## Purpose This license gives everyone as much permission to work with this software as possible, while protecting contributors from liability. ## Acceptance In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow. ## Copyright Each contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it. ## Notices You must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license or a link to . ## Excuse If anyone notifies you in writing that you have not complied with [Notices](#notices), you can keep your license by taking all practical steps to comply within 30 days after the notice. If you do not do so, your license ends immediately. ## Patent Each contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license. ## Reliability No contributor can revoke this license. ## No Liability ***As far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim.*** --- END ORIGINAL BYTES --- ================================================================ cookie@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz Locked integrity: sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c02110eedc16c7114f1a9bdc026c65626ce1d9c7e27fd51a8e0feee8a48a6858; bytes: 1175 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2012-2014 Roman Shtylman Copyright (c) 2015 Douglas Christopher Wilson 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2e7882908ae627923da088f61777e2db48db14546a9e4c63e23932b1ccc39150; bytes: 12438 --- BEGIN ORIGINAL BYTES --- # cookie [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coverage-image]][coverage-url] Basic HTTP cookie parser and serializer for HTTP servers. ## Installation ```sh $ npm install cookie ``` ## API ```js import * as cookie from "cookie"; ``` ### cookie.parseCookie(str, options) Parse an HTTP `Cookie` header string and return an [object](#cookie-object) of all cookie name-value pairs. The `str` argument is the string representing a `Cookie` header value and `options` is an optional object containing additional parsing options. ```js const cookieObject = cookie.parseCookie("foo=bar; equation=E%3Dmc%5E2"); // { foo: 'bar', equation: 'E=mc^2' } ``` #### Options - `decode` Specifies the function to decode a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Defaults to [`decodeURIComponent`](#encode-and-decode). ### cookie.stringifyCookie(cookieObj, options) Stringifies a [cookie object](#cookie-object) into an HTTP `Cookie` header. ```js const cookieHeader = cookie.stringifyCookie({ a: "foo", b: "bar" }); // a=foo; b=bar ``` #### Options - `encode` Specifies the function to encode a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Defaults to [`encodeURIComponent`](#encode-and-decode). ### cookie.parseSetCookie(str, options) Parse an HTTP `Set-Cookie` header string and return an [object](#set-cookie-object) of the options. ```js const setCookieObject = cookie.parseSetCookie("foo=bar; httpOnly"); // { name: "foo", value: "bar", httpOnly: true } ``` **Note:** Cookie follows the specification and ignores invalid attributes, but does not attempt to normalize or modify any attributes as a browser might. For example: ```js cookie.parseSetCookie( "session=abc; max-age=1.5; expires=invalid; custom=value; domain=example.com", ); // { name: "session", value: "abc", domain: "example.com" } ``` #### Options - `decode` Specifies the function to decode a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Defaults to [`decodeURIComponent`](#encode-and-decode). ### cookie.stringifySetCookie(setCookieObj, options) Stringifies a [`Set-Cookie` object](#set-cookie-object) into a `Set-Cookie` header string. ```js const setCookieHeader = cookie.stringifySetCookie({ name: "foo", value: "bar", }); // foo=bar ``` #### Options - `encode` Specifies the function to encode a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Defaults to [`encodeURIComponent`](#encode-and-decode). ## Cookie object The cookie object represents all cookie name-value pairs in a `Cookie` header, where `{ name: "value" }` is used for `name=value`. ## `Set-Cookie` object The `Set-Cookie` object represents all the options in a `Set-Cookie` header. ### name The name of the cookie. ### value The value of a cookie after it has been [decoded](#encode-and-decode). ### maxAge Specifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.2). The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this, so if both are set, they should point to the same date and time. ### expires Specifies the `Date` object to be the value for the [`Expires` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.1). When no expiration is set, clients consider this a "non-persistent cookie" and delete it when the current session is over. The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this, so if both are set, they should point to the same date and time. ### domain Specifies the value for the [`Domain` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.3). When no domain is set, clients consider the cookie to apply to the current domain only. ### path Specifies the value for the [`Path` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.4). When no path is set, the path is considered the ["default path"](https://tools.ietf.org/html/rfc6265#section-5.1.4). ### httpOnly Enables the [`HttpOnly` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.6). When enabled, clients will not allow client-side JavaScript to see the cookie in `document.cookie`. ### secure Enables the [`Secure` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.5). When enabled, clients will only send the cookie back if the browser has an HTTPS connection. ### partitioned Enables the [`Partitioned` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-cutler-httpbis-partitioned-cookies/). When enabled, clients will only send the cookie back when the current domain _and_ top-level domain matches. This is an attribute that has not yet been fully standardized, and may change in the future. This also means clients may ignore this attribute until they understand it. More information about can be found in [the proposal](https://github.com/privacycg/CHIPS). ### priority Specifies the value for the [`Priority` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1). - `'low'` will set the `Priority` attribute to `Low`. - `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set. - `'high'` will set the `Priority` attribute to `High`. More information about priority levels can be found in [the specification](https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1). ### sameSite Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7). - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement. - `'lax'` will set the `SameSite` attribute to `Lax` for lax same site enforcement. - `'none'` will set the `SameSite` attribute to `None` for an explicit cross-site cookie. - `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement. More information about enforcement levels can be found in [the specification](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7). ## Encode and decode Cookie accepts `encode` or `decode` options for processing a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Since the value of a cookie has a limited character set (and must be a simple string), these functions are used to transform values into strings suitable for a cookies value. The default `encode` function preserves roundtrip-safe cookie-octet values and uses the global `encodeURIComponent` otherwise. The default `decode` function is the global `decodeURIComponent`, wrapped in a `try..catch`. If an error is thrown it will return the cookie's original value. If you provide your own encode/decode scheme you must ensure errors are appropriately handled. Custom decode functions can return `undefined`, which will skip the cookie during `parse` and try again with a future cookie of the same name. ## Example The following example uses this module in conjunction with the Node.js core HTTP server to prompt a user for their name and display it back on future visits. ```js var cookie = require("cookie"); var escapeHtml = require("escape-html"); var http = require("http"); var url = require("url"); function onRequest(req, res) { // Parse the query string var query = url.parse(req.url, true, true).query; if (query && query.name) { // Set a new cookie with the name res.setHeader( "Set-Cookie", cookie.stringifySetCookie({ name: "name", value: String(query.name), httpOnly: true, maxAge: 60 * 60 * 24 * 7, // 1 week }), ); // Redirect back after setting cookie res.statusCode = 302; res.setHeader("Location", req.headers.referer || "/"); res.end(); return; } // Parse the cookies on the request var cookies = cookie.parseCookie(req.headers.cookie || ""); // Get the visitor name set in the cookie var name = cookies.name; res.setHeader("Content-Type", "text/html; charset=UTF-8"); if (name) { res.write("

Welcome back, " + escapeHtml(name) + "!

"); } else { res.write("

Hello, new visitor!

"); } res.write('
'); res.write( ' ', ); res.end("
"); } http.createServer(onRequest).listen(3000); ``` ## Testing ```sh npm test ``` ## Benchmark ```sh npm run bench ``` ``` name hz min max mean p75 p99 p995 p999 rme samples · simple 8,566,313.09 0.0000 0.3694 0.0001 0.0001 0.0002 0.0002 0.0003 ±0.64% 4283157 fastest · decode 3,834,348.85 0.0001 0.2465 0.0003 0.0003 0.0003 0.0004 0.0006 ±0.38% 1917175 · unquote 8,315,355.96 0.0000 0.3824 0.0001 0.0001 0.0002 0.0002 0.0003 ±0.72% 4157880 · duplicates 1,944,765.97 0.0004 0.2959 0.0005 0.0005 0.0006 0.0006 0.0008 ±0.24% 972384 · 10 cookies 675,345.67 0.0012 0.4328 0.0015 0.0015 0.0019 0.0020 0.0058 ±0.75% 337673 · 100 cookies 61,040.71 0.0152 0.4092 0.0164 0.0160 0.0196 0.0228 0.2260 ±0.71% 30521 slowest ✓ parse top-sites (15) 22945ms name hz min max mean p75 p99 p995 p999 rme samples · parse accounts.google.com 7,164,349.17 0.0000 0.0929 0.0001 0.0002 0.0002 0.0002 0.0003 ±0.09% 3582184 · parse apple.com 7,817,686.84 0.0000 0.6048 0.0001 0.0001 0.0002 0.0002 0.0003 ±1.05% 3908844 · parse cloudflare.com 7,189,841.70 0.0000 0.0390 0.0001 0.0002 0.0002 0.0002 0.0003 ±0.06% 3594921 · parse docs.google.com 7,051,765.61 0.0000 0.0296 0.0001 0.0002 0.0002 0.0002 0.0003 ±0.06% 3525883 · parse drive.google.com 7,349,104.77 0.0000 0.0368 0.0001 0.0001 0.0002 0.0002 0.0003 ±0.05% 3674553 · parse en.wikipedia.org 1,929,909.49 0.0004 0.3598 0.0005 0.0005 0.0007 0.0007 0.0012 ±0.16% 964955 · parse linkedin.com 2,225,658.01 0.0003 0.0595 0.0004 0.0005 0.0005 0.0005 0.0006 ±0.06% 1112830 · parse maps.google.com 4,423,511.68 0.0001 0.0942 0.0002 0.0003 0.0003 0.0003 0.0005 ±0.08% 2211756 · parse microsoft.com 3,387,601.88 0.0002 0.0725 0.0003 0.0003 0.0004 0.0004 0.0005 ±0.09% 1693801 · parse play.google.com 7,375,980.86 0.0000 0.1994 0.0001 0.0001 0.0002 0.0002 0.0003 ±0.12% 3687991 · parse support.google.com 4,912,267.94 0.0001 2.8958 0.0002 0.0002 0.0003 0.0003 0.0005 ±1.28% 2456134 · parse www.google.com 3,443,035.87 0.0002 0.2783 0.0003 0.0003 0.0004 0.0004 0.0007 ±0.51% 1721518 · parse youtu.be 1,910,492.87 0.0004 0.3490 0.0005 0.0005 0.0007 0.0007 0.0011 ±0.46% 955247 · parse youtube.com 1,895,082.62 0.0004 0.7454 0.0005 0.0005 0.0006 0.0007 0.0013 ±0.64% 947542 slowest · parse example.com 21,582,835.27 0.0000 0.1095 0.0000 0.0000 0.0001 0.0001 0.0001 ±0.13% 10791418 ``` ## References - [RFC 6265: HTTP State Management Mechanism](https://tools.ietf.org/html/rfc6265) - [Same-site Cookies](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7) ## License [MIT](LICENSE) [ci-image]: https://img.shields.io/github/actions/workflow/status/jshttp/cookie/ci.yml [ci-url]: https://github.com/jshttp/cookie/actions/workflows/ci.yml?query=branch%3Amaster [coverage-image]: https://img.shields.io/codecov/c/github/jshttp/cookie/master [coverage-url]: https://app.codecov.io/gh/jshttp/cookie [npm-downloads-image]: https://img.shields.io/npm/dm/cookie [npm-url]: https://npmjs.org/package/cookie [npm-version-image]: https://img.shields.io/npm/v/cookie --- END ORIGINAL BYTES --- ================================================================ cookie-es@1.2.3 Declared package license: MIT Published archive: https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.3.tgz Locked integrity: sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: f57270b85c3922414c061e36b93f7c74420b8facf5ccf729202d5ff5b7cd7608; bytes: 1431 --- BEGIN ORIGINAL BYTES --- MIT License Cookie-es copyright (c) Pooya Parsa Cookie parsing based on https://github.com/jshttp/cookie Copyright (c) 2012-2014 Roman Shtylman Copyright (c) 2015 Douglas Christopher Wilson Set-Cookie parsing based on https://github.com/nfriedly/set-cookie-parser Copyright (c) 2015 Nathan Friedly (http://nfriedly.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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 581a1773b50b8322899033f48e4cf8c713d4d9ee021aa60b80ec976237a76945; bytes: 1498 --- BEGIN ORIGINAL BYTES --- # 🍪 cookie-es [![npm version](https://img.shields.io/npm/v/cookie-es)](https://npmjs.com/package/cookie-es) [![npm downloads](https://img.shields.io/npm/dm/cookie-es)](https://npmjs.com/package/cookie-es) [![bundle size](https://img.shields.io/bundlejs/size/cookie-es)](https://bundlejs.com/?q=cookie-es) 🍪 [`Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie) and [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) parser and serializer based on [cookie](https://github.com/jshttp/cookie) and [set-cookie-parser](https://github.com/nfriedly/set-cookie-parser) with dual ESM/CJS exports and bundled types. 🎁 ## Usage Install: ```sh # ✨ Auto-detect npx nypm install cookie-es # npm npm install cookie-es # yarn yarn add cookie-es # pnpm pnpm install cookie-es # bun bun install cookie-es ``` Import: **ESM** (Node.js, Bun) ```js import { parse, serialize, parseSetCookie, splitSetCookieString, } from "cookie-es"; ``` **CommonJS** (Legacy Node.js) ```js const { parse, serialize, parseSetCookie, splitSetCookieString, } = require("cookie-es"); ``` **CDN** (Deno, Bun and Browsers) ```js import { parse, serialize, parseSetCookie, splitSetCookieString, } from "https://esm.sh/cookie-es"; ``` ## License [MIT](./LICENSE) --- END ORIGINAL BYTES --- ================================================================ crossws@0.3.5 Declared package license: MIT Published archive: https://registry.npmjs.org/crossws/-/crossws-0.3.5.tgz Locked integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7aef9ff475a591e063e81e3bfc8c6968bb53d072e7eef57115f5a96c6678a359; bytes: 2314 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- Bundled with https://github.com/websockets/ws Copyright (c) 2011 Einar Otto Stangvik Copyright (c) 2013 Arnout Kazemier and contributors Copyright (c) 2016 Luigi Pinca and contributors 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e181c5b900495b1c06863c8f9848c397fcbcf51d8827ee9ddc07bb802522793a; bytes: 2114 --- BEGIN ORIGINAL BYTES --- # crossws [![npm version](https://flat.badgen.net/npm/v/crossws)](https://npmjs.com/package/crossws) [![npm downloads](https://flat.badgen.net/npm/dm/crossws)](https://npmjs.com/package/crossws) Elegant, typed, and simple toolkit to implement cross-platform WebSocket servers. 👉 [📖 documentation](https://crossws.h3.dev) ## Features 🧩 Seamlessly integrates with [Bun](https://crossws.h3.dev/adapters/bun), [Cloudflare Workers](https://crossws.h3.dev/adapters/cloudflare), [Deno](https://crossws.h3.dev/adapters/deno) and [Node.js](https://crossws.h3.dev/adapters/node) and any compatible web framework. ✅ Prebundled with [ws](https://github.com/websockets/ws) for Node.js support with alternative/much faster [uWebSockets](https://crossws.h3.dev/adapters/node#uwebsockets) adapter. 📦 Extremely lightweight and tree-shakable conditional ESM exports. 🚀 High-performance and simple hooks API, without per-connection callback creation. 🌟 Typed hooks API and developer-friendly object inspection. [^1]: crossws supports Node.js via [npm:ws](https://github.com/websockets/ws) (prebundled) or [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js). ## Contribution
Local development - Clone this repository - Install the latest LTS version of [Node.js](https://nodejs.org/en/) - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run examples using `pnpm play:` scripts
## License Published under the [MIT](https://github.com/h3js/crossws/blob/main/LICENSE) license. Made by [@pi0](https://github.com/pi0) and [community](https://github.com/h3js/crossws/graphs/contributors) 💛

--- _🤖 auto updated with [automd](https://automd.unjs.io)_ --- END ORIGINAL BYTES --- ================================================================ css-background-parser@0.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/css-background-parser/-/css-background-parser-0.1.0.tgz Locked integrity: sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: d9be3156783d47481385a916dfb1cc4b5289577e71b548a377ec71940270b8d5; bytes: 1084 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2015 Gilmore Davidson 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. --- END ORIGINAL BYTES --- ================================================================ css-box-shadow@1.0.0-3 Declared package license: MIT Published archive: https://registry.npmjs.org/css-box-shadow/-/css-box-shadow-1.0.0-3.tgz Locked integrity: sha512-9jaqR6e7Ohds+aWwmhe6wILJ99xYQbfmK9QQB9CcMjDbTxPZjwEmUQpU91OG05Xgm8BahT5fW+svbsQGjS/zPg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. --- Original licensing-readme: package/README.md SHA-256: 9ba68a0c314d2258bbbe2335dd9c6a91ea4f864f87aa3279cb4ded183df231a0; bytes: 503 --- BEGIN ORIGINAL BYTES --- # css-box-shadow CSS box shadow parser and stringifier ```sh npm i css-box-shadow ``` ```js const { parse, stringify } = require('css-box-shadow') // parse a CSS string value into an array of objects const parsed = parse('0 0 0 32px tomato') // [{ inset: false, // offsetX: 0, // offsetY: 0, // blurRadius: 0, // spreadRadius: 32, // color: 'tomato' }] // convert an array of objects into a box-shadow string value const value = stringify(parsed) // '0 0 0 32px tomato' ``` MIT License --- END ORIGINAL BYTES --- ================================================================ css-color-keywords@1.0.0 Declared package license: ISC Published archive: https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz Locked integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 17a548211b4a0cfaa8991068a39d30b0e7ef5c199321bb1c3484509529a8df05; bytes: 747 --- BEGIN ORIGINAL BYTES --- ISC License Copyright (c) 2017, Jakob Krigovsky Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 4137841f6a952c197a1f3a8857fd8b5d84b71533374e53a68270364a58e55329; bytes: 1381 --- BEGIN ORIGINAL BYTES --- # css-color-keywords > A list of all CSS color keywords. This list contains all CSS color keywords specified in: - [CSS Level 1](https://www.w3.org/TR/CSS1/#color-units) - [CSS Level 2 (Revision 1)](https://www.w3.org/TR/CSS2/syndata.html#value-def-color) - [CSS Color Module Level 3](https://drafts.csswg.org/css-color-3/#colorunits) - [CSS Color Module Level 4](https://drafts.csswg.org/css-color/#named-colors) [See MDN for an overview of all colors](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords). ## Installation ```sh $ npm install css-color-keywords --save ``` ## Usage ```js const cssColorKeywords = require('css-color-keywords') cssColorKeywords.black // #000000 cssColorKeywords.orange // #ffa500 ``` Returns an object where each key is a keyword (e.g. `black`) and the value is the keyword’s RGB hex value (e.g. `#000000`). Even though CSS color keywords are case-insensitive, this list only contains lowercase keywords (and returns lowercase RGB hex values). ## Changelog This project follows [Semantic Versioning 2](http://semver.org/). This list aims to always include all CSS color keywords. If new keywords are specified, only the *minor* version will be bumped. - v1.0.0 (2017-01-20): Initial release ## License `css-color-keywords` is licensed under the ISC license. See [`LICENSE`](LICENSE) for the full license. --- END ORIGINAL BYTES --- ================================================================ css-gradient-parser@0.0.17 Declared package license: MIT Published archive: https://registry.npmjs.org/css-gradient-parser/-/css-gradient-parser-0.0.17.tgz Locked integrity: sha512-w2Xy9UMMwlKtou0vlRnXvWglPAceXCTtcmVSo8ZBUvqCV5aXEFP/PC6d+I464810I9FT++UACwTD5511bmGPUg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 112f34fd9cb305e61b039d047dab3835b3ce277b7a26c56b372022473b8f610a; bytes: 1067 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2023 Lynnnnnnxx 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 07610f486358000733290dc00c25f4fc859e3e667919e8a83f72d40e8e2d8cc2; bytes: 1697 --- BEGIN ORIGINAL BYTES ---

npm version npm downloads

# css-gradient-parser This lib intends to give a parser for [satori](https://github.com/vercel/satori) so that we can handle more gradient features ## API ### `parseLinearGradient` ```ts interface LinearOrientation { type: 'directional' | 'angular' value: string } interface LinearResult { orientation: LinearOrientation repeating: boolean stops: ColorStop[] } ``` ### `parseRadialGradient` ```ts type ValueType = 'keyword' | 'length' interface RadialResult { shape: 'circle' | 'ellipse' repeating: boolean size: { type: ValueType value: string }[] position: { x: { type: ValueType, value: string } y: { type: ValueType, value: string } } stops: ColorStop[] } ``` ### `parseConicGradient` ```ts type RectColorSpace = 'srgb' | 'srgb-linear' | 'lab' | 'oklab' | 'xyz' | 'xyz-d50' | 'xyz-d65' type PolarColorSpace = 'hsl' | 'hwb' | 'lch' | 'oklch' type HueInterpolationMethod = `${'shorter' | 'longer' | 'increasing' | 'decreasing'} hue` interface ConicGradient { angle: string repeating: boolean position: string color?: Color stops: ColorStop[] } type Color = { space: RectColorSpace | PolarColorSpace method?: HueInterpolationMethod } ``` - [x] linear-gradient - [x] radial-gradient - [x] conic-gradient - [x] repeating-linear-gradient - [x] repeating-radial-gradient - [x] repeating-conic-gradient ## LICENSE [MIT](./LICENSE) --- END ORIGINAL BYTES --- ================================================================ css-select@6.0.0 Declared package license: BSD-2-Clause Published archive: https://registry.npmjs.org/css-select/-/css-select-6.0.0.tgz Locked integrity: sha512-rZZVSLle8v0+EY8QAkDWrKhpgt6SA5OtHsgBnsj6ZaLb5dmDVOWUDtQitd9ydxxvEjhewNudS6eTVU7uOyzvXw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: cb992345949ccd6e8394b2cd6c465f7b897c864f845937dbf64e8997f389e164; bytes: 1260 --- BEGIN ORIGINAL BYTES --- Copyright (c) Felix Böhm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e7653a08fdd52374dccc7afd2cf718f1179dc73737a0e7e9170cfefc47e28c81; bytes: 15926 --- BEGIN ORIGINAL BYTES --- # css-select [![NPM version](https://img.shields.io/npm/v/css-select.svg)](https://npmjs.org/package/css-select) [![Node.js CI](https://github.com/fb55/css-select/actions/workflows/nodejs-test.yml/badge.svg)](https://github.com/fb55/css-select/actions/workflows/nodejs-test.yml) [![Downloads](https://img.shields.io/npm/dm/css-select.svg)](https://npmjs.org/package/css-select) [![Coverage](https://coveralls.io/repos/fb55/css-select/badge.svg?branch=master)](https://coveralls.io/r/fb55/css-select) A CSS selector compiler and engine ## What? As a **compiler**, css-select turns CSS selectors into functions that tests if elements match them. As an **engine**, css-select looks through a DOM tree, searching for elements. Elements are tested "from the top", similar to how browsers execute CSS selectors. In its default configuration, css-select queries the DOM structure of the [`domhandler`](https://github.com/fb55/domhandler) module (also known as htmlparser2 DOM). To query alternative DOM structures, see [`Options`](#options) below. **Features:** - 🔬 Full implementation of CSS3 selectors, as well as most CSS4 selectors - 🧪 Partial implementation of jQuery/Sizzle extensions (see [cheerio-select](https://github.com/cheeriojs/cheerio-select) for the remaining selectors) - 🧑‍🔬 High test coverage, including the full test suites from [`Sizzle`](https://github.com/jquery/sizzle), [`Qwery`](https://github.com/ded/qwery) and [`NWMatcher`](https://github.com/dperini/nwmatcher/) and . - 🥼 Reliably great performance ## Why? Most CSS engines written in JavaScript execute selectors left-to-right. That means they execute every component of the selector in order, from left to right. As an example: For the selector `a b`, these engines will first query for `a` elements, then search these for `b` elements. (That's the approach of eg. [`Sizzle`](https://github.com/jquery/sizzle), [`Qwery`](https://github.com/ded/qwery) and [`NWMatcher`](https://github.com/dperini/nwmatcher/).) While this works, it has some downsides: Children of `a`s will be checked multiple times; first, to check if they are also `a`s, then, for every superior `a` once, if they are `b`s. Using [Big O notation](http://en.wikipedia.org/wiki/Big_O_notation), that would be `O(n^(k+1))`, where `k` is the number of descendant selectors (that's the space in the example above). The far more efficient approach is to first look for `b` elements, then check if they have superior `a` elements: Using big O notation again, that would be `O(n)`. That's called right-to-left execution. And that's what css-select does – and why it's quite performant. ## How does it work? By building a stack of functions. _Wait, what?_ Okay, so let's suppose we want to compile the selector `a b`, for right-to-left execution. We start by _parsing_ the selector. This turns the selector into an array of the building blocks. That's what the [`css-what`](https://github.com/fb55/css-what) module is for, if you want to have a look. Anyway, after parsing, we end up with an array like this one: ```js [ { type: "tag", name: "a" }, { type: "descendant" }, { type: "tag", name: "b" }, ]; ``` (Actually, this array is wrapped in another array, but that's another story, involving commas in selectors.) Now that we know the meaning of every part of the selector, we can compile it. That is where things become interesting. The basic idea is to turn every part of the selector into a function, which takes an element as its only argument. The function checks whether a passed element matches its part of the selector: If it does, the element is passed to the next function representing the next part of the selector. That function does the same. If an element is accepted by all parts of the selector, it _matches_ the selector and double rainbow ALL THE WAY. As said before, we want to do right-to-left execution with all the big O improvements. That means elements are passed from the rightmost part of the selector (`b` in our example) to the leftmost (~~which would be `c`~~ of course `a`). For traversals, such as the _descendant_ operating the space between `a` and `b`, we walk up the DOM tree, starting from the element passed as argument. _//TODO: More in-depth description. Implementation details. Build a spaceship._ ## API ```js const CSSselect = require("css-select"); ``` **Note:** css-select throws errors when invalid selectors are passed to it. This is done to aid with writing css selectors, but can be unexpected when processing arbitrary strings. #### `CSSselect.selectAll(query, elems, options)` Queries `elems`, returns an array containing all matches. - `query` can be either a CSS selector or a function. - `elems` can be either an array of elements, or a single element. If it is an element, its children will be queried. - `options` is described below. Aliases: `default` export, `CSSselect.iterate(query, elems)`. #### `CSSselect.compile(query, options)` Compiles the query, returns a function. #### `CSSselect.is(elem, query, options)` Tests whether or not an element is matched by `query`. `query` can be either a CSS selector or a function. #### `CSSselect.selectOne(query, elems, options)` Arguments are the same as for `CSSselect.selectAll(query, elems)`. Only returns the first match, or `null` if there was no match. ### Options All options are optional. - `xmlMode`: When enabled, tag names will be case-sensitive. Default: `false`. - `rootFunc`: The last function in the stack, will be called with the last element that's looked at. - `adapter`: The adapter to use when interacting with the backing DOM structure. By default it uses the `domutils` module. - `context`: The context of the current query. Used to limit the scope of searches. Can be matched directly using the `:scope` pseudo-class. - `relativeSelector`: By default, selectors are relative to the `context`, which means that no parent elements of the context will be matched. (Eg. `a b c` with context `b` will never give any results.) If `relativeSelector` is set to `false`, selectors won't be [absolutized](http://www.w3.org/TR/selectors4/#absolutizing) and selectors can test for parent elements outside of the `context`. - `cacheResults`: Allow css-select to cache results for some selectors, sometimes greatly improving querying performance. Disable this if your document can change in between queries with the same compiled selector. Default: `true`. - `pseudos`: A map of pseudo-class names to functions or strings. #### Custom Adapters A custom adapter must match the interface described [here](https://github.com/fb55/css-select/blob/1aa44bdd64aaf2ebdfd7f338e2e76bed36521957/src/types.ts#L6-L96). You may want to have a look at [`domutils`](https://github.com/fb55/domutils) to see the default implementation, or at [`css-select-browser-adapter`](https://github.com/nrkn/css-select-browser-adapter/blob/master/index.js) for an implementation backed by the DOM. ## Supported selectors _As defined by CSS 4 and / or jQuery._ - [Type](https://developer.mozilla.org/en-US/docs/Web/CSS/Type_selectors) (``): Selects elements by their tag name. - [Descendant](https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator) (` `): Selects elements that are descendants of the specified element. - [Child](https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator) (`>`): Selects elements that are direct children of the specified element. - Parent (`<`): Selects elements that are direct parents of the specified element. This follows an [old proposal](https://shauninman.com/archive/2008/05/05/css_qualified_selectors) that has been made obsolete by the `:has()` pseudo-class. - [Adjacent sibling](https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator) (`+`): Selects elements that are the next sibling of the specified element. - [General sibling](https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator) (`~`): Selects elements that are siblings of the specified element. - [Attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors) (`[attr=foo]`), with supported comparisons: - `[attr]` (existential): Selects elements with the specified attribute, whatever its value. - `=`: Selects elements with the specified attribute and value. - `~=`: Selects elements with the specified attribute and value, separated by spaces. - `|=`: Selects elements with the specified attribute and value, separated by hyphens. - `*=`: Selects elements with the specified attribute and value, anywhere in the attribute value. - `^=`: Selects elements with the specified attribute and value, beginning at the beginning of the attribute value. - `$=`: Selects elements with the specified attribute and value, ending at the end of the attribute value. - `!=`: Selects elements with the specified attribute and value, not equal to the specified value. - `i` and `s` can be added after the comparison to make the comparison case-insensitive or case-sensitive (eg. `[attr=foo i]`). If neither is supplied, css-select will follow the HTML spec's [case-sensitivity rules](https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors). - [Selector lists](https://developer.mozilla.org/en-US/docs/Web/CSS/Selector_list) (`,`): Selects elements that match any of the specified selectors. - [Universal](https://developer.mozilla.org/en-US/docs/Web/CSS/Universal_selectors) (`*`): Selects all elements. - Pseudos: - [`:not`](https://developer.mozilla.org/en-US/docs/Web/CSS/:not): Selects elements that do not match the specified selector. - [`:contains`](https://api.jquery.com/contains-selector): Selects elements that contain the specified text. - `:icontains`: Selects elements that contain the specified text, case-insensitively. - [`:has`](https://developer.mozilla.org/en-US/docs/Web/CSS/:has): Selects elements that have descendants that match the specified selector. - [`:root`](https://developer.mozilla.org/en-US/docs/Web/CSS/:root): Selects the root element. - [`:empty`](https://developer.mozilla.org/en-US/docs/Web/CSS/:empty): Selects elements that have no children. - [`:first-child`](https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child): Selects elements that are the first element child of their parent. - [`:last-child`](https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child): Selects elements that are the last element child of their parent. - [`:first-of-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/:first-of-type): Selects elements that are the first element of their type. - [`:last-of-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type): Selects elements that are the last element of their type. - [`:only-of-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/:only-of-type): Selects elements that are the only element of their type. - [`:only-child`](https://developer.mozilla.org/en-US/docs/Web/CSS/:only-child): Selects elements that are the only element child of their parent. - [`:nth-child`](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child): Selects elements that are the nth element child of their parent. - [`:nth-last-child`](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child): Selects elements that are the nth element child of their parent, counting from the last child. - [`:nth-of-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type): Selects elements that are the nth element of their type. - [`:nth-last-of-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-of-type): Selects elements that are the nth element of their type, counting from the last child. - [`:any-link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link): Selects elements that are links. - [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link): Selects elements that are links and have not been visited. - [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited), [`:hover`](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover), [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active) (these depend on optional `Adapter` methods, so these will only match elements if implemented in `Adapter`) - [`:checked`](https://developer.mozilla.org/en-US/docs/Web/CSS/:checked): Selects `input` elements that are checked, or `option` elements that are selected. - [`:disabled`](https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled): Selects input elements that are disabled. - [`:enabled`](https://developer.mozilla.org/en-US/docs/Web/CSS/:enabled): Selects input elements that are not disabled. - [`:required`](https://developer.mozilla.org/en-US/docs/Web/CSS/:required): Selects input elements that are required. - [`:optional`](https://developer.mozilla.org/en-US/docs/Web/CSS/:optional): Selects input elements that are not required. - jQuery extensions: - [`:parent`](https://api.jquery.com/parent-selector): Selects elements that have at least one child. - [`:header`](https://api.jquery.com/header-selector): Selects header elements. - [`:selected`](https://api.jquery.com/selected-selector): Selects `option` elements that are selected. - [`:button`](https://api.jquery.com/button-selector): Selects button elements, and `input` elements of type `button`. - [`:input`](https://api.jquery.com/input-selector): Selects `input`, `textarea`, `select`, and `button` elements. - [`:text`](https://api.jquery.com/text-selector): Selects `input` elements of type `text`. - [`:checkbox`](https://api.jquery.com/checkbox-selector): Selects `input` elements of type `checkbox`. - [`:file`](https://api.jquery.com/file-selector): Selects `input` elements of type `file`. - [`:password`](https://api.jquery.com/password-selector): Selects `input` elements of type `password`. - [`:reset`](https://api.jquery.com/reset-selector): Selects `input` elements of type `reset`. - [`:radio`](https://api.jquery.com/radio-selector): Selects `input` elements of type `radio`. - [`:is`](https://developer.mozilla.org/en-US/docs/Web/CSS/:is), as well as the aliases [`:where`](https://developer.mozilla.org/en-US/docs/Web/CSS/:where), and the legacy alias `:matches`: Selects elements that match any of the given selectors. - [`:scope`](https://developer.mozilla.org/en-US/docs/Web/CSS/:scope): Selects elements that are part of the scope of the current selector. This uses the context from the passed options. --- License: BSD-2-Clause ## Security contact information To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. ## `css-select` for enterprise Available as part of the Tidelift Subscription The maintainers of `css-select` 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-css-select?utm_source=npm-css-select&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) --- END ORIGINAL BYTES --- ================================================================ css-to-react-native@3.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz Locked integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 9200b800b2460900fe3bff06010726f3a29079511e80245f43a24ef89c0e9d38; bytes: 1092 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2016 Jacob Parker and Maximilian Stoiber 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: f614948099963a37df3ae747cf4f2155572ad07047c730eaa77e0e33a72bc5b1; bytes: 3094 --- BEGIN ORIGINAL BYTES --- # css-to-react-native Converts CSS text to a React Native stylesheet object. [Try it here](https://csstox.surge.sh) ```css font-size: 18px; line-height: 24px; color: red; ``` ```js { fontSize: 18, lineHeight: 24, color: 'red', } ``` Converts all number-like values to numbers, and string-like to strings. Automatically converts indirect values to their React Native equivalents. ```css text-shadow-offset: 10px 5px; font-variant: small-caps; transform: translate(10px, 5px) scale(5); ``` ```js { textShadowOffset: { width: 10, height: 5 }, fontVariant: ['small-caps'], // Fixes backwards transform order transform: [ { translateY: 5 }, { translateX: 10 }, { scale: 5 }, ] } ``` Also allows shorthand values. ```css font: bold 14px/16px "Helvetica"; margin: 5px 7px 2px; ``` ```js { fontFamily: 'Helvetica', fontSize: 14, fontWeight: 'bold', fontStyle: 'normal', fontVariant: [], lineHeight: 16, marginTop: 5, marginRight: 7, marginBottom: 2, marginLeft: 7, } ``` Shorthands will only accept values that are supported in React, so `background` will only accept a colour, `backgroundColor` There is also support for the `box-shadow` shorthand, and this converts into `shadow-` properties. Note that these only work on iOS. #### Shorthand Notes `border{Top,Right,Bottom,Left}` shorthands are not supported, because `borderStyle` cannot be applied to individual border sides. # API The API is mostly for implementors. However, the main API may be useful for non-implementors. The main API is an array of `[property, value]` tuples. ```js import transform from 'css-to-react-native'; // or const transform = require('css-to-react-native').default; transform([ ['font', 'bold 14px/16px "Helvetica"'], ['margin', '5px 7px 2px'], ['border-left-width', '5px'], ]); // => { fontFamily: 'Helvetica', ... } ``` We don't provide a way to get these style tuples in this library, so you'll need to do that yourself. I expect most people will use postCSS or another CSS parser. You should try avoid getting these with `string.split`, as that has a lot of edge cases (colons and semi-colons appearing in comments etc.) For implementors, there is also a few extra APIs available. These are for specific use-cases, and most people should just be using the API above. ```js import { getPropertyName, getStylesForProperty } from 'css-to-react-native'; getPropertyName('border-width'); // => 'borderWidth' getStylesForProperty('borderWidth', '1px 0px 2px 0px'); // => { borderTopWidth: 1, ... } ``` Should you wish to opt-out of transforming certain shorthands, an array of property names in camelCase can be passed as a second argument to `transform`. ```js transform([['border-radius', '50px']], ['borderRadius']); // { borderRadius: 50 } rather than { borderTopLeft: ... } ``` This can also be done by passing a third argument, `false` to `getStylesForProperty`. ## License Licensed under the MIT License, Copyright © 2019 Krister Kari, Jacob Parker, and Maximilian Stoiber. See [LICENSE.md](./LICENSE.md) for more information. --- END ORIGINAL BYTES --- ================================================================ css-tree@2.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz Locked integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: be1fdbf86bfd2c72d8bce3b46fb28b24dd5e147b7d299c810c599509ddc0a66e; bytes: 1065 --- BEGIN ORIGINAL BYTES --- Copyright (C) 2016-2022 by Roman Dvornov 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 6e99e08653061863751ced22feaf31706ad33305efe2d190bb46b779fa9f6773; bytes: 8409 --- BEGIN ORIGINAL BYTES --- CSSTree logo # CSSTree [![NPM version](https://img.shields.io/npm/v/css-tree.svg)](https://www.npmjs.com/package/css-tree) [![Build Status](https://github.com/csstree/csstree/actions/workflows/build.yml/badge.svg)](https://github.com/csstree/csstree/actions/workflows/build.yml) [![Coverage Status](https://coveralls.io/repos/github/csstree/csstree/badge.svg?branch=master)](https://coveralls.io/github/csstree/csstree?branch=master) [![NPM Downloads](https://img.shields.io/npm/dm/css-tree.svg)](https://www.npmjs.com/package/css-tree) [![Twitter](https://img.shields.io/badge/Twitter-@csstree-blue.svg)](https://twitter.com/csstree) CSSTree is a tool set for CSS: [fast](https://github.com/postcss/benchmark) detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations. The main goal is to be efficient and W3C spec compliant, with focus on CSS analyzing and source-to-source transforming tasks. ## Features - **Detailed parsing with an adjustable level of detail** By default CSSTree parses CSS as detailed as possible, i.e. each single logical part is representing with its own AST node (see [AST format](docs/ast.md) for all possible node types). The parsing detail level can be changed through [parser options](docs/parsing.md#parsesource-options), for example, you can disable parsing of selectors or declaration values for component parts. - **Tolerant to errors by design** Parser behaves as [spec says](https://www.w3.org/TR/css-syntax-3/#error-handling): "When errors occur in CSS, the parser attempts to recover gracefully, throwing away only the minimum amount of content before returning to parsing as normal". The only thing the parser departs from the specification is that it doesn't throw away bad content, but wraps it in a special node type (`Raw`) that allows processing it later. - **Fast and efficient** CSSTree is created with focus on performance and effective memory consumption. Therefore it's [one of the fastest CSS parsers](https://github.com/postcss/benchmark) at the moment. - **Syntax validation** The build-in lexer can test CSS against syntaxes defined by W3C. CSSTree uses [mdn/data](https://github.com/mdn/data/) as a basis for lexer's dictionaries and extends it with vendor specific and legacy syntaxes. Lexer can only check the declaration values currently, but this feature will be extended to other parts of the CSS in the future. ## Projects using CSSTree - [Svelte](https://github.com/sveltejs/svelte) – Cybernetically enhanced web apps - [SVGO](https://github.com/svg/svgo) – Node.js tool for optimizing SVG files - [CSSO](https://github.com/css/csso) – CSS minifier with structural optimizations - [NativeScript](https://github.com/NativeScript/NativeScript) – NativeScript empowers you to access native APIs from JavaScript directly - [react-native-svg](https://github.com/react-native-svg/react-native-svg) – SVG library for React Native, React Native Web, and plain React web projects - [penthouse](https://github.com/pocketjoso/penthouse) – Critical Path CSS Generator - [Bit](https://github.com/teambit/bit) – Bit is the platform for collaborating on components - and more... ## Documentation - [AST format](docs/ast.md) - [Parsing CSS → AST](docs/parsing.md) - [parse(source[, options])](docs/parsing.md#parsesource-options) - [Serialization AST → CSS](docs/generate.md) - [generate(ast[, options])](docs/generate.md#generateast-options) - [AST traversal](docs/traversal.md) - [walk(ast, options)](docs/traversal.md#walkast-options) - [find(ast, fn)](docs/traversal.md#findast-fn) - [findLast(ast, fn)](docs/traversal.md#findlastast-fn) - [findAll(ast, fn)](docs/traversal.md#findallast-fn) - [Util functions](docs/utils.md) - Value encoding & decoding - [property(name)](docs/utils.md#propertyname) - [keyword(name)](docs/utils.md#keywordname) - [ident](docs/utils.md#ident) - [string](docs/utils.md#string) - [url](docs/utils.md#url) - AST transforming - [clone(ast)](docs/utils.md#cloneast) - [fromPlainObject(object)](docs/utils.md#fromplainobjectobject) - [toPlainObject(ast)](docs/utils.md#toplainobjectast) - [Value Definition Syntax](docs/definition-syntax.md) - [parse(source)](docs/definition-syntax.md#parsesource) - [walk(node, options, context)](docs/definition-syntax.md#walknode-options-context) - [generate(node, options)](docs/definition-syntax.md#generatenode-options) - [AST format](docs/definition-syntax.md#ast-format) ## Tools * [AST Explorer](https://astexplorer.net/#/gist/244e2fb4da940df52bf0f4b94277db44/e79aff44611020b22cfd9708f3a99ce09b7d67a8) – explore CSSTree AST format with zero setup * [CSS syntax reference](https://csstree.github.io/docs/syntax.html) * [CSS syntax validator](https://csstree.github.io/docs/validator.html) ## Related projects * [csstree-validator](https://github.com/csstree/validator) – NPM package to validate CSS * [stylelint-csstree-validator](https://github.com/csstree/stylelint-validator) – plugin for stylelint to validate CSS * [Grunt plugin](https://github.com/sergejmueller/grunt-csstree-validator) * [Gulp plugin](https://github.com/csstree/gulp-csstree) * [Sublime plugin](https://github.com/csstree/SublimeLinter-contrib-csstree) * [VS Code plugin](https://github.com/csstree/vscode-plugin) * [Atom plugin](https://github.com/csstree/atom-plugin) ## Usage Install with npm: ``` npm install css-tree ``` Basic usage: ```js import * as csstree from 'css-tree'; // parse CSS to AST const ast = csstree.parse('.example { world: "!" }'); // traverse AST and modify it csstree.walk(ast, (node) => { if (node.type === 'ClassSelector' && node.name === 'example') { node.name = 'hello'; } }); // generate CSS from AST console.log(csstree.generate(ast)); // .hello{world:"!"} ``` Syntax matching: ```js // parse CSS to AST as a declaration value const ast = csstree.parse('red 1px solid', { context: 'value' }); // match to syntax of `border` property const matchResult = csstree.lexer.matchProperty('border', ast); // check first value node is a console.log(matchResult.isType(ast.children.first, 'color')); // true // get a type list matched to a node console.log(matchResult.getTrace(ast.children.first)); // [ { type: 'Property', name: 'border' }, // { type: 'Type', name: 'color' }, // { type: 'Type', name: 'named-color' }, // { type: 'Keyword', name: 'red' } ] ``` ### Exports Is it possible to import just a needed part of library like a parser or a walker. That's might useful for loading time or bundle size optimisations. ```js import * as tokenizer from 'css-tree/tokenizer'; import * as parser from 'css-tree/parser'; import * as walker from 'css-tree/walker'; import * as lexer from 'css-tree/lexer'; import * as definitionSyntax from 'css-tree/definition-syntax'; import * as data from 'css-tree/definition-syntax-data'; import * as dataPatch from 'css-tree/definition-syntax-data-patch'; import * as utils from 'css-tree/utils'; ``` ### Using in a browser Bundles are available for use in a browser: - `dist/csstree.js` – minified IIFE with `csstree` as global ```html ``` - `dist/csstree.esm.js` – minified ES module ```html ``` One of CDN services like `unpkg` or `jsDelivr` can be used. By default (for short path) a ESM version is exposing. For IIFE version a full path to a bundle should be specified: ```html ``` ## Top level API ![API map](https://cdn.rawgit.com/csstree/csstree/aaf327e/docs/api-map.svg) ## License MIT --- END ORIGINAL BYTES --- ================================================================ css-tree@3.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz Locked integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 719a251ceca49c057ea90a1152af6546b767ec88e6d573bb6324454267b32c22; bytes: 1065 --- BEGIN ORIGINAL BYTES --- Copyright (C) 2016-2026 by Roman Dvornov 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: a2026e60110b5b033b55b8c36c306060c02e0e4ac0c56377f9b068a5f05b4825; bytes: 8376 --- BEGIN ORIGINAL BYTES --- CSSTree logo # CSSTree [![NPM version](https://img.shields.io/npm/v/css-tree.svg)](https://www.npmjs.com/package/css-tree) [![Build Status](https://github.com/csstree/csstree/actions/workflows/build.yml/badge.svg)](https://github.com/csstree/csstree/actions/workflows/build.yml) [![Coverage Status](https://coveralls.io/repos/github/csstree/csstree/badge.svg?branch=master)](https://coveralls.io/github/csstree/csstree?branch=master) [![NPM Downloads](https://img.shields.io/npm/dm/css-tree.svg)](https://www.npmjs.com/package/css-tree) [![Twitter](https://img.shields.io/badge/Twitter-@csstree-blue.svg)](https://twitter.com/csstree) CSSTree is a tool set for CSS: [fast](https://github.com/postcss/benchmark) detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations. The main goal is to be efficient and W3C spec compliant, with focus on CSS analyzing and source-to-source transforming tasks. ## Features - **Detailed parsing with an adjustable level of detail** By default CSSTree parses CSS as detailed as possible, i.e. each single logical part is representing with its own AST node (see [AST format](docs/ast.md) for all possible node types). The parsing detail level can be changed through [parser options](docs/parsing.md#parsesource-options), for example, you can disable parsing of selectors or declaration values for component parts. - **Tolerant to errors by design** Parser behaves as [spec says](https://www.w3.org/TR/css-syntax-3/#error-handling): "When errors occur in CSS, the parser attempts to recover gracefully, throwing away only the minimum amount of content before returning to parsing as normal". The only thing the parser departs from the specification is that it doesn't throw away bad content, but wraps it in a special node type (`Raw`) that allows processing it later. - **Fast and efficient** CSSTree is created with focus on performance and effective memory consumption. Therefore it's [one of the fastest CSS parsers](https://github.com/postcss/benchmark) at the moment. - **Syntax validation** The built-in lexer can test CSS against syntaxes defined by W3C. CSSTree uses [mdn/data](https://github.com/mdn/data/) as a basis for lexer's dictionaries and extends it with vendor specific and legacy syntaxes. Lexer can only check the declaration values and at-rules currently, but this feature will be extended to other parts of the CSS in the future. ## Projects using CSSTree - [Svelte](https://github.com/sveltejs/svelte) – Cybernetically enhanced web apps - [SVGO](https://github.com/svg/svgo) – Node.js tool for optimizing SVG files - [CSSO](https://github.com/css/csso) – CSS minifier with structural optimizations - [NativeScript](https://github.com/NativeScript/NativeScript) – NativeScript empowers you to access native APIs from JavaScript directly - [react-native-svg](https://github.com/react-native-svg/react-native-svg) – SVG library for React Native, React Native Web, and plain React web projects - [penthouse](https://github.com/pocketjoso/penthouse) – Critical Path CSS Generator - [Bit](https://github.com/teambit/bit) – Bit is the platform for collaborating on components - and more... ## Documentation - [AST format](docs/ast.md) - [Parsing CSS → AST](docs/parsing.md) - [parse(source[, options])](docs/parsing.md#parsesource-options) - [Serialization AST → CSS](docs/generate.md) - [generate(ast[, options])](docs/generate.md#generateast-options) - [AST traversal](docs/traversal.md) - [walk(ast, options)](docs/traversal.md#walkast-options) - [find(ast, fn)](docs/traversal.md#findast-fn) - [findLast(ast, fn)](docs/traversal.md#findlastast-fn) - [findAll(ast, fn)](docs/traversal.md#findallast-fn) - [Util functions](docs/utils.md) - Value encoding & decoding - [property(name)](docs/utils.md#propertyname) - [keyword(name)](docs/utils.md#keywordname) - [ident](docs/utils.md#ident) - [string](docs/utils.md#string) - [url](docs/utils.md#url) - [List class](docs/list.md) - AST transforming - [clone(ast)](docs/utils.md#cloneast) - [fromPlainObject(object)](docs/utils.md#fromplainobjectobject) - [toPlainObject(ast)](docs/utils.md#toplainobjectast) - [Value Definition Syntax](docs/definition-syntax.md) - [parse(source)](docs/definition-syntax.md#parsesource) - [walk(node, options, context)](docs/definition-syntax.md#walknode-options-context) - [generate(node, options)](docs/definition-syntax.md#generatenode-options) - [AST format](docs/definition-syntax.md#ast-format) ## Tools * [AST Explorer](https://astexplorer.net/#/gist/244e2fb4da940df52bf0f4b94277db44/e79aff44611020b22cfd9708f3a99ce09b7d67a8) – explore CSSTree AST format with zero setup * [CSS syntax reference](https://csstree.github.io/docs/syntax.html) * [CSS syntax validator](https://csstree.github.io/docs/validator.html) ## Related projects * [csstree-validator](https://github.com/csstree/validator) – NPM package to validate CSS * [stylelint-csstree-validator](https://github.com/csstree/stylelint-validator) – plugin for stylelint to validate CSS * [Grunt plugin](https://github.com/sergejmueller/grunt-csstree-validator) * [Gulp plugin](https://github.com/csstree/gulp-csstree) * [Sublime plugin](https://github.com/csstree/SublimeLinter-contrib-csstree) * [VS Code plugin](https://github.com/csstree/vscode-plugin) * [Atom plugin](https://github.com/csstree/atom-plugin) ## Usage Install with npm: ``` npm install css-tree ``` Basic usage: ```js import * as csstree from 'css-tree'; // parse CSS to AST const ast = csstree.parse('.example { world: "!" }'); // traverse AST and modify it csstree.walk(ast, (node) => { if (node.type === 'ClassSelector' && node.name === 'example') { node.name = 'hello'; } }); // generate CSS from AST console.log(csstree.generate(ast)); // .hello{world:"!"} ``` Syntax matching: ```js // parse CSS to AST as a declaration value const ast = csstree.parse('red 1px solid', { context: 'value' }); // match to syntax of `border` property const matchResult = csstree.lexer.matchProperty('border', ast); // check first value node is a console.log(matchResult.isType(ast.children.first, 'color')); // true // get a type list matched to a node console.log(matchResult.getTrace(ast.children.first)); // [ { type: 'Property', name: 'border' }, // { type: 'Type', name: 'color' }, // { type: 'Type', name: 'named-color' }, // { type: 'Keyword', name: 'red' } ] ``` ### Exports Is it possible to import just a needed part of library like a parser or a walker. That's might useful for loading time or bundle size optimisations. ```js import * as tokenizer from 'css-tree/tokenizer'; import * as parser from 'css-tree/parser'; import * as walker from 'css-tree/walker'; import * as lexer from 'css-tree/lexer'; import * as definitionSyntax from 'css-tree/definition-syntax'; import * as data from 'css-tree/definition-syntax-data'; import * as dataPatch from 'css-tree/definition-syntax-data-patch'; import * as utils from 'css-tree/utils'; ``` ### Using in a browser Bundles are available for use in a browser: - `dist/csstree.js` – minified IIFE with `csstree` as global ```html ``` - `dist/csstree.esm.js` – minified ES module ```html ``` One of CDN services like `unpkg` or `jsDelivr` can be used. By default (for short path) a ESM version is exposing. For IIFE version a full path to a bundle should be specified: ```html ``` ## Top level API ![API map](https://cdn.rawgit.com/csstree/csstree/aaf327e/docs/api-map.svg) ## License MIT --- END ORIGINAL BYTES --- ================================================================ css-what@7.0.0 Declared package license: BSD-2-Clause Published archive: https://registry.npmjs.org/css-what/-/css-what-7.0.0.tgz Locked integrity: sha512-wD5oz5xibMOPHzy13CyGmogB3phdvcDaB5t0W/Nr5Z2O/agcB8YwOz6e2Lsp10pNDzBoDO9nVa3RGs/2BttpHQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: cb992345949ccd6e8394b2cd6c465f7b897c864f845937dbf64e8997f389e164; bytes: 1260 --- BEGIN ORIGINAL BYTES --- Copyright (c) Felix Böhm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: b30c5f889529c4085817f56812b00a596eca59b4a8ea2c671a737a273600c8ad; bytes: 4741 --- BEGIN ORIGINAL BYTES --- # css-what [![Node.js CI](https://github.com/fb55/css-what/actions/workflows/nodejs-test.yml/badge.svg)](https://github.com/fb55/css-what/actions/workflows/nodejs-test.yml) [![Coverage](https://img.shields.io/coveralls/github/fb55/css-what/master)](https://coveralls.io/github/fb55/css-what?branch=master) A CSS selector parser. ## Example ```js import * as CSSwhat from "css-what"; CSSwhat.parse("foo[bar]:baz") ~> [ [ { type: "tag", name: "foo" }, { type: "attribute", name: "bar", action: "exists", value: "", ignoreCase: null }, { type: "pseudo", name: "baz", data: null } ] ] ``` ## API **`CSSwhat.parse(selector)` - Parses `selector`.** The function returns a two-dimensional array. The first array represents selectors separated by commas (eg. `sub1, sub2`), the second contains the relevant tokens for that selector. Possible token types are: | name | properties | example | output | | ------------------- | --------------------------------------- | ------------- | ---------------------------------------------------------------------------------------- | | `tag` | `name` | `div` | `{ type: 'tag', name: 'div' }` | | `universal` | - | `*` | `{ type: 'universal' }` | | `pseudo` | `name`, `data` | `:name(data)` | `{ type: 'pseudo', name: 'name', data: 'data' }` | | `pseudo` | `name`, `data` | `:name` | `{ type: 'pseudo', name: 'name', data: null }` | | `pseudo-element` | `name` | `::name` | `{ type: 'pseudo-element', name: 'name' }` | | `attribute` | `name`, `action`, `value`, `ignoreCase` | `[attr]` | `{ type: 'attribute', name: 'attr', action: 'exists', value: '', ignoreCase: false }` | | `attribute` | `name`, `action`, `value`, `ignoreCase` | `[attr=val]` | `{ type: 'attribute', name: 'attr', action: 'equals', value: 'val', ignoreCase: false }` | | `attribute` | `name`, `action`, `value`, `ignoreCase` | `[attr^=val]` | `{ type: 'attribute', name: 'attr', action: 'start', value: 'val', ignoreCase: false }` | | `attribute` | `name`, `action`, `value`, `ignoreCase` | `[attr$=val]` | `{ type: 'attribute', name: 'attr', action: 'end', value: 'val', ignoreCase: false }` | | `child` | - | `>` | `{ type: 'child' }` | | `parent` | - | `<` | `{ type: 'parent' }` | | `sibling` | - | `~` | `{ type: 'sibling' }` | | `adjacent` | - | `+` | `{ type: 'adjacent' }` | | `descendant` | - | | `{ type: 'descendant' }` | | `column-combinator` | - | `\|\|` | `{ type: 'column-combinator' }` | **`CSSwhat.stringify(selector)` - Turns `selector` back into a string.** --- License: BSD-2-Clause ## Security contact information To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. ## `css-what` for enterprise Available as part of the Tidelift Subscription The maintainers of `css-what` 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-css-what?utm_source=npm-css-what&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) --- END ORIGINAL BYTES --- ================================================================ csso@5.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/csso/-/csso-5.0.5.tgz Locked integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 911677be838162004a194bc653a2d6854ae5f55ea18270a456e841aa34caae56; bytes: 1112 --- BEGIN ORIGINAL BYTES --- Copyright (C) 2015-2021 by Roman Dvornov Copyright (C) 2011-2015 by Sergey Kryzhanovsky 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. --- END ORIGINAL BYTES --- ================================================================ csstype@3.2.3 Declared package license: MIT Published archive: https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz Locked integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 11d55bd4541c75ee7879547ac49089c489163dae49551389713c3d026cab383e; bytes: 1062 --- BEGIN ORIGINAL BYTES --- Copyright (c) 2017-2018 Fredrik Nicol 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. --- END ORIGINAL BYTES --- ================================================================ defu@6.1.7 Declared package license: MIT Published archive: https://registry.npmjs.org/defu/-/defu-6.1.7.tgz Locked integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 041d2c774be0a6aeaa46d66c8b3f289ad4ed518efe9cd5c68fb8a438234df942; bytes: 4623 --- BEGIN ORIGINAL BYTES --- # 🌊 defu Assign default properties, recursively. Lightweight and Fast. [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] ## Install Install package: ```bash # yarn yarn add defu # npm npm install defu # pnpm pnpm install defu ``` ## Usage ```js import { defu } from "defu"; const options = defu(object, ...defaults); ``` Leftmost arguments have more priority when assigning defaults. ### Arguments - **object (Object):** The destination object. - **source (Object):** The source object. ```js import { defu } from "defu"; console.log(defu({ a: { b: 2 } }, { a: { b: 1, c: 3 } })); // => { a: { b: 2, c: 3 } } ``` ### Using with CommonJS ```js const { defu } = require("defu"); ``` ## Custom Merger Sometimes default merging strategy is not desirable. Using `createDefu` we can create a custom instance with different merging strategy. This function accepts `obj` (source object), `key` and `value` (current value) and should return `true` if applied custom merging. **Example:** Sum numbers instead of overriding ```js import { createDefu } from "defu"; const ext = createDefu((obj, key, value) => { if (typeof obj[key] === "number" && typeof value === "number") { obj[key] += value; return true; } }); ext({ cost: 15 }, { cost: 10 }); // { cost: 25 } ``` ## Function Merger Using `defuFn`, if user provided a function, it will be called with default value instead of merging. It can be useful for default values manipulation. **Example:** Filter some items from defaults (array) and add 20 to the count default value. ```js import { defuFn } from "defu"; defuFn( { ignore: (val) => val.filter((item) => item !== "dist"), count: (count) => count + 20, }, { ignore: ["node_modules", "dist"], count: 10, }, ); /* { ignore: ['node_modules'], count: 30 } */ ``` **Note:** if the default value is not defined, the function defined won't be called and kept as value. ## Array Function Merger `defuArrayFn` is similar to `defuFn` but **only applies to array values defined in defaults**. **Example:** Filter some items from defaults (array) and add 20 to the count default value. ```js import { defuArrayFn } from "defu"; defuArrayFn( { ignore: (val) => val.filter((i) => i !== "dist"), count: () => 20, }, { ignore: ["node_modules", "dist"], count: 10, }, ); /* { ignore: ['node_modules'], count: () => 20 } */ ``` **Note:** the function is called only if the value defined in defaults is an aray. ### Remarks - `object` and `defaults` are not modified - Nullish values ([`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null) and [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)) are skipped. Please use [defaults-deep](https://www.npmjs.com/package/defaults-deep) or [omit-deep](http://npmjs.com/package/omit-deep) or [lodash.defaultsdeep](https://www.npmjs.com/package/lodash.defaultsdeep) if you need to preserve or different behavior. - Assignment of `__proto__` and `constructor` keys will be skipped to prevent security issues with object pollution. - Will concat `array` values (if default property is defined) ```js console.log(defu({ array: ["b", "c"] }, { array: ["a"] })); // => { array: ['b', 'c', 'a'] } ``` ## Type We expose `Defu` as a type utility to return a merged type that follows the rules that defu follows. ```js import type { Defu } from 'defu' type Options = Defu<{ foo: 'bar' }, [{}, { bar: 'baz' }, { something: 42 }]> // returns { foo: 'bar', bar: 'baz', 'something': 42 } ``` ## License MIT. Made with 💖 [npm-version-src]: https://img.shields.io/npm/v/defu?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/defu [npm-downloads-src]: https://img.shields.io/npm/dm/defu?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/defu [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/defu/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/defu [bundle-src]: https://img.shields.io/bundlephobia/minzip/defu?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=defu [license-src]: https://img.shields.io/github/license/unjs/defu.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/defu/blob/main/LICENSE --- END ORIGINAL BYTES --- ================================================================ dequal@2.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz Locked integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 306fa513e39b23a6e8747520de761809d206b99800ef41907b530226574c59ae; bytes: 1114 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) Luke Edwards (lukeed.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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 13d0baa49b78a3567af96171135e0784f2be2e5a19dc775d0b4f92647267b887; bytes: 4462 --- BEGIN ORIGINAL BYTES --- # dequal [![CI](https://github.com/lukeed/dequal/workflows/CI/badge.svg)](https://github.com/lukeed/dequal/actions) > A tiny (304B to 489B) utility to check for deep equality This module supports comparison of all types, including `Function`, `RegExp`, `Date`, `Set`, `Map`, `TypedArray`s, `DataView`, `null`, `undefined`, and `NaN` values. Complex values (eg, Objects, Arrays, Sets, Maps, etc) are traversed recursively. > **Important:** > * key order **within Objects** does not matter > * value order **within Arrays** _does_ matter > * values **within Sets and Maps** use value equality > * keys **within Maps** use value equality ## Install ``` $ npm install --save dequal ``` ## Modes There are two "versions" of `dequal` available: #### `dequal` > **Size (gzip):** 489 bytes
> **Availability:** [CommonJS](https://unpkg.com/dequal/dist/index.js), [ES Module](https://unpkg.com/dequal/dist/index.mjs), [UMD](https://unpkg.com/dequal/dist/index.min.js) #### `dequal/lite` > **Size (gzip):** 304 bytes
> **Availability:** [CommonJS](https://unpkg.com/dequal/lite/index.js), [ES Module](https://unpkg.com/dequal/lite/index.mjs) | | IE9+ | Number | String | Date | RegExp | Object | Array | Class | Set | Map | ArrayBuffer | [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#TypedArray_objects) | [DataView](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) | |-|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| | `dequal` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | `dequal/lite` | :+1: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | > **Note:** Table scrolls horizontally! ## Usage ```js import { dequal } from 'dequal'; dequal(1, 1); //=> true dequal({}, {}); //=> true dequal('foo', 'foo'); //=> true dequal([1, 2, 3], [1, 2, 3]); //=> true dequal(dequal, dequal); //=> true dequal(/foo/, /foo/); //=> true dequal(null, null); //=> true dequal(NaN, NaN); //=> true dequal([], []); //=> true dequal( [{ a:1 }, [{ b:{ c:[1] } }]], [{ a:1 }, [{ b:{ c:[1] } }]] ); //=> true dequal(1, '1'); //=> false dequal(null, undefined); //=> false dequal({ a:1, b:[2,3] }, { a:1, b:[2,5] }); //=> false dequal(/foo/i, /bar/g); //=> false ``` ## API ### dequal(foo, bar) Returns: `Boolean` Both `foo` and `bar` can be of any type.
A `Boolean` is returned indicating if the two were deeply equal. ## Benchmarks > Running Node v10.13.0 The benchmarks can be found in the [`/bench`](/bench) directory. They are separated into two categories: * `basic` – compares an object comprised of `String`, `Number`, `Date`, `Array`, and `Object` values. * `complex` – like `basic`, but adds `RegExp`, `Map`, `Set`, and `Uint8Array` values. > **Note:** Only candidates that pass validation step(s) are listed.
For example, `fast-deep-equal/es6` handles `Set` and `Map` values, but uses _referential equality_ while those listed use _value equality_. ``` Load times: assert 0.109ms util 0.006ms fast-deep-equal 0.479ms lodash/isequal 22.826ms nano-equal 0.417ms dequal 0.396ms dequal/lite 0.264ms Benchmark :: basic assert.deepStrictEqual x 325,262 ops/sec ±0.57% (94 runs sampled) util.isDeepStrictEqual x 318,812 ops/sec ±0.87% (94 runs sampled) fast-deep-equal x 1,332,393 ops/sec ±0.36% (93 runs sampled) lodash.isEqual x 269,129 ops/sec ±0.59% (95 runs sampled) nano-equal x 1,122,053 ops/sec ±0.36% (96 runs sampled) dequal/lite x 1,700,972 ops/sec ±0.31% (94 runs sampled) dequal x 1,698,972 ops/sec ±0.63% (97 runs sampled) Benchmark :: complex assert.deepStrictEqual x 124,518 ops/sec ±0.64% (96 runs sampled) util.isDeepStrictEqual x 125,113 ops/sec ±0.24% (96 runs sampled) lodash.isEqual x 58,677 ops/sec ±0.49% (96 runs sampled) dequal x 345,386 ops/sec ±0.27% (96 runs sampled) ``` ## License MIT © [Luke Edwards](https://lukeed.com) --- END ORIGINAL BYTES --- ================================================================ destr@2.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/destr/-/destr-2.0.5.tgz Locked integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 886c3f25ace82d6aae0198e08f607f5339e30e323f67a67760f12ef623013144; bytes: 3292 --- BEGIN ORIGINAL BYTES --- # destr [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![License][license-src]][license-href] A faster, secure and convenient alternative for [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). ## Usage ### Node.js Install dependency: ```bash # npm npm i destr # yarn yarn add destr # pnpm pnpm i destr ``` Import into your Node.js project: ```js // ESM import { destr, safeDestr } from "destr"; // CommonJS const { destr, safeDestr } = require("destr"); ``` ### Deno ```js import { destr, safeDestr } from "https://deno.land/x/destr/src/index.ts"; console.log(destr('{ "deno": "yay" }')); ``` ## Why? ### ✅ Type Safe ```ts const obj = JSON.parse("{}"); // obj type is any const obj = destr("{}"); // obj type is unknown by default const obj = destr("{}"); // obj is well-typed ``` ### ✅ Fast fallback to input if is not string ```js // Uncaught SyntaxError: Unexpected token u in JSON at position 0 JSON.parse(); // undefined destr(); ``` ### ✅ Fast lookup for known string values ```js // Uncaught SyntaxError: Unexpected token T in JSON at position 0 JSON.parse("TRUE"); // true destr("TRUE"); ``` ### ✅ Fallback to original value if parse fails (empty or any plain string) ```js // Uncaught SyntaxError: Unexpected token s in JSON at position 0 JSON.parse("salam"); // "salam" destr("salam"); ``` **Note:** This fails in safe/strict mode with `safeDestr`. ### ✅ Avoid prototype pollution ```js const input = '{ "user": { "__proto__": { "isAdmin": true } } }'; // { user: { __proto__: { isAdmin: true } } } JSON.parse(input); // { user: {} } destr(input); ``` ### ✅ Strict Mode When using `safeDestr` it will throw an error if the input is not a valid JSON string or parsing fails. (non string values and built-ins will be still returned as-is) ```js // Returns "[foo" destr("[foo"); // Throws an error safeDestr("[foo"); ``` ## Benchmarks `destr` is faster generally for arbitrary inputs but also sometimes little bit slower than `JSON.parse` when parsing a valid JSON string mainly because of transform to avoid [prototype pollution](https://learn.snyk.io/lessons/prototype-pollution/javascript/) which can lead to serious security issues if not being sanitized. In the other words, `destr` is better when input is not always a JSON string or from untrusted source like request body. Check [Benchmark Results](./BENCH.md) or run with `pnpm run bench:node` or `pnpm run bench:bun` yourself! ## License MIT. Made with 💖 [npm-version-src]: https://img.shields.io/npm/v/destr?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/destr [npm-downloads-src]: https://img.shields.io/npm/dm/destr?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/destr [bundle-src]: https://img.shields.io/bundlephobia/minzip/destr?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=destr [license-src]: https://img.shields.io/github/license/unjs/destr.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/destr/blob/main/LICENSE --- END ORIGINAL BYTES --- ================================================================ detect-libc@2.1.2 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz Locked integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1; bytes: 11357 --- BEGIN ORIGINAL BYTES --- 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 {yyyy} {name of copyright owner} 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 51a97449c443889155bc872522e6de5a91a5fa73edeffa03d749e186bf0eebca; bytes: 3215 --- BEGIN ORIGINAL BYTES --- # detect-libc Node.js module to detect details of the C standard library (libc) implementation provided by a given Linux system. Currently supports detection of GNU glibc and MUSL libc. Provides asychronous and synchronous functions for the family (e.g. `glibc`, `musl`) and version (e.g. `1.23`, `1.2.3`). The version numbers of libc implementations are not guaranteed to be semver-compliant. For previous v1.x releases, please see the [v1](https://github.com/lovell/detect-libc/tree/v1) branch. ## Install ```sh npm install detect-libc ``` ## API ### GLIBC ```ts const GLIBC: string = 'glibc'; ``` A String constant containing the value `glibc`. ### MUSL ```ts const MUSL: string = 'musl'; ``` A String constant containing the value `musl`. ### family ```ts function family(): Promise; ``` Resolves asychronously with: * `glibc` or `musl` when the libc family can be determined * `null` when the libc family cannot be determined * `null` when run on a non-Linux platform ```js const { family, GLIBC, MUSL } = require('detect-libc'); switch (await family()) { case GLIBC: ... case MUSL: ... case null: ... } ``` ### familySync ```ts function familySync(): string | null; ``` Synchronous version of `family()`. ```js const { familySync, GLIBC, MUSL } = require('detect-libc'); switch (familySync()) { case GLIBC: ... case MUSL: ... case null: ... } ``` ### version ```ts function version(): Promise; ``` Resolves asychronously with: * The version when it can be determined * `null` when the libc family cannot be determined * `null` when run on a non-Linux platform ```js const { version } = require('detect-libc'); const v = await version(); if (v) { const [major, minor, patch] = v.split('.'); } ``` ### versionSync ```ts function versionSync(): string | null; ``` Synchronous version of `version()`. ```js const { versionSync } = require('detect-libc'); const v = versionSync(); if (v) { const [major, minor, patch] = v.split('.'); } ``` ### isNonGlibcLinux ```ts function isNonGlibcLinux(): Promise; ``` Resolves asychronously with: * `false` when the libc family is `glibc` * `true` when the libc family is not `glibc` * `false` when run on a non-Linux platform ```js const { isNonGlibcLinux } = require('detect-libc'); if (await isNonGlibcLinux()) { ... } ``` ### isNonGlibcLinuxSync ```ts function isNonGlibcLinuxSync(): boolean; ``` Synchronous version of `isNonGlibcLinux()`. ```js const { isNonGlibcLinuxSync } = require('detect-libc'); if (isNonGlibcLinuxSync()) { ... } ``` ## Licensing Copyright 2017 Lovell Fuller and others. 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](http://www.apache.org/licenses/LICENSE-2.0.html) 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. --- END ORIGINAL BYTES --- ================================================================ devalue@5.9.4 Declared package license: MIT Published archive: https://registry.npmjs.org/devalue/-/devalue-5.9.4.tgz Locked integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: e399db7e952e45cae84f1b53d72ba8dbad2daaa7ab8cd1f0ab72fea5ab73b225; bytes: 1121 --- BEGIN ORIGINAL BYTES --- Copyright (c) 2018-19 [these people](https://github.com/rich-harris/devalue/graphs/contributors) 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: efe6038181fa442dec5e438161cb4a9b9e3a36002081a1fb1f93571ecfacda86; bytes: 12655 --- BEGIN ORIGINAL BYTES --- # devalue Like `JSON.stringify`, but handles - cyclical references (`obj.self = obj`) - repeated references (`[value, value]`) - `undefined`, `Infinity`, `NaN`, `-0` - regular expressions - dates - `Map` and `Set` - `BigInt` - `ArrayBuffer` and Typed Arrays - `URL` and `URLSearchParams` - `Temporal` - custom types via replacers, reducers and revivers - promises (via `stringifyAsync`) Try it out [here](https://svelte.dev/repl/138d70def7a748ce9eda736ef1c71239?version=3.49.0). ## Goals: - Performance - Security (see [XSS mitigation](#xss-mitigation)) - Compact output ## Non-goals: - Human-readable output - Stringifying functions - Stability of serialization mechanisms between versions (i.e. if you `devalue.stringify` with one version and `devalue.parse` with another, things may break) ## Usage There are two ways to use `devalue`: ### `uneval` This function takes a JavaScript value and returns the JavaScript code to create an equivalent value — sort of like `eval` in reverse: ```js import * as devalue from 'devalue'; let obj = { message: 'hello' }; devalue.uneval(obj); // '{message:"hello"}' obj.self = obj; devalue.uneval(obj); // '(function(a){a.message="hello";a.self=a;return a}({}))' ``` Use `uneval` when you want the most compact possible output and don't want to include any code for parsing the serialized value. ### `stringify` and `parse` These two functions are analogous to `JSON.stringify` and `JSON.parse`: ```js import * as devalue from 'devalue'; let obj = { message: 'hello' }; let stringified = devalue.stringify(obj); // '[{"message":1},"hello"]' devalue.parse(stringified); // { message: 'hello' } obj.self = obj; stringified = devalue.stringify(obj); // '[{"message":1,"self":0},"hello"]' devalue.parse(stringified); // { message: 'hello', self: [Circular] } ``` Use `stringify` and `parse` when evaluating JavaScript isn't an option. ### `stringifyAsync` `stringifyAsync` is an async version of `stringify` that can handle promises: ```js import * as devalue from 'devalue'; let obj = { quick: 'data', slow: fetch('/api/slow').then((r) => r.json()) }; let stringified = await devalue.stringifyAsync(obj); devalue.parse(stringified); // { quick: 'data', slow: { ... } } ``` Promises are awaited and their resolved values are serialized. The output format is identical to `stringify`, so `parse` and `unflatten` work unchanged. ### `unflatten` In the case where devalued data is one part of a larger JSON string, `unflatten` allows you to revive just the bit you need: ```js import * as devalue from 'devalue'; const json = `{ "type": "data", "data": ${devalue.stringify(data)} }`; const data = devalue.unflatten(JSON.parse(json).data); ``` ### Binary data Node.js `Buffer` values are serialized as `Uint8Array`s containing only the Buffer's visible bytes. Their backing stores are copied, since small Buffers can share an allocation pool containing unrelated, sensitive data. Repeated references to the same Buffer are preserved, but distinct Buffers are given separate backing stores. For ordinary typed arrays and `DataView`s, devalue serializes the **entire backing `ArrayBuffer`**, preserving shared views and byte offsets. This includes bytes outside a `subarray` or subview. Only serialize these views if their entire backing store is safe to disclose, or copy the intended bytes first: ```js const copy = new Uint8Array(new Uint8Array(view.buffer, view.byteOffset, view.byteLength)); const serialized = devalue.stringify(copy); ``` This also applies if you explicitly pass `buf.buffer`, or create an ordinary typed array or `DataView` over a Node Buffer's backing store — these values cannot be identified as Node Buffers. To copy a Buffer's contents into an independent typed array, use `new Uint8Array(buf)`. ## Custom types You can serialize and deserialize custom types by passing a second argument to `stringify` containing an object of types and their _reducers_, and a second argument to `parse` or `unflatten` containing an object of types and their _revivers_: ```js class Vector { constructor(x, y) { this.x = x; this.y = y; } magnitude() { return Math.sqrt(this.x * this.x + this.y * this.y); } } const stringified = devalue.stringify(new Vector(30, 40), { Vector: (value) => value instanceof Vector && [value.x, value.y] }); console.log(stringified); // [["Vector",1],[2,3],30,40] const vector = devalue.parse(stringified, { Vector: ([x, y]) => new Vector(x, y) }); console.log(vector.magnitude()); // 50 ``` If a function passed to `stringify` returns a truthy value, it's treated as a match. You can also use custom types with `uneval` by specifying a custom replacer: ```js devalue.uneval(vector, (value, uneval) => { if (value instanceof Vector) { return `new Vector(${value.x},${value.y})`; } }); // `new Vector(30,40)` ``` Note that any variables referenced in the resulting JavaScript (like `Vector` in the example above) must be in scope when it runs. ## Custom operations Every introspection `stringify` performs on the value being serialized — property reads, prototype method calls, iteration, type classification — goes through an operations interface that you can override via the `operations` option. Omitted members fall back to the defaults (exported as `defaultStringifyOperations`), which behave exactly as devalue always has. This is useful in two situations: **Side-effect-free serialization.** By default, serializing a value can execute user code: getters and proxy traps fire during property reads, `Object.prototype.toString` consults (potentially getter-defined) `Symbol.toStringTag`, and patched prototype methods like `Date.prototype.toISOString` or `Map.prototype[Symbol.iterator]` are invoked. Deterministic or sandboxed runtimes can replace these operations with implementations based on captured intrinsics and property descriptors: ```js const originalToISOString = Date.prototype.toISOString; const stringified = devalue.stringify(value, undefined, { operations: { // use a captured intrinsic instead of a (possibly patched) prototype method toISOString: (date) => originalToISOString.call(date), // read through descriptors so getters are never invoked get: (object, key) => { const descriptor = Object.getOwnPropertyDescriptor(object, key); if (descriptor?.get) throw new Error(`refusing to invoke getter for "${key}"`); return descriptor?.value; } } }); ``` **Foreign-runtime serialization.** The `stringify` algorithm never touches the value directly, so "value" can be an opaque handle to something living in another JavaScript runtime — a `node:vm` context, a WASM-hosted engine, a remote process — as long as the operations know how to inspect it. Implement `typeOf`/`tagOf` for classification, `toPrimitive`/`get`/`entriesOf`/etc. for extraction, and `identify` to key deduplication and cycle detection on the underlying value's identity rather than the handle's: ```js const stringified = devalue.stringify(rootHandle, undefined, { operations: { identify: (handle) => handle.pointer, typeOf: (handle) => handle.typeOf(), get: (handle, key) => handle.getProperty(key) // ... see StringifyOperations for the full interface } }); ``` Some operations have a non-obvious contract that is easy to get subtly wrong. Where the work is not specific to your values, devalue exports the pieces so you don't have to reimplement them — `filterArrayIndices` does the array-index filtering that `indicesOf` needs, given keys you already have: ```js indicesOf: (handle) => devalue.filterArrayIndices(handle.ownEnumerableStringKeys()) ``` Reducers compose with custom operations: they receive the raw value/handle, and whatever they return is serialized through the same operations. ### Customizing `parse` The mirror image: `parse` and `unflatten` build every value through construction operations (`ParseOperations`, defaults exported as `defaultParseOperations`), so you can control what gets created. The members mirror `StringifyOperations` with the host/value-space boundary running the other way: each `fromXxx` inverts the corresponding `toXxx`, `fromXxxInfo` inverts `xxxInfo`, and the bare-verb mutators invert the bare-verb accessors (`set`/`get`, `addValue`/`valuesOf`, `addEntry`/`entriesOf`, `box`/`unbox`). **Cross-realm revival.** By default the revived value is built from the intrinsics of whichever realm devalue is running in, so `instanceof` checks fail elsewhere. Constructing from a target realm's intrinsics fixes that: ```js const revived = devalue.parse(serialized, undefined, { operations: { fromISOString: (iso) => new sandbox.Date(iso), createMap: () => new sandbox.Map(), createObject: () => sandbox.makeObject() } }); ``` **Foreign-runtime revival.** `parse` never inspects the values it creates — it only passes them back into other operations — so the operations can build values inside another runtime and return opaque handles: ```js const rootHandle = devalue.parse(serialized, undefined, { operations: { fromPrimitive: (primitive) => vm.toHandle(primitive), createObject: () => vm.newObject(), set: (handle, key, value) => handle.setProp(key, value) // ... see ParseOperations for the full interface } }); ``` Containers are created empty and populated afterwards (`createMap` then `addEntry`, `createObject` then `set`, and so on) — that ordering is what allows cyclic values to be revived, since the empty container is cached before its contents are built. Revivers compose the same way reducers do: they receive whatever the operations built, and their return value is used as-is. ## Error handling If `uneval` or `stringify` encounters a function or a non-POJO that isn't handled by a custom replacer/reducer, it will throw an error. You can find where in the input data the offending value lives by inspecting `error.path`: ```js try { const map = new Map(); map.set('key', function invalid() {}); uneval({ object: { array: [map] } }); } catch (e) { console.log(e.path); // '.object.array[0].get("key")' } ``` ## XSS mitigation Say you're server-rendering a page and want to serialize some state, which could include user input. `JSON.stringify` doesn't protect against XSS attacks: ```js const state = { userinput: ``; ``` Which would result in this: ```html ``` Using `uneval` or `stringify`, we're protected against that attack: ```js const template = ` `; ``` ```html ``` This, along with the fact that `uneval` and `stringify` bail on functions and non-POJOs, stops attackers from executing arbitrary code. Strings generated by `uneval` can be safely deserialized with `eval` or `new Function`: ```js const value = (0, eval)('(' + str + ')'); ``` ## Other security considerations While `uneval` prevents the XSS vulnerability shown above, meaning you can use it to send data from server to client, **you should not send user data from client to server** using the same method. Since it has to be evaluated, an attacker that successfully submitted data that bypassed `uneval` would have access to your system. When using `eval`, ensure that you call it _indirectly_ so that the evaluated code doesn't have access to the surrounding scope: ```js { const sensitiveData = 'Setec Astronomy'; eval('sendToEvilServer(sensitiveData)'); // pwned :( (0, eval)('sendToEvilServer(sensitiveData)'); // nice try, evildoer! } ``` Using `new Function(code)` is akin to using indirect eval. ## See also - [lave](https://github.com/jed/lave) by Jed Schmidt - [arson](https://github.com/benjamn/arson) by Ben Newman. The `stringify`/`parse` approach in `devalue` was inspired by `arson` - [oson](https://github.com/KnorpelSenf/oson) by Steffen Trog - [tosource](https://github.com/marcello3d/node-tosource) by Marcello Bastéa-Forte - [serialize-javascript](https://github.com/yahoo/serialize-javascript) by Eric Ferraiuolo - [jsesc](https://github.com/mathiasbynens/jsesc) by Mathias Bynens - [superjson](https://github.com/blitz-js/superjson) by Blitz - [next-json](https://github.com/iccicci/next-json) by Daniele Ricci ## License [MIT](LICENSE) --- END ORIGINAL BYTES --- ================================================================ devlop@1.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz Locked integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 6f296a5eccc1dc96714bb94ebaa9cac25b0a1467d74cc5263ac4d0646ab01f62; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2023 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 10f164b0fbc1a2529745cc911427ef667cde9bc3b38b1fe9828ce80c3f7c21cd; bytes: 10114 --- BEGIN ORIGINAL BYTES --- # devlop [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Some tools to make developing easier while not including code in production. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`deprecate(fn, message[, code])`](#deprecatefn-message-code) * [`equal(actual, expected[, message])`](#equalactual-expected-message) * [`ok(value[, message])`](#okvalue-message) * [`unreachable(message?)`](#unreachablemessage) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package lets you do things in development that are free in production. It contains useful `assert` functions and a `deprecate` function that are useful when developing JavaScript packages while being small in production. If you know Rust, you might know how nice having a [`debug_assert!`][rust-debug-assert] is. This is that, and a bit more. For more on why they’re nice, see [“Rust’s Two Kinds of ‘Assert’ Make for Better Code”][rust-two-kinds] ## When should I use this? Many JavaScript programs do not use assertions at all (perhaps because they’re typed and so assume type safety) or include lots of code to throw errors when users do weird things (weighing down production code). This package hopes to improve the sitation by making assertions free and deprecations cheap. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install devlop ``` In Deno with [`esm.sh`][esmsh]: ```js import {deprecate, equal, ok, unreachable} from 'https://esm.sh/devlop@1' // For development code: // import {deprecate, equal, ok} from 'https://esm.sh/devlop@1?conditions=development' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use Say we have a small ponyfill for the ES5 `String#includes` function. It’s deprecated, because folks can use `String#includes` nowadays. It’s nicely typed so users should be able to figure out what to pass but we include assertions to show nicer errors when they get it wrong. `example/string-includes.js`: ```js import {deprecate, ok} from 'devlop' export const stringIncludes = deprecate( includes, 'Since ES5, please use `String#includes` itself.' ) /** * @deprecated * Since ES5, please use `String#includes` itself. * @param {string} value * Value to search in. * @param {string} search * Value to search for. * @param {number | undefined} [position=0] * Position to search from (default: `0`). * @returns {boolean} * Whether the searched for value exists in the searched value after position. */ function includes(value, search, position) { ok(typeof value === 'string', 'expected string for `value`') ok(typeof search === 'string', 'expected string for `search`') ok(position === undefined || typeof position === 'number', 'expected number') ok( position === undefined || (typeof position === 'number' && !(/* #__PURE__ */ Number.isNaN(position))), 'expected number' ) // eslint-disable-next-line unicorn/prefer-includes return value.indexOf(search, position || 0) !== -1 } ``` `example/index.js`: ```js import {stringIncludes} from './example-includes.js' console.log(stringIncludes('blue whale', 'dolphin')) //=> false console.log(stringIncludes('blue whale', 'whale')) //=> true ``` Say we’d bundle that in development with [`esbuild`][esbuild] and check the gzip size ([`gzip-size-cli`][gzip-size-cli]), we’d get 1.02 kB of code: ```sh $ esbuild example/index.js --bundle --conditions=development --format=esm --minify --target=es2022 | gzip-size 1.02 kB ``` But because `devlop` is light in production we’d get: ```sh $ esbuild example/index.js --bundle --format=esm --minify --target=es2022 | gzip-size 169 B ``` The bundle looks as follows: ```js function u(n){return n}var r=u(c,"Since ES5, please use `String#includes` itself.");function c(n,t,e){return n.indexOf(t,e||0)!==-1}console.log(r("blue whale","dolphin"));console.log(r("blue whale","whale")); ``` It depends a bit on which bundler and minifier you use how small the code is: esbuild keeps the unused message parameter to the `deprecate` function around and does not know `Number.isNaN` can be dropped without a `/* #__PURE__ */` annotation. [`rollup`][rollup] with [`@rollup/plugin-node-resolve`][node-resolve] and [`@rollup/plugin-terser`][terser] performs even better: ```sh $ rollup example/index.js -p node-resolve -p terser | gzip-size 118 B ``` The bundle looks as follows: ```js const l=function(l,e,o){return-1!==l.indexOf(e,o||0)};console.log(l("blue whale","dolphin")),console.log(l("blue whale","whale")); ``` Rollup doesn’t need the `/* #__PURE__ */` comment either! ## API This package exports the identifiers [`deprecate`][api-deprecate], [`equal`][api-equal], [`ok`][api-ok], and [`unreachable`][api-unreachable]. There is no default export. The export map supports the [`development` condition][node-condition]. Run `node --conditions development module.js` to get dev code. Without this condition, no-ops are loaded. ### `deprecate(fn, message[, code])` Wrap a function or class to show a deprecation message when first called. > 👉 **Important**: only shows a message when the `development` condition is > used, does nothing in production. When the resulting wrapped `fn` is called, emits a warning once to `console.error` (`stderr`). If a code is given, one warning message will be emitted in total per code. ###### Parameters * `fn` (`Function`) — function or class * `message` (`string`) — message explaining deprecation * `code` (`string`, optional) — deprecation identifier (optional); deprecation messages will be generated only once per code ###### Returns Wrapped `fn`. ### `equal(actual, expected[, message])` Assert deep strict equivalence. > 👉 **Important**: only asserts when the `development` condition is used, does > nothing in production. ###### Parameters * `actual` (`unknown`) — value * `expected` (`unknown`) — baseline * `message` (`Error` or `string`, default: `'Expected values to be deeply equal'`) — message for assertion error ###### Returns Nothing (`undefined`). ###### Throws Throws (`AssertionError`) when `actual` is not deep strict equal to `expected`. ### `ok(value[, message])` Assert if `value` is truthy. > 👉 **Important**: only asserts when the `development` condition is used, does > nothing in production. ###### Parameters * `actual` (`unknown`) — value to assert * `message` (`Error` or `string`, default: `'Expected value to be truthy'`) — message for assertion error ###### Returns Nothing (`undefined`). ###### Throws Throws (`AssertionError`) when `value` is falsey. ### `unreachable(message?)` Assert that a code path never happens. > 👉 **Important**: only asserts when the `development` condition is used, > does nothing in production. ###### Parameters * `message` (`Error` or `string`, default: `'Unreachable'`) — message for assertion error ###### Returns Never (`never`). ###### Throws Throws (`AssertionError`), always. ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility This project is compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `devlop@^1`, compatible with Node.js 16. ## Security This package is safe. ## Related * [`babel-plugin-unassert`](https://github.com/unassert-js/babel-plugin-unassert) — encourage reliable programming with assertions while compiling them away in production (can remove arbitrary `assert` modules, works regardless of conditions, so has to be configured by the end user) ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/devlop/workflows/main/badge.svg [build]: https://github.com/wooorm/devlop/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/devlop.svg [coverage]: https://codecov.io/github/wooorm/devlop [downloads-badge]: https://img.shields.io/npm/dm/devlop.svg [downloads]: https://www.npmjs.com/package/devlop [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=devlop [size]: https://bundlejs.com/?q=devlop [npm]: https://docs.npmjs.com/cli/install [esmsh]: https://esm.sh [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [node-condition]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions [rust-debug-assert]: https://doc.rust-lang.org/std/macro.debug_assert.html [rust-two-kinds]: https://tratt.net/laurie/blog/2023/rusts_two_kinds_of_assert_make_for_better_code.html [esbuild]: https://esbuild.github.io [gzip-size-cli]: https://github.com/sindresorhus/gzip-size-cli/tree/main [rollup]: https://rollupjs.org [node-resolve]: https://github.com/rollup/plugins/tree/master/packages/node-resolve [terser]: https://github.com/rollup/plugins/tree/master/packages/terser#readme [api-deprecate]: #deprecatefn-message-code [api-equal]: #equalactual-expected-message [api-ok]: #okvalue-message [api-unreachable]: #unreachablemessage --- END ORIGINAL BYTES --- ================================================================ diff@9.0.0 Declared package license: BSD-3-Clause Published archive: https://registry.npmjs.org/diff/-/diff-9.0.0.tgz Locked integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: eda81a415869e67809f6a9f3fd6056062cb83a462118e07eec5e92b2e0c40ce9; bytes: 1546 --- BEGIN ORIGINAL BYTES --- BSD 3-Clause License Copyright (c) 2009-2015, Kevin Decker All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 79d02cee5a2ae6d2634f9a513f08360050ec5b8cefdb6f0079ac82c88a15f044; bytes: 35757 --- BEGIN ORIGINAL BYTES --- # jsdiff A JavaScript text differencing implementation. Try it out in the **[online demo](https://kpdecker.github.io/jsdiff)**. Based on the algorithm proposed in ["An O(ND) Difference Algorithm and its Variations" (Myers, 1986)](http://www.xmailserver.org/diff2.pdf). ## Installation ```bash npm install diff --save ``` ## Getting started ### Imports In an environment where you can use imports, everything you need can be imported directly from `diff`. e.g. ESM: ``` import {diffChars, createPatch} from 'diff'; ``` CommonJS ``` const {diffChars, createPatch} = require('diff'); ``` If you want to serve jsdiff to a web page without using a module system, you can use `dist/diff.js` or `dist/diff.min.js`. These create a global called `Diff` that contains the entire JsDiff API as its properties. ### Usage jsdiff's diff functions all take an old text and a new text and perform three steps: 1. Split both texts into arrays of "tokens". What constitutes a token varies; in `diffChars`, each character is a token, while in `diffLines`, each line is a token. 2. Find the smallest set of single-token *insertions* and *deletions* needed to transform the first array of tokens into the second. This step depends upon having some notion of a token from the old array being "equal" to one from the new array, and this notion of equality affects the results. Usually two tokens are equal if `===` considers them equal, but some of the diff functions use an alternative notion of equality or have options to configure it. For instance, by default `diffChars("Foo", "FOOD")` will require two deletions (`o`, `o`) and three insertions (`O`, `O`, `D`), but `diffChars("Foo", "FOOD", {ignoreCase: true})` will require just one insertion (of a `D`), since `ignoreCase` causes `o` and `O` to be considered equal. 3. Return an array representing the transformation computed in the previous step as a series of [change objects](#change-objects). The array is ordered from the start of the input to the end, and each change object represents *inserting* one or more tokens, *deleting* one or more tokens, or *keeping* one or more tokens. ## API * `diffChars(oldStr, newStr[, options])` - diffs two blocks of text, treating each character as a token. ("Characters" here means Unicode code points - the elements you get when you loop over a string with a `for ... of ...` loop.) Returns a list of [change objects](#change-objects). Options * `ignoreCase`: If `true`, the uppercase and lowercase forms of a character are considered equal. Defaults to `false`. * `diffWords(oldStr, newStr[, options])` - diffs two blocks of text, treating each word and each punctuation mark as a token. Whitespace is ignored when computing the diff (but preserved as far as possible in the final change objects). Returns a list of [change objects](#change-objects). Options * `ignoreCase`: Same as in `diffChars`. Defaults to false. * `intlSegmenter`: An optional [`Intl.Segmenter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter) object (which must have a `granularity` of `'word'`) for `diffWords` to use to split the text into words. By default, `diffWords` does not use an `Intl.Segmenter`, just some regexes for splitting text into words. This will tend to give worse results than `Intl.Segmenter` would, but ensures the results are consistent across environments; `Intl.Segmenter` behaviour is only loosely specced and the implementations in browsers could in principle change dramatically in future. If you want to use `diffWords` with an `Intl.Segmenter` but ensure it behaves the same whatever environment you run it in, use an `Intl.Segmenter` polyfill instead of the JavaScript engine's native `Intl.Segmenter` implementation. Using an `Intl.Segmenter` should allow better word-level diffing of non-English text than the default behaviour. For instance, `Intl.Segmenter`s can generally identify via built-in dictionaries which sequences of adjacent Chinese characters form words, allowing word-level diffing of Chinese. By specifying a language when instantiating the segmenter (e.g. `new Intl.Segmenter('sv', {granularity: 'word'})`) you can also support language-specific rules, like treating Swedish's colon separated contractions (like *k:a* for *kyrka*) as single words; by default this would be seen as two words separated by a colon. * `diffWordsWithSpace(oldStr, newStr[, options])` - diffs two blocks of text, treating each word, punctuation mark, newline, or run of (non-newline) whitespace as a token. * `diffLines(oldStr, newStr[, options])` - diffs two blocks of text, treating each line as a token. Options * `ignoreWhitespace`: `true` to ignore leading and trailing whitespace characters when checking if two lines are equal. Defaults to `false`. * `ignoreNewlineAtEof`: `true` to ignore a missing newline character at the end of the last line when comparing it to other lines. (By default, the line `'b\n'` in text `'a\nb\nc'` is not considered equal to the line `'b'` in text `'a\nb'`; this option makes them be considered equal.) Ignored if `ignoreWhitespace` or `newlineIsToken` are also true. * `stripTrailingCr`: `true` to remove all trailing CR (`\r`) characters before performing the diff. Defaults to `false`. This helps to get a useful diff when diffing UNIX text files against Windows text files. * `newlineIsToken`: `true` to treat the newline character at the end of each line as its own token. This allows for changes to the newline structure to occur independently of the line content and to be treated as such. In general this is the more human friendly form of `diffLines`; the default behavior with this option turned off is better suited for patches and other computer friendly output. Defaults to `false`. Note that while using `ignoreWhitespace` in combination with `newlineIsToken` is not an error, results may not be as expected. With `ignoreWhitespace: true` and `newlineIsToken: false`, changing a completely empty line to contain some spaces is treated as a non-change, but with `ignoreWhitespace: true` and `newlineIsToken: true`, it is treated as an insertion. This is because the content of a completely blank line is not a token at all in `newlineIsToken` mode. Returns a list of [change objects](#change-objects). * `diffSentences(oldStr, newStr[, options])` - diffs two blocks of text, treating each sentence, and the whitespace between each pair of sentences, as a token. The characters `.`, `!`, and `?`, when followed by whitespace, are treated as marking the end of a sentence; nothing else besides the end of the string is considered to mark a sentence end. (For more sophisticated detection of sentence breaks, including support for non-English punctuation, consider instead tokenizing with an [`Intl.Segmenter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter) with `granularity: 'sentence'` and passing the result to `diffArrays`.) Returns a list of [change objects](#change-objects). * `diffCss(oldStr, newStr[, options])` - diffs two blocks of text, comparing CSS tokens. Returns a list of [change objects](#change-objects). * `diffJson(oldObj, newObj[, options])` - diffs two JSON-serializable objects by first serializing them to prettily-formatted JSON and then treating each line of the JSON as a token. Object properties are ordered alphabetically in the serialized JSON, so the order of properties in the objects being compared doesn't affect the result. Returns a list of [change objects](#change-objects). Options * `stringifyReplacer`: A custom replacer function. Operates similarly to the `replacer` parameter to [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#the_replacer_parameter), but must be a function. * `undefinedReplacement`: A value to replace `undefined` with. Ignored if a `stringifyReplacer` is provided. * `diffArrays(oldArr, newArr[, options])` - diffs two arrays of tokens, comparing each item for strict equality (===). Options * `comparator`: `function(left, right)` for custom equality checks Returns a list of [change objects](#change-objects). * `createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr[, oldHeader[, newHeader[, options]]])` - creates a unified diff patch by first computing a diff with `diffLines` and then serializing it to unified diff format. Parameters: * `oldFileName`: String to be output in the filename section of the patch for the removals * `newFileName`: String to be output in the filename section of the patch for the additions * `oldStr`: Original string value * `newStr`: New string value * `oldHeader`: Optional additional information to include in the old file header. Default: `undefined`. * `newHeader`: Optional additional information to include in the new file header. Default: `undefined`. * `options`: An object with options. - `context`: describes how many lines of context should be included. You can set this to `Number.MAX_SAFE_INTEGER` or `Infinity` to include the entire file content in one hunk. - `ignoreWhitespace`: Same as in `diffLines`. Defaults to `false`. - `stripTrailingCr`: Same as in `diffLines`. Defaults to `false`. - `headerOptions`: Configures the format of patch headers in the returned patch. (Note these are distinct from *hunk* headers, which are a mandatory part of the unified diff format and not configurable.) Has three subfields (all default to `true`): - `includeIndex`: whether to include a line like `Index: filename.txt` at the start of the patch header. (Even if this is `true`, this line will be omitted if `oldFileName` and `newFileName` are not identical.) - `includeUnderline`: whether to include `===================================================================`. - `includeFileHeaders`: whether to include two lines indicating the old and new filename, formatted like `--- old.txt` and `+++ new.txt`. Note further that jsdiff exports three top-level constants that can be used as `headerOptions` values, named `INCLUDE_HEADERS` (the default), `FILE_HEADERS_ONLY`, and `OMIT_HEADERS`. (Note that in the case where `includeIndex` and `includeFileHeaders` are both false, the `oldFileName` and `newFileName` parameters are ignored entirely.) The GNU `patch` util will accept patches produced with any configuration of these header options (and refers to patch headers as "leading garbage", which in typical usage it makes no attempt to parse or use in any way). However, other tools for working with unified diff format patches may be less liberal (and are not unambiguously wrong to be so, since the format has no real standard). Tinkering with the `headerOptions` setting thus provides a way to help make patches produced by jsdiff compatible with other tools. * `createPatch(fileName, oldStr, newStr[, oldHeader[, newHeader[, options]]])` - creates a unified diff patch. Just like createTwoFilesPatch, but with oldFileName being equal to newFileName. * `formatPatch(patch[, headerOptions])` - creates a unified diff patch. `patch` may be either a single structured patch object (as returned by `structuredPatch`) or an array of them (as returned by `parsePatch`). The optional `headerOptions` argument behaves the same as the `headerOptions` option of `createTwoFilesPatch`, except that it is ignored for Git patches (i.e. patches where `isGit` is `true`). When a patch has `isGit: true`, `formatPatch` output is changed to more closely match Git's output: it emits a `diff --git` header, emits Git extended headers as appropriate based on properties like `isRename`, `isCreate`, `newMode`, etc, and always emits `---`/`+++` file headers when hunks are present but omits them when there are no hunks (e.g. renames without content changes). The `headerOptions` parameter has no effect on Git patches since the header format is fully determined by the Git extended header properties. * `structuredPatch(oldFileName, newFileName, oldStr, newStr[, oldHeader[, newHeader[, options]]])` - returns an object with an array of hunk objects. This method is similar to createTwoFilesPatch, but returns a data structure suitable for further processing. Parameters are the same as createTwoFilesPatch. The data structure returned may look like this: ```js { oldFileName: 'oldfile', newFileName: 'newfile', oldHeader: 'header1', newHeader: 'header2', hunks: [{ oldStart: 1, oldLines: 3, newStart: 1, newLines: 3, lines: [' line2', ' line3', '-line4', '+line5', '\\ No newline at end of file'], }] } ``` * `applyPatch(source, patch[, options])` - attempts to apply a unified diff patch. Hunks are applied first to last. `applyPatch` first tries to apply the first hunk at the line number specified in the hunk header, and with all context lines matching exactly. If that fails, it tries scanning backwards and forwards, one line at a time, to find a place to apply the hunk where the context lines match exactly. If that still fails, and `fuzzFactor` is greater than zero, it increments the maximum number of mismatches (missing, extra, or changed context lines) that there can be between the hunk context and a region where we are trying to apply the patch such that the hunk will still be considered to match. Regardless of `fuzzFactor`, lines to be deleted in the hunk *must* be present for a hunk to match, and the context lines *immediately* before and after an insertion must match exactly. Once a hunk is successfully fitted, the process begins again with the next hunk. Regardless of `fuzzFactor`, later hunks must be applied later in the file than earlier hunks. If a hunk cannot be successfully fitted *anywhere* with fewer than `fuzzFactor` mismatches, `applyPatch` fails and returns `false`. If a hunk is successfully fitted but not at the line number specified by the hunk header, all subsequent hunks have their target line number adjusted accordingly. (e.g. if the first hunk is applied 10 lines below where the hunk header said it should fit, `applyPatch` will *start* looking for somewhere to apply the second hunk 10 lines below where its hunk header says it goes.) If the patch was applied successfully, returns a string containing the patched text. If the patch could not be applied (because some hunks in the patch couldn't be fitted to the text in `source`), `applyPatch` returns false. `patch` may be a string diff or the output from the `parsePatch` or `structuredPatch` methods. The optional `options` object may have the following keys: - `fuzzFactor`: Maximum Levenshtein distance (in lines deleted, added, or subtituted) between the context shown in a patch hunk and the lines found in the file. Defaults to 0. - `autoConvertLineEndings`: If `true`, and if the file to be patched consistently uses different line endings to the patch (i.e. either the file always uses Unix line endings while the patch uses Windows ones, or vice versa), then `applyPatch` will behave as if the line endings in the patch were the same as those in the source file. (If `false`, the patch will usually fail to apply in such circumstances since lines deleted in the patch won't be considered to match those in the source file.) Defaults to `true`. - `compareLine(lineNumber, line, operation, patchContent)`: Callback used to compare to given lines to determine if they should be considered equal when patching. Defaults to strict equality but may be overridden to provide fuzzier comparison. Should return false if the lines should be rejected. * `applyPatches(patch, options)` - applies one or more patches. `patch` may be either an array of structured patch objects, or a string representing a patch in unified diff format (which may patch one or more files). This method will iterate over the contents of the patch and apply to data provided through callbacks. The general flow for each patch index is: - `options.loadFile(index, callback)` is called. The caller should then load the contents of the file and then pass that to the `callback(err, data)` callback. Passing an `err` will terminate further patch execution. - `options.patched(index, content, callback)` is called once the patch has been applied. `content` will be the return value from `applyPatch`. When it's ready, the caller should call `callback(err)` callback. Passing an `err` will terminate further patch execution. Once all patches have been applied or an error occurs, the `options.complete(err)` callback is made. * `parsePatch(diffStr)` - Parses a unified diff format patch into a structured patch object. Returns a JSON object representation of the patch, suitable for use with the `applyPatch` method. This parses to the same structure returned by `structuredPatch`, except that `oldFileName` and `newFileName` may be `undefined` if the patch doesn't contain enough information to determine them (e.g. a hunk-only patch with no file headers). `parsePatch` has some understanding of [Git's particular dialect of unified diff format](https://git-scm.com/docs/git-diff#generate_patch_text_with_p). When parsing a Git patch, each index in the result may contain the following additional fields not included in the data structure returned by `structuredPatch`: - `isGit` - set to `true` when parsing from a Git-style patch. - `isRename` - set to `true` when parsing a Git diff that includes `rename from`/`rename to` extended headers, indicating the file was renamed (and the old file no longer exists). Consumers applying the patch should delete the old file. - `isCopy` - set to `true` when parsing a Git diff that includes `copy from`/`copy to` extended headers, indicating the file was copied (and the old file still exists). Consumers applying the patch should NOT delete the old file. - `isCreate` - set to `true` when parsing a Git diff that includes a `new file mode` extended header, indicating the file was newly created. - `isDelete` - set to `true` when parsing a Git diff that includes a `deleted file mode` extended header, indicating the file was deleted. - `oldMode` - the file mode (e.g. `'100644'`, `'100755'`) of the old file, parsed from Git extended headers (`old mode` or `deleted file mode`). - `newMode` - the file mode (e.g. `'100644'`, `'100755'`) of the new file, parsed from Git extended headers (`new mode` or `new file mode`). - `isBinary` - set to `true` when parsing a Git diff that includes a `Binary files ... differ` line, indicating a binary file change. Binary patches have no hunks, so the patch content alone is not sufficient to apply the change; consumers should handle this case specially (e.g. by warning the user or fetching the binary content separately). * `reversePatch(patch)` - Returns a new structured patch which when applied will undo the original `patch`. `patch` may be either a single structured patch object (as returned by `structuredPatch`) or an array of them (as returned by `parsePatch`). When `patch` is a Git-style patch, `reversePatch` handles extended header information (relating to renames, file modes, etc.) to the extent that doing so is possible, but note one fundamental limitation: the correct inverse of a patch featuring `copy from`/`copy to` headers cannot, in general, be determined based on the information contained in the patch alone, and so `reversePatch`'s output when passed such a patch will usually be rejected by `git apply`. (The correct inverse would be a patch that deletes the newly-created file, but for Git to apply such a patch, the patch must explicitly delete every line of content in the file too, and that content cannot be determined from the original patch on its own. `reversePatch` therefore does the only vaguely reasonable thing it can do in this scenario: it outputs a patch with a `deleted file mode` header - indicating that the file should be deleted - but no hunks.) * `convertChangesToXML(changes)` - converts a list of change objects to a serialized XML format * `convertChangesToDMP(changes)` - converts a list of change objects to the format returned by Google's [diff-match-patch](https://github.com/google/diff-match-patch) library #### Universal `options` Certain options can be provided in the `options` object of *any* method that calculates a diff (including `diffChars`, `diffLines` etc. as well as `structuredPatch`, `createPatch`, and `createTwoFilesPatch`): * `callback`: if provided, the diff will be computed in async mode to avoid blocking the event loop while the diff is calculated. The value of the `callback` option should be a function and will be passed the computed diff or patch as its first argument. (Note that if the ONLY option you want to provide is a callback, you can pass the callback function directly as the `options` parameter instead of passing an object with a `callback` property.) * `maxEditLength`: a number specifying the maximum edit distance to consider between the old and new texts. You can use this to limit the computational cost of diffing large, very different texts by giving up early if the cost will be huge. This option can be passed either to diffing functions (`diffLines`, `diffChars`, etc) or to patch-creation function (`structuredPatch`, `createPatch`, etc), all of which will indicate that the max edit length was reached by returning `undefined` instead of whatever they'd normally return. * `timeout`: a number of milliseconds after which the diffing algorithm will abort and return `undefined`. Supported by the same functions as `maxEditLength`. * `oneChangePerToken`: if `true`, the array of change objects returned will contain one change object per token (e.g. one per line if calling `diffLines`), instead of runs of consecutive tokens that are all added / all removed / all conserved being combined into a single change object. ### Defining custom diffing behaviors If you need behavior a little different to what any of the text diffing functions above offer, you can roll your own by customizing both the tokenization behavior used and the notion of equality used to determine if two tokens are equal. The simplest way to customize tokenization behavior is to simply tokenize the texts you want to diff yourself, with your own code, then pass the arrays of tokens to `diffArrays`. For instance, if you wanted a semantically-aware diff of some code, you could try tokenizing it using a parser specific to the programming language the code is in, then passing the arrays of tokens to `diffArrays`. To customize the notion of token equality used, use the `comparator` option to `diffArrays`. For even more customisation of the diffing behavior, you can extend the `Diff()` class, override its `castInput`, `tokenize`, `removeEmpty`, `equals`, and `join` properties with your own functions, then call its `diff(oldString, newString[, options])` method. The methods you can override are used as follows: * `castInput(value, options)`: used to transform the `oldString` and `newString` before any other steps in the diffing algorithm happen. For instance, `diffJson` uses `castInput` to serialize the objects being diffed to JSON. Defaults to a no-op. * `tokenize(value, options)`: used to convert each of `oldString` and `newString` (after they've gone through `castInput`) to an array of tokens. Defaults to returning `value.split('')` (returning an array of individual characters). * `removeEmpty(array)`: called on the arrays of tokens returned by `tokenize` and can be used to modify them. Defaults to stripping out falsey tokens, such as empty strings. `diffArrays` overrides this to simply return the `array`, which means that falsey values like empty strings can be handled like any other token by `diffArrays`. * `equals(left, right, options)`: called to determine if two tokens (one from the old string, one from the new string) should be considered equal. Defaults to comparing them with `===`. * `join(tokens)`: gets called with an array of consecutive tokens that have either all been added, all been removed, or are all common. Needs to join them into a single value that can be used as the `value` property of the [change object](#change-objects) for these tokens. Defaults to simply returning `tokens.join('')` (and therefore by default will error out if your tokens are not strings; differs that support non-string tokens like `diffArrays` should override it to be a no-op to fix this). * `postProcess(changeObjects, options)`: gets called at the end of the algorithm with the [change objects](#change-objects) produced, and can do final cleanups on them. Defaults to simply returning `changeObjects` unchanged. ### Change Objects Many of the methods above return change objects. These objects consist of the following fields: * `value`: The concatenated content of all the tokens represented by this change object - i.e. generally the text that is either added, deleted, or common, as a single string. In cases where tokens are considered common but are non-identical (e.g. because an option like `ignoreCase` or a custom `comparator` was used), the value from the *new* string will be provided here. * `added`: true if the value was inserted into the new string, otherwise false * `removed`: true if the value was removed from the old string, otherwise false * `count`: How many tokens (e.g. chars for `diffChars`, lines for `diffLines`) the value in the change object consists of (Change objects where `added` and `removed` are both false represent content that is common to the old and new strings.) ## Examples #### Basic example in Node ```js require('colors'); const {diffChars} = require('diff'); const one = 'beep boop'; const other = 'beep boob blah'; const diff = diffChars(one, other); diff.forEach((part) => { // green for additions, red for deletions let text = part.added ? part.value.bgGreen : part.removed ? part.value.bgRed : part.value; process.stderr.write(text); }); console.log(); ``` Running the above program should yield Node Example #### Basic example in a web page ```html



```

Open the above .html file in a browser and you should see

Node Example

#### Example of generating a patch from Node

The code below is roughly equivalent to the Unix command `diff -u file1.txt file2.txt > mydiff.patch`:

```
const {createTwoFilesPatch} = require('diff');
const file1Contents = fs.readFileSync("file1.txt").toString();
const file2Contents = fs.readFileSync("file2.txt").toString();
const patch = createTwoFilesPatch("file1.txt", "file2.txt", file1Contents, file2Contents);
fs.writeFileSync("mydiff.patch", patch);
```

#### Examples of parsing and applying a patch from Node

##### Applying a patch to a specified file

The code below is roughly equivalent to the Unix command `patch file1.txt mydiff.patch`:

```
const {applyPatch} = require('diff');
const file1Contents = fs.readFileSync("file1.txt").toString();
const patch = fs.readFileSync("mydiff.patch").toString();
const patchedFile = applyPatch(file1Contents, patch);
fs.writeFileSync("file1.txt", patchedFile);
```

##### Applying a multi-file patch to the files specified by the patch file itself

The code below is roughly equivalent to the Unix command `patch < mydiff.patch`:

```
const {applyPatches} = require('diff');
const patch = fs.readFileSync("mydiff.patch").toString();
applyPatches(patch, {
    loadFile: (patch, callback) => {
        let fileContents;
        try {
            fileContents = fs.readFileSync(patch.oldFileName).toString();
        } catch (e) {
            callback(`No such file: ${patch.oldFileName}`);
            return;
        }
        callback(undefined, fileContents);
    },
    patched: (patch, patchedContent, callback) => {
        if (patchedContent === false) {
            callback(`Failed to apply patch to ${patch.oldFileName}`)
            return;
        }
        fs.writeFileSync(patch.oldFileName, patchedContent);
        callback();
    },
    complete: (err) => {
        if (err) {
            console.log("Failed with error:", err);
        }
    }
});
```

##### Applying a multi-file Git patch that may include renames and mode changes

[Git patches](https://git-scm.com/docs/git-diff#generate_patch_text_with_p) can include file renames and copies (with or without content changes), which need to be handled in the callbacks you provide to `applyPatches`. `parsePatch` sets `isRename` or `isCopy` on the structured patch object so you can distinguish these cases. Patches can also potentially include file *swaps* (renaming `a → b` and `b → a`), in which case it is incorrect to simply apply each change atomically in sequence. The pattern with the `pendingWrites` Map below handles all of these nuances:

```
const {applyPatches} = require('diff');
const patch = fs.readFileSync("git-diff.patch").toString();
const DELETE = Symbol('delete');
const pendingWrites = new Map(); // filePath → {content, mode} or DELETE sentinel
applyPatches(patch, {
    loadFile: (patch, callback) => {
        if (patch.isCreate) {
            // Newly created file — no old content to load
            callback(undefined, '');
            return;
        }
        try {
            // Git diffs use a/ and b/ prefixes; strip them to get the real path
            const filePath = patch.oldFileName.replace(/^a\//, '');
            callback(undefined, fs.readFileSync(filePath).toString());
        } catch (e) {
            callback(`No such file: ${patch.oldFileName}`);
        }
    },
    patched: (patch, patchedContent, callback) => {
        if (patchedContent === false) {
            callback(`Failed to apply patch to ${patch.oldFileName}`);
            return;
        }
        const oldPath = patch.oldFileName.replace(/^a\//, '');
        const newPath = patch.newFileName.replace(/^b\//, '');
        if (patch.isDelete) {
            if (!pendingWrites.has(oldPath)) {
                pendingWrites.set(oldPath, DELETE);
            }
        } else {
            pendingWrites.set(newPath, {content: patchedContent, mode: patch.newMode});
            // For renames, delete the old file (but not for copies,
            // where the old file should be kept)
            if (patch.isRename && !pendingWrites.has(oldPath)) {
                pendingWrites.set(oldPath, DELETE);
            }
        }
        callback();
    },
    complete: (err) => {
        if (err) {
            console.log("Failed with error:", err);
            return;
        }
        for (const [filePath, entry] of pendingWrites) {
            if (entry === DELETE) {
                fs.unlinkSync(filePath);
            } else {
                fs.writeFileSync(filePath, entry.content);
                if (entry.mode) {
                    fs.chmodSync(filePath, entry.mode.slice(-3));
                }
            }
        }
    }
});
```

## Compatibility

Version 8 of jsdiff supported ES5.

Starting from version 9, at the point of release, each jsdiff release should fully support the latest LTS version of Node plus all [Baseline](https://web.dev/baseline) "core browser" releases that are at least 30 months old. (That is: jsdiff only uses JavaScript features that are deemed "widely available" by Baseline.) If you find one that it doesn't support, please [open an issue](https://github.com/kpdecker/jsdiff/issues).

## TypeScript

As of version 8, JsDiff ships with type definitions. From version 8 onwards, you should not depend on the `@types/diff` package.

One tricky pattern pervades the type definitions and is worth explaining here. Most diff-generating and patch-generating functions (`diffChars`, `diffWords`, `structuredPatch`, etc) can be run in async mode (by providing a `callback` option), in abortable mode (by passing a `timeout` or `maxEditLength` property), or both. This is awkward for typing, because these modes have different call signatures:
  * in abortable mode, the result *might* be `undefined`, and
  * in async mode, the result (which *might* be allowed to be `undefined`, depending upon whether we're in abortable mode) is passed to the provide callback instead of being returned, and the return value is always `undefined`

Our type definitions handle this as best they can by declaring different types for multiple [overload signatures](https://www.typescriptlang.org/docs/handbook/2/functions.html#function-overloads) for each such function - and also by declaring different types for abortable and nonabortable options objects. For instance, an object of type `DiffCharsOptionsAbortable` is valid to pass as the `options` argument to `diffChars` and represents an *abortable* call (whose result may be `undefined`) since it necessarily contains either the `timeout` or `maxEditLength` property.

This approach, while probably the least bad way available to add types to JsDiff without radically refactoring the library's API, does not yield perfect results. *As long as* TypeScript is able to statically determine the type of your options, and therefore which overload signature is appropriate, everything should work fine. This should always be the case if you are passing an object literal as the `options` argument and inlining the definition of any `callback` function within that literal. But in cases where TypeScript *cannot* manage to do this - as may often be the case if you, say, define an `options: any = {}` object, build up your options programmatically, and then pass the result to a JsDiff function - then it is likely to fail to match the correct overload signature (probably defaulting to assuming you are calling the function in non-abortable, non-async mode), potentially causing type errors. You can either ignore (e.g. with `@ts-expect-error`) any such errors, or try to avoid them by refactoring your code so that TypeScript can always statically determine the type of the options you pass.

## License

See [LICENSE](https://github.com/kpdecker/jsdiff/blob/master/LICENSE).

## Deviations from the published Myers diff algorithm

jsdiff deviates from the published algorithm in a couple of ways that don't affect results but do affect performance:

* jsdiff keeps track of the diff for each diagonal using a linked list of change objects for each diagonal, rather than the historical array of furthest-reaching D-paths on each diagonal contemplated on page 8 of Myers's paper.
* jsdiff skips considering diagonals where the furthest-reaching D-path would go off the edge of the edit graph. This dramatically reduces the time cost (from quadratic to linear) in cases where the new text just appends or truncates content at the end of the old text.

--- END ORIGINAL BYTES ---

================================================================
dom-serializer@2.0.0
Declared package license: MIT
Published archive: https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz
Locked integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==
Unresolved: No collection gap detected; not an independent legal determination

--- Original license: package/LICENSE
SHA-256: 94cfe87de9b178e8fee313a19178e625129e2ce559db32e772e7bd95114ee6ff; bytes: 1098
--- BEGIN ORIGINAL BYTES ---
License

(The MIT License)

Copyright (c) 2014 The cheeriojs contributors

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.

--- END ORIGINAL BYTES ---

--- Original licensing-readme: package/README.md
SHA-256: 0222b1ef9047b37b4b9f90db4cb4dbbe120ed857eb1c370ab04f46dddeb66f6e; bytes: 3458
--- BEGIN ORIGINAL BYTES ---
# dom-serializer [![Build Status](https://travis-ci.com/cheeriojs/dom-serializer.svg?branch=master)](https://travis-ci.com/cheeriojs/dom-serializer)

Renders a [domhandler](https://github.com/fb55/domhandler) DOM node or an array of domhandler DOM nodes to a string.

```js
import render from "dom-serializer";

// OR

const render = require("dom-serializer").default;
```

# API

## `render`

▸ **render**(`node`: Node \| Node[], `options?`: [_Options_](#Options)): _string_

Renders a DOM node or an array of DOM nodes to a string.

Can be thought of as the equivalent of the `outerHTML` of the passed node(s).

#### Parameters:

| Name      | Type                               | Default value | Description                    |
| :-------- | :--------------------------------- | :------------ | :----------------------------- |
| `node`    | Node \| Node[]                     | -             | Node to be rendered.           |
| `options` | [_DomSerializerOptions_](#Options) | {}            | Changes serialization behavior |

**Returns:** _string_

## Options

### `encodeEntities`

• `Optional` **decodeEntities**: _boolean | "utf8"_

Encode characters that are either reserved in HTML or XML.

If `xmlMode` is `true` or the value not `'utf8'`, characters outside of the utf8 range will be encoded as well.

**`default`** `decodeEntities`

---

### `decodeEntities`

• `Optional` **decodeEntities**: _boolean_

Option inherited from parsing; will be used as the default value for `encodeEntities`.

**`default`** true

---

### `emptyAttrs`

• `Optional` **emptyAttrs**: _boolean_

Print an empty attribute's value.

**`default`** xmlMode

**`example`** With emptyAttrs: false: <input checked>

**`example`** With emptyAttrs: true: <input checked="">

---

### `selfClosingTags`

• `Optional` **selfClosingTags**: _boolean_

Print self-closing tags for tags without contents.

**`default`** xmlMode

**`example`** With selfClosingTags: false: <foo></foo>

**`example`** With selfClosingTags: true: <foo />

---

### `xmlMode`

• `Optional` **xmlMode**: _boolean_ \| _"foreign"_

Treat the input as an XML document; enables the `emptyAttrs` and `selfClosingTags` options.

If the value is `"foreign"`, it will try to correct mixed-case attribute names.

**`default`** false

---

## Ecosystem

| Name                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [htmlparser2](https://github.com/fb55/htmlparser2)            | Fast & forgiving HTML/XML parser                        |
| [domhandler](https://github.com/fb55/domhandler)              | Handler for htmlparser2 that turns documents into a DOM |
| [domutils](https://github.com/fb55/domutils)                  | Utilities for working with domhandler's DOM             |
| [css-select](https://github.com/fb55/css-select)              | CSS selector engine, compatible with domhandler's DOM   |
| [cheerio](https://github.com/cheeriojs/cheerio)               | The jQuery API for domhandler's DOM                     |
| [dom-serializer](https://github.com/cheeriojs/dom-serializer) | Serializer for domhandler's DOM                         |

---

LICENSE: MIT

--- END ORIGINAL BYTES ---

================================================================
domelementtype@2.3.0
Declared package license: BSD-2-Clause
Published archive: https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz
Locked integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==
Unresolved: No collection gap detected; not an independent legal determination

--- Original license: package/LICENSE
SHA-256: cb992345949ccd6e8394b2cd6c465f7b897c864f845937dbf64e8997f389e164; bytes: 1260
--- BEGIN ORIGINAL BYTES ---
Copyright (c) Felix Böhm
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--- END ORIGINAL BYTES ---

================================================================
domhandler@5.0.3
Declared package license: BSD-2-Clause
Published archive: https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz
Locked integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==
Unresolved: No collection gap detected; not an independent legal determination

--- Original license: package/LICENSE
SHA-256: cb992345949ccd6e8394b2cd6c465f7b897c864f845937dbf64e8997f389e164; bytes: 1260
--- BEGIN ORIGINAL BYTES ---
Copyright (c) Felix Böhm
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--- END ORIGINAL BYTES ---

--- Original licensing-readme: package/readme.md
SHA-256: afa440271734a49441bd248b6c40bf65ffc36173efd7d64aeb269df81fc363db; bytes: 2779
--- BEGIN ORIGINAL BYTES ---
# domhandler [![Build Status](https://travis-ci.com/fb55/domhandler.svg?branch=master)](https://travis-ci.com/fb55/domhandler)

The DOM handler creates a tree containing all nodes of a page.
The tree can be manipulated using the [domutils](https://github.com/fb55/domutils)
or [cheerio](https://github.com/cheeriojs/cheerio) libraries and
rendered using [dom-serializer](https://github.com/cheeriojs/dom-serializer) .

## Usage

```javascript
const handler = new DomHandler([  callback(err, dom), ] [  options ]);
// const parser = new Parser(handler[, options]);
```

Available options are described below.

## Example

```javascript
const { Parser } = require("htmlparser2");
const { DomHandler } = require("domhandler");
const rawHtml =
    "Xyz ";
const handler = new DomHandler((error, dom) => {
    if (error) {
        // Handle error
    } else {
        // Parsing completed, do something
        console.log(dom);
    }
});
const parser = new Parser(handler);
parser.write(rawHtml);
parser.end();
```

Output:

```javascript
[
    {
        data: "Xyz ",
        type: "text",
    },
    {
        type: "script",
        name: "script",
        attribs: {
            language: "javascript",
        },
        children: [
            {
                data: "var foo = '';<",
                type: "text",
            },
        ],
    },
    {
        data: "






```

If you are using Deno:
```js
// Don't use the ?dts Skypack flag; it isn't necessary for Deno support
// The @deno-types comment adds TypeScript typings

// @deno-types="https://cdn.skypack.dev/fflate/lib/index.d.ts"
import * as fflate from 'https://cdn.skypack.dev/fflate?min';
```


If your environment doesn't support bundling:
```js
// Again, try to import just what you need

// For the browser:
import * as fflate from 'fflate/esm/browser.js';
// If the standard ESM import fails on Node (i.e. older version):
import * as fflate from 'fflate/esm';
```

And use:
```js
// This is an ArrayBuffer of data
const massiveFileBuf = await fetch('/aMassiveFile').then(
  res => res.arrayBuffer()
);
// To use fflate, you need a Uint8Array
const massiveFile = new Uint8Array(massiveFileBuf);
// Note that Node.js Buffers work just fine as well:
// const massiveFile = require('fs').readFileSync('aMassiveFile.txt');

// Higher level means lower performance but better compression
// The level ranges from 0 (no compression) to 9 (max compression)
// The default level is 6
const notSoMassive = fflate.zlibSync(massiveFile, { level: 9 });
const massiveAgain = fflate.unzlibSync(notSoMassive);
const gzipped = fflate.gzipSync(massiveFile, {
  // GZIP-specific: the filename to use when decompressed
  filename: 'aMassiveFile.txt',
  // GZIP-specific: the modification time. Can be a Date, date string,
  // or Unix timestamp
  mtime: '9/1/16 2:00 PM'
});
```
`fflate` can autodetect a compressed file's format as well:
```js
const compressed = new Uint8Array(
  await fetch('/GZIPorZLIBorDEFLATE').then(res => res.arrayBuffer())
);
// Above example with Node.js Buffers:
// Buffer.from('H4sIAAAAAAAAE8tIzcnJBwCGphA2BQAAAA==', 'base64');

const decompressed = fflate.decompressSync(compressed);
```

Using strings is easy with `fflate`'s string conversion API:
```js
const buf = fflate.strToU8('Hello world!');

// The default compression method is gzip
// Increasing mem may increase performance at the cost of memory
// The mem ranges from 0 to 12, where 4 is the default
const compressed = fflate.compressSync(buf, { level: 6, mem: 8 });

// When you need to decompress:
const decompressed = fflate.decompressSync(compressed);
const origText = fflate.strFromU8(decompressed);
console.log(origText); // Hello world!
```

If you need to use an (albeit inefficient) binary string, you can set the second argument to `true`.
```js
const buf = fflate.strToU8('Hello world!');

// The second argument, latin1, is a boolean that indicates that the data
// is not Unicode but rather should be encoded and decoded as Latin-1.
// This is useful for creating a string from binary data that isn't
// necessarily valid UTF-8. However, binary strings are incredibly
// inefficient and tend to double file size, so they're not recommended.
const compressedString = fflate.strFromU8(
  fflate.compressSync(buf),
  true
);
const decompressed = fflate.decompressSync(
  fflate.strToU8(compressedString, true)
);
const origText = fflate.strFromU8(decompressed);
console.log(origText); // Hello world!
```

You can use streams as well to incrementally add data to be compressed or decompressed:
```js
// This example uses synchronous streams, but for the best experience
// you'll definitely want to use asynchronous streams.

let outStr = '';
const gzipStream = new fflate.Gzip({ level: 9 }, (chunk, isLast) => {
  // accumulate in an inefficient binary string (just an example)
  outStr += fflate.strFromU8(chunk, true);
});

// You can also attach the data handler separately if you don't want to
// do so in the constructor.
gzipStream.ondata = (chunk, final) => { ... }

// Since this is synchronous, all errors will be thrown by stream.push()
gzipStream.push(chunk1);
gzipStream.push(chunk2);

...

// You should mark the last chunk by using true in the second argument
// In addition to being necessary for the stream to work properly, this
// will also set the isLast parameter in the handler to true.
gzipStream.push(lastChunk, true);

console.log(outStr); // The compressed binary string is now available

// The options parameter for compression streams is optional; you can
// provide one parameter (the handler) or none at all if you set
// deflateStream.ondata later.
const deflateStream = new fflate.Deflate((chunk, final) => {
  console.log(chunk, final);
});

// If you want to create a stream from strings, use EncodeUTF8
const utfEncode = new fflate.EncodeUTF8((data, final) => {
  // Chaining streams together is done by pushing to the
  // next stream in the handler for the previous stream
  deflateStream.push(data, final);
});

utfEncode.push('Hello'.repeat(1000));
utfEncode.push(' '.repeat(100));
utfEncode.push('world!'.repeat(10), true);

// The deflateStream has logged the compressed data

const inflateStream = new fflate.Inflate();
inflateStream.ondata = (decompressedChunk, final) => { ... };

let stringData = '';

// Streaming UTF-8 decode is available too
const utfDecode = new fflate.DecodeUTF8((data, final) => {
  stringData += data;
});

// Decompress streams auto-detect the compression method, as the
// non-streaming decompress() method does.
const dcmpStrm = new fflate.Decompress((chunk, final) => {
  console.log(chunk, 'was encoded with GZIP, Zlib, or DEFLATE');
  utfDecode.push(chunk, final);
});

dcmpStrm.push(zlibJSONData1);
dcmpStrm.push(zlibJSONData2, true);

// This succeeds; the UTF-8 decoder chained with the unknown compression format
// stream to reach a string as a sink.
console.log(JSON.parse(stringData));
```

You can create multi-file ZIP archives easily as well. Note that by default, compression is enabled for all files, which is not useful when ZIPping many PNGs, JPEGs, PDFs, etc. because those formats are already compressed. You should either override the level on a per-file basis or globally to avoid wasting resources.
```js
// Note that the asynchronous version (see below) runs in parallel and
// is *much* (up to 3x) faster for larger archives.
const zipped = fflate.zipSync({
  // Directories can be nested structures, as in an actual filesystem
  'dir1': {
    'nested': {
      // You can use Unicode in filenames
      '你好.txt': fflate.strToU8('Hey there!')
    },
    // You can also manually write out a directory path
    'other/tmp.txt': new Uint8Array([97, 98, 99, 100])
  },

  // You can also provide compression options
  'massiveImage.bmp': [aMassiveFile, {
    level: 9,
    mem: 12
  }],
  // PNG is pre-compressed; no need to waste time
  'superTinyFile.png': [aPNGFile, { level: 0 }],

  // Directories take options too
  'exec': [{
    'hello.sh': [fflate.strToU8('echo hello world'), {
      // ZIP only: Set the operating system to Unix
      os: 3,
      // ZIP only: Make this file executable on Unix
      attrs: 0o755 << 16
    }]
  }, {
    // ZIP and GZIP support mtime (defaults to current time)
    mtime: new Date('10/20/2020')
  }]
}, {
  // These options are the defaults for all files, but file-specific
  // options take precedence.
  level: 1,
  // Obfuscate last modified time by default 
  mtime: new Date('1/1/1980')
});

// If you write the zipped data to myzip.zip and unzip, the folder
// structure will be outputted as:

// myzip.zip (original file)
// dir1
// |-> nested
// |   |-> 你好.txt
// |-> other
// |   |-> tmp.txt
// massiveImage.bmp
// superTinyFile.png

// When decompressing, folders are not nested; all filepaths are fully
// written out in the keys. For example, the return value may be:
// { 'nested/directory/structure.txt': Uint8Array(2) [97, 97] }
const decompressed = fflate.unzipSync(zipped, {
  // You may optionally supply a filter for files. By default, all files in a
  // ZIP archive are extracted, but a filter can save resources by telling
  // the library not to decompress certain files
  filter(file) {
    // Don't decompress the massive image or any files larger than 10 MiB
    return file.name != 'massiveImage.bmp' && file.originalSize <= 10_000_000;
  }
});
```

If you need extremely high performance or custom ZIP compression formats, you can use the highly-extensible ZIP streams. They take streams as both input and output. You can even use custom compression/decompression algorithms from other libraries, as long as they [are defined in the ZIP spec](https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT) (see section 4.4.5). If you'd like more info on using custom compressors, [feel free to ask](https://github.com/101arrowz/fflate/discussions).
```js
// ZIP object
// Can also specify zip.ondata outside of the constructor
const zip = new fflate.Zip((err, dat, final) => {
  if (!err) {
    // output of the streams
    console.log(dat, final);
  }
});

const helloTxt = new fflate.ZipDeflate('hello.txt', {
  level: 9
});

// Always add streams to ZIP archives before pushing to those streams
zip.add(helloTxt);

helloTxt.push(chunk1);
// Last chunk
helloTxt.push(chunk2, true);

// ZipPassThrough is like ZipDeflate with level 0, but allows for tree shaking
const nonStreamingFile = new fflate.ZipPassThrough('test.png');
zip.add(nonStreamingFile);
// If you have data already loaded, just .push(data, true)
nonStreamingFile.push(pngData, true);

// You need to call .end() after finishing
// This ensures the ZIP is valid
zip.end();

// Unzip object
const unzipper = new fflate.Unzip();

// This function will almost always have to be called. It is used to support
// compression algorithms such as BZIP2 or LZMA in ZIP files if just DEFLATE
// is not enough (though it almost always is).
// If your ZIP files are not compressed, this line is not needed.
unzipper.register(fflate.UnzipInflate);

const neededFiles = ['file1.txt', 'example.json'];

// Can specify handler in constructor too
unzipper.onfile = file => {
  // file.name is a string, file is a stream
  if (neededFiles.includes(file.name)) {
    file.ondata = (err, dat, final) => {
      // Stream output here
      console.log(dat, final);
    };
    
    console.log('Reading:', file.name);

    // File sizes are sometimes not set if the ZIP file did not encode
    // them, so you may want to check that file.size != undefined
    console.log('Compressed size', file.size);
    console.log('Decompressed size', file.originalSize);

    // You should only start the stream if you plan to use it to improve
    // performance. Only after starting the stream will ondata be called.
    // This method will throw if the compression method hasn't been registered
    file.start();
  }
};

// Try to keep under 5,000 files per chunk to avoid stack limit errors
// For example, if all files are a few kB, multi-megabyte chunks are OK
// If files are mostly under 100 bytes, 64kB chunks are the limit
unzipper.push(zipChunk1);
unzipper.push(zipChunk2);
unzipper.push(zipChunk3, true);
```

As you may have guessed, there is an asynchronous version of every method as well. Unlike most libraries, this will cause the compression or decompression run in a separate thread entirely and automatically by using Web (or Node) Workers (as of now, Deno is unsupported). This means that the processing will not block the main thread at all. 

Note that there is a significant initial overhead to using workers of about 70ms for each asynchronous function. For instance, if you call `unzip` ten times, the overhead only applies for the first call, but if you call `unzip` and `zlib`, they will each cause the 70ms delay. Therefore, it's best to avoid the asynchronous API unless necessary. However, if you're compressing multiple large files at once, or the synchronous API causes the main thread to hang for too long, the callback APIs are an order of magnitude better.
```js
import {
  gzip, zlib, AsyncGzip, zip, unzip, strFromU8,
  Zip, AsyncZipDeflate, Unzip, AsyncUnzipInflate
} from 'fflate';

// Workers will work in almost any browser (even IE11!)
// However, they fail below Node v12 without the --experimental-worker
// CLI flag, and will fail entirely on Node below v10.

// All of the async APIs use a node-style callback as so:
const terminate = gzip(aMassiveFile, (err, data) => {
  if (err) {
    // The compressed data was likely corrupt, so we have to handle
    // the error.
    return;
  }
  // Use data however you like
  console.log(data.length);
});

if (needToCancel) {
  // The return value of any of the asynchronous APIs is a function that,
  // when called, will immediately cancel the operation. The callback
  // will not be called.
  terminate();
}

// If you wish to provide options, use the second argument.

// The consume option will render the data inside aMassiveFile unusable,
// but can improve performance and dramatically reduce memory usage.
zlib(aMassiveFile, { consume: true, level: 9 }, (err, data) => {
  // Use the data
});

// Asynchronous streams are similar to synchronous streams, but the
// handler has the error that occurred (if any) as the first parameter,
// and they don't block the main thread.

// Additionally, any buffers that are pushed in will be consumed and
// rendered unusable; if you need to use a buffer you push in, you
// should clone it first.
const gzs = new AsyncGzip({ level: 9, mem: 12, filename: 'hello.txt' });
let wasCallbackCalled = false;
gzs.ondata = (err, chunk, final) => {
  // Note the new err parameter
  if (err) {
    // Note that after this occurs, the stream becomes corrupt and must
    // be discarded. You can't continue pushing chunks and expect it to
    // work.
    console.error(err);
    return;
  }
  wasCallbackCalled = true;
}
gzs.push(chunk);

// Since the stream is asynchronous, the callback will not be called
// immediately. If such behavior is absolutely necessary (it shouldn't
// be), use synchronous streams.
console.log(wasCallbackCalled) // false

// To terminate an asynchronous stream's internal worker, call
// stream.terminate().
gzs.terminate();

// This is way faster than zipSync because the compression of multiple
// files runs in parallel. In fact, the fact that it's parallelized
// makes it faster than most standalone ZIP CLIs. The effect is most
// significant for multiple large files; less so for many small ones.
zip({ f1: aMassiveFile, 'f2.txt': anotherMassiveFile }, {
  // The options object is still optional, you can still do just
  // zip(archive, callback)
  level: 6
}, (err, data) => {
  // Save the ZIP file
});

// unzip is the only async function without support for consume option
// It is parallelized, so unzip is also often much faster than unzipSync
unzip(aMassiveZIPFile, (err, unzipped) => {
  // If the archive has data.xml, log it here
  console.log(unzipped['data.xml']);
  // Conversion to string
  console.log(strFromU8(unzipped['data.xml']))
});

// Streaming ZIP archives can accept asynchronous streams. This automatically
// uses multicore compression.
const zip = new Zip();
zip.ondata = (err, chunk, final) => { ... };
// The JSON and BMP are compressed in parallel
const exampleFile = new AsyncZipDeflate('example.json');
zip.add(exampleFile);
exampleFile.push(JSON.stringify({ large: 'object' }), true);
const exampleFile2 = new AsyncZipDeflate('example2.bmp', { level: 9 });
zip.add(exampleFile2);
exampleFile2.push(ec2a);
exampleFile2.push(ec2b);
exampleFile2.push(ec2c);
...
exampleFile2.push(ec2Final, true);
zip.end();

// Streaming Unzip should register the asynchronous inflation algorithm
// for parallel processing.
const unzip = new Unzip(stream => {
  if (stream.name.endsWith('.json')) {
    stream.ondata = (err, chunk, final) => { ... };
    stream.start();

    if (needToCancel) {
      // To cancel these streams, call .terminate()
      stream.terminate();
    }
  }
});
unzip.register(AsyncUnzipInflate);
unzip.push(data, true);
```

See the [documentation](https://github.com/101arrowz/fflate/blob/master/docs/README.md) for more detailed information about the API.

## Bundle size estimates

Since `fflate` uses ES Modules, this table should give you a general idea of `fflate`'s bundle size for the features you need. The maximum bundle size that is possible with `fflate` is about 30kB if you use every single feature, but feature parity with `pako` is only around 10kB (as opposed to 45kB from `pako`). If your bundle size increases dramatically after adding `fflate`, please [create an issue](https://github.com/101arrowz/fflate/issues/new).

| Feature                 | Bundle size (minified)         | Nearest competitor     |
|-------------------------|--------------------------------|------------------------|
| Decompression           | 3kB                            | `tiny-inflate`         |
| Compression             | 5kB                            | `UZIP.js`, 184% larger |
| Async decompression     | 4kB (1kB + raw decompression)  | N/A                    |
| Async compression       | 6kB (1kB + raw compression)    | N/A                    |
| ZIP decompression       | 5kB (2kB + raw decompression)  | `UZIP.js`, 184% larger |
| ZIP compression         | 7kB (2kB + raw compression)    | `UZIP.js`, 103% larger |
| GZIP/Zlib decompression | 4kB (1kB + raw decompression)  | `pako`, 1040% larger   |
| GZIP/Zlib compression   | 5kB (1kB + raw compression)    | `pako`, 812% larger    |
| Streaming decompression | 4kB (1kB + raw decompression)  | `pako`, 1040% larger   |
| Streaming compression   | 5kB (1kB + raw compression)    | `pako`, 812% larger    |

## What makes `fflate` so fast?
Many JavaScript compression/decompression libraries exist. However, the most popular one, [`pako`](https://npmjs.com/package/pako), is merely a clone of Zlib rewritten nearly line-for-line in JavaScript. Although it is by no means poorly made, `pako` doesn't recognize the many differences between JavaScript and C, and therefore is suboptimal for performance. Moreover, even when minified, the library is 45 kB; it may not seem like much, but for anyone concerned with optimizing bundle size (especially library authors), it's more weight than necessary.

Note that there exist some small libraries like [`tiny-inflate`](https://npmjs.com/package/tiny-inflate) for solely decompression, and with a minified size of 3 kB, it can be appealing; however, its performance is lackluster, typically 40% worse than `pako` in my tests.

[`UZIP.js`](https://github.com/photopea/UZIP.js) is both faster (by up to 40%) and smaller (14 kB minified) than `pako`, and it contains a variety of innovations that make it excellent for both performance and compression ratio. However, the developer made a variety of tiny mistakes and inefficient design choices that make it imperfect. Moreover, it does not support GZIP or Zlib data directly; one must remove the headers manually to use `UZIP.js`.

So what makes `fflate` different? It takes the brilliant innovations of `UZIP.js` and optimizes them while adding direct support for GZIP and Zlib data. And unlike all of the above libraries, it uses ES Modules to allow for partial builds through tree shaking, meaning that it can rival even `tiny-inflate` in size while maintaining excellent performance. The end result is a library that, in total, weighs 8kB minified for the core build (3kB for decompression only and 5kB for compression only), is about 15% faster than `UZIP.js` or up to 60% faster than `pako`, and achieves the same or better compression ratio than the rest.

If you're willing to have 160 kB of extra weight and [much less browser support](https://caniuse.com/wasm), you could theoretically achieve more performance than `fflate` with a WASM build of Zlib like [`wasm-flate`](https://www.npmjs.com/package/wasm-flate). However, per some tests I conducted, the WASM interpreters of major browsers are not fast enough as of December 2020 for `wasm-flate` to be useful: `fflate` is around 2x faster.

Before you decide that `fflate` is the end-all compression library, you should note that JavaScript simply cannot rival the performance of a native program. If you're only using Node.js, it's probably better to use the [native Zlib bindings](https://nodejs.org/api/zlib.html), which tend to offer the best performance. Though note that even against Zlib, `fflate` is only around 30% slower in decompression and 10% slower in compression, and can still achieve better compression ratios!

## Browser support
`fflate` makes heavy use of typed arrays (`Uint8Array`, `Uint16Array`, etc.). Typed arrays can be polyfilled at the cost of performance, but the most recent browser that doesn't support them [is from 2011](https://caniuse.com/typedarrays), so I wouldn't bother.

The asynchronous APIs also use `Worker`, which is not supported in a few browsers (however, the vast majority of browsers that support typed arrays support `Worker`).

Other than that, `fflate` is completely ES3, meaning you probably won't even need a bundler to use it.

## Testing
You can validate the performance of `fflate` with `npm`/`yarn`/`pnpm` `test`. It validates that the module is working as expected, ensures the outputs are no more than 5% larger than competitors at max compression, and outputs performance metrics to `test/results`.

Note that the time it takes for the CLI to show the completion of each test is not representative of the time each package took, so please check the JSON output if you want accurate measurements.

## License

This software is [MIT Licensed](./LICENSE), with special exemptions for projects
and organizations as noted below:

- [SheetJS](https://github.com/SheetJS/) is exempt from MIT licensing and may
  license any source code from this software under the BSD Zero Clause License

--- END ORIGINAL BYTES ---

================================================================
find-proc@0.2.0
Declared package license: MIT
Published archive: https://registry.npmjs.org/find-proc/-/find-proc-0.2.0.tgz
Locked integrity: sha512-a6h2nTrgB3g5Wrn4au9Ux4kMk7IJtyF6oA8uGn+mk3weLZssUtc1cp6meHIzzuW2o1srrBAxzkmXLbqjRkgB6w==
Unresolved: No collection gap detected; not an independent legal determination

--- Original license: package/LICENSE
SHA-256: a63afc6bd6796dd377d3199ba957078eec731122f35ca0573a1327f1e5c0d19a; bytes: 1090
--- BEGIN ORIGINAL BYTES ---
MIT License

Copyright (c) 2026 Roman A
Copyright (c) 2016 Zoujie

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.

--- END ORIGINAL BYTES ---

================================================================
flattie@1.1.1
Declared package license: MIT
Published archive: https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz
Locked integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==
Unresolved: No collection gap detected; not an independent legal determination

--- Original license: package/license
SHA-256: 306fa513e39b23a6e8747520de761809d206b99800ef41907b530226574c59ae; bytes: 1114
--- BEGIN ORIGINAL BYTES ---
The MIT License (MIT)

Copyright (c) Luke Edwards  (lukeed.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.

--- END ORIGINAL BYTES ---

--- Original licensing-readme: package/readme.md
SHA-256: f4e5feb39ffa94dc79e7bdb7b4d89915f4a2582d65f546f28dbdebdc62fc1c62; bytes: 3135
--- BEGIN ORIGINAL BYTES ---
# flattie [![CI](https://github.com/lukeed/flattie/workflows/CI/badge.svg)](https://github.com/lukeed/flattie/actions) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/flattie)](https://codecov.io/gh/lukeed/flattie)

> A tiny (203B) and [fast](#benchmarks) utility to flatten an object with customizable glue

This module recursively squashes an Object/Array. The output is a flat object – AKA, it has a single level of depth.

By default, the `.` character is used to glue/join layers' keys together. This is customizable.

Finally, by default, any keys with nullish values (`null` and `undefined`) are **not** included in the return object.

## Install

```
$ npm install --save flattie
```


## Usage

```js
import { flattie } from 'flattie';

flattie({
  a: 'hi',
  b: {
    a: null,
    b: ['foo', '', null, 'bar'],
    d: 'hello',
    e: {
      a: 'yo',
      b: undefined,
      c: 'sup',
      d: 0,
      f: [
        { foo: 123, bar: 123 },
        { foo: 465, bar: 456 },
      ]
    }
  },
  c: 'world'
});
// {
//   'a': 'hi',
//   'b.b.0': 'foo',
//   'b.b.1': '',
//   'b.b.3': 'bar',
//   'b.d': 'hello',
//   'b.e.a': 'yo',
//   'b.e.c': 'sup',
//   'b.e.d': 0,
//   'b.e.f.0.foo': 123,
//   'b.e.f.0.bar': 123,
//   'b.e.f.1.foo': 465,
//   'b.e.f.1.bar': 456,
//   'c': 'world'
// }
```

> **Note:** `null` and `undefined` values are purged by default.

## API

### flattie(input, glue?, keepNullish?)
Returns: `Object`

Returns a new object with a single level of depth.

> **Important:** An object is always returned despite `input` type.

#### input
Type: `Object|Array`

The object to flatten.

#### glue
Type: `String`
Default: `.` A string used to join parent key names to nested child key names. ```js const foo = { bar: 123 }; flattie({ foo }); //=> { 'foo.bar': 123 } flattie({ foo }, '???'); //=> { 'foo???bar': 123 } ``` #### keepNullish Type: `Boolean`
Default: `false` Whether or not `null` and `undefined` values should be kept. ```js // Note: Applies to Objects too const foo = ['hello', null, NaN, undefined, /*hole*/, 'world']; flattie({ foo }); //=> { //=> 'foo.0': 'hello', //=> 'foo.2': NaN, //=> 'foo.5': 'world' //=> } flattie({ foo }, '.', true); //=> { //=> 'foo.0': 'hello', //=> 'foo.1': null, //=> 'foo.2': NaN, //=> 'foo.3': undefined, //=> 'foo.4': undefined, //=> 'foo.5': 'world' //=> } ``` ## Benchmarks > Running on Node.js v10.13.0 ``` Load Time: flat 1.047ms flatten-object 1.239ms flat-obj 0.997ms flattie 0.258ms Validation: ✔ flat ✔ flatten-object ✔ flat-obj ✔ flattie Benchmark: flat x 186,487 ops/sec ±1.28% (86 runs sampled) flatten-object x 199,476 ops/sec ±1.01% (93 runs sampled) flat-obj x 393,574 ops/sec ±1.41% (95 runs sampled) flattie x 909,734 ops/sec ±0.82% (93 runs sampled) ``` ## Related * [nestie](https://github.com/lukeed/nestie) – A tiny (242B) and fast utility to expand a flattened object
_This is `flattie`'s reverse / counterpart._ ## License MIT © [Luke Edwards](https://lukeed.com) --- END ORIGINAL BYTES --- ================================================================ fontace@0.4.1 Declared package license: MIT Published archive: https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz Locked integrity: sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 04796fd226d26cbc0f91d620b310282781614f635d59c199788cffc89a454e76; bytes: 1074 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2025 Chris Swithinbank 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 79cfab4f88803f27cc8eeea8af4c5b90235a1ccfb53e67fb661ea2291438fb2e; bytes: 3355 --- BEGIN ORIGINAL BYTES ---

fontace

Extract useful information from font files

fontace on NPM CI status

## Installation ```sh npm install fontace ``` ## Import ```js import { fontace } from 'fontace'; ``` ## Why `fontace`? `fontace` is a small library, which intends to extract data specifically to help generate CSS `@font-face` declarations based on font files. `fontace` returns the following CSS-compatible values intended for use with `font-family`, `font-style`, `unicode-range`, and `font-weight`: - `family`: The font family name as stored in the font file, e.g. `"Inter"`. - `style`: The style of this font file, e.g. `"normal"` or `"italic"`. - `unicodeRange`: The range of Unicode code points this font file contains, e.g. `"U+0-10FFFF"`. - `weight`: The font weight(s) this file supports, which can be a range for variable fonts, e.g. `"400"` or `"100 900"`. In addition it returns: - `format`: The font file format for use in [`format()`](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#format), e.g.`"woff2"` or `"truetype"`. - `isVariable`: `true` if the font file contains variable axes of some kind. - `unicodeRangeArray`: An array of the Unicode code point ranges this font file contains, e.g. `["U+0-10FFFF"]`, equivalent to `unicodeRange.split(', ')`. Useful if you need to iterate through the available ranges instead of inlining them directly in CSS. ## Usage Pass a buffer containing font file data to `fontace()` and get useful information back. ### Example: local font file Use file-system APIs to read a local font file and then pass it to `fontace()`: ```js import { fontace } from 'fontace'; import fs from 'node:fs'; const fontBuffer = fs.readFileSync('./Inter.woff2'); const metadata = fontace(fontBuffer); // { family: "Inter", format: 'woff2', style: "normal", weight: "400", isVariable: false, unicodeRange: "U+0, U+20-7E...", unicodeRangeArray: ["U+0", "U+20-7E", ...] } ``` ### Example: remote font file Fetch a font file over the network and then pass it to `fontace()`: ```js import { fontace } from 'fontace'; const response = await fetch('https://example.com/Inter-Variable.woff2'); const fontBuffer = Buffer.from(await response.arrayBuffer()); const metadata = fontace(fontBuffer); // { family: "Inter", format: 'woff2', style: "normal", weight: "100 900", isVariable: true, unicodeRange: "U+0, U+20-7E...", unicodeRangeArray: ["U+0", "U+20-7E", ...] } ``` ### Example: using `fontace` data to create CSS ```js const { family, format, isVariable, style, unicodeRange, weight } = fontace(fontBuffer); let src = `url(/MyFont.woff2) format('${format}')`; if (isVariable) src += ' tech(variations)'; const fontFaceDeclaration = `@font-face { font-family: ${family}; font-style: ${style}; font-weight: ${weight}; font-display: swap; unicode-range: ${unicodeRange}; src: ${src}; }`; ``` ## Acknowledgements `fontace` uses the [`fontkitten`](https://www.npmjs.com/package/fontkitten) package to extract data from font files. ## License [MIT](LICENSE) --- END ORIGINAL BYTES --- ================================================================ fontkitten@1.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.3.tgz Locked integrity: sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: e626e38b2081908f1ffa133bd13a695d7cc8f70005d2f7b282b262610fe307cd; bytes: 5879 --- BEGIN ORIGINAL BYTES --- Copyright © 2025 Chris Swithinbank 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. """ This license applies to substantial parts of the codebase originating from the https://github.com/foliojs/fontkit repository: Copyright (c) 2014 Devon Govett 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. """ This license applies to substantial portions of the `src/types.ts` file originating from the https://www.npmjs.com/package/@types/fontkit package: Copyright (c) Microsoft Corporation. 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 """ This license applies to `src/vendor/brotliDecode.ts` originating from https://github.com/google/brotli/blob/master/js/decode.ts: Copyright 2017 Google Inc. All Rights Reserved. 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. """ This license applies to `packages/@fontkitten/restructure` originating from https://github.com/foliojs/restructure: MIT License Copyright (c) 2015-present Devon Govett 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. """ --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2cc3d2fde5989e31ec5c4f28d575b3d9cb498016d209f4f714485ab67a229990; bytes: 1143 --- BEGIN ORIGINAL BYTES ---

fontkitten

A smaller font file parser

fontkitten on NPM CI status

Fontkitten is a font data library, focused on font file parsing and metadata extraction. - 22x smaller install size than `fontkit` - 3x smaller bundle size than `fontkit` - Drop-in replacement for the supported APIs - Built-in TypeScript types Based on the [`fontkit`](https://www.npmjs.com/package/fontkit) package, Fontkitten aims to offer a lighter weight alternative for projects that do not require the full feature set of `fontkit`. See [“Differences from Fontkit”](https://github.com/delucis/fontkitten/blob/main/DOCS.md#differences-from-fontkit) for full details of changed APIs. ## Documentation [Read the full documentation →](https://github.com/delucis/fontkitten/blob/main/DOCS.md) ## License MIT --- END ORIGINAL BYTES --- ================================================================ fsevents@2.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz Locked integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2a8a5d6197bb97a018b8a190dd3ed853d750ca87c8e80c17aad41d6c6ff448e1; bytes: 1133 --- BEGIN ORIGINAL BYTES --- MIT License ----------- Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 0311b7e1a5a37192243d37889a838d2252b2201554e9db49b57a657f9fb517c7; bytes: 3203 --- BEGIN ORIGINAL BYTES --- # fsevents Native access to MacOS FSEvents in [Node.js](https://nodejs.org/) The FSEvents API in MacOS allows applications to register for notifications of changes to a given directory tree. It is a very fast and lightweight alternative to kqueue. This is a low-level library. For a cross-platform file watching module that uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar). ## Usage ```sh npm install fsevents ``` Supports only **Node.js v8.16 and higher**. ```js const fsevents = require('fsevents'); // To start observation const stop = fsevents.watch(__dirname, (path, flags, id) => { const info = fsevents.getInfo(path, flags); }); // To end observation stop(); ``` > **Important note:** The API behaviour is slightly different from typical JS APIs. The `stop` function **must** be > retrieved and stored somewhere, even if you don't plan to stop the watcher. If you forget it, the garbage collector > will eventually kick in, the watcher will be unregistered, and your callbacks won't be called anymore. The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a a change in the file system. It takes three arguments: ###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise` * `path: string` - the item in the filesystem that have been changed * `flags: number` - a numeric value describing what the change was * `id: string` - an unique-id identifying this specific event Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down. ###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo` The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure that is easier to digest to determine what the change was. The `FsEventsInfo` has the following shape: ```js /** * @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent * @typedef {'file'|'directory'|'symlink'} FsEventsType */ { "event": "created", // {FsEventsEvent} "path": "file.txt", "type": "file", // {FsEventsType} "changes": { "inode": true, // Had iNode Meta-Information changed "finder": false, // Had Finder Meta-Data changed "access": false, // Had access permissions changed "xattrs": false // Had xAttributes changed }, "flags": 0x100000000 } ``` ## Changelog - v2.3 supports Apple Silicon ARM CPUs - v2 supports node 8.16+ and reduces package size massively - v1.2.8 supports node 6+ - v1.2.7 supports node 4+ ## Troubleshooting - I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error. - It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default. ## License The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file. Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents) --- END ORIGINAL BYTES --- ================================================================ get-tsconfig@5.0.0-beta.4 Declared package license: MIT Published archive: https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-5.0.0-beta.4.tgz Locked integrity: sha512-7nF7C9fIPFEMHgEMEfgIlO9wDdZ8CyHw27rWciFZfHvHDReIiPhsYuzPRXsfvBCqFy1l8RRyyWV7QLM+ZhUJsQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 10c904a49af44409b073532e45a53fd4df19bdf26eaf9afc7917258c2b354382; bytes: 1089 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Hiroki Osame 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. --- END ORIGINAL BYTES --- ================================================================ github-slugger@2.0.0 Declared package license: ISC Published archive: https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz Locked integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 542aefa99456832996da0cc63b14d8b89f04a30ba403e241dbe3e5aaf49fa372; bytes: 750 --- BEGIN ORIGINAL BYTES --- Copyright (c) 2015, Dan Flettre Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 84fa75c5d1521e228716bc51949f97f1051c3efbebea54bfef63f999f1e57345; bytes: 1848 --- BEGIN ORIGINAL BYTES --- # github-slugger [![npm][npm-image]][npm-url] [![Build][build-badge]][build] [npm-image]: https://img.shields.io/npm/v/github-slugger.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/github-slugger [build-badge]: https://github.com/Flet/github-slugger/workflows/main/badge.svg [build]: https://github.com/Flet/github-slugger/actions Generate a slug just like GitHub does for markdown headings. It also ensures slugs are unique in the same way GitHub does it. The overall goal of this package is to emulate the way GitHub handles generating markdown heading anchors as close as possible. This project is not a markdown or HTML parser: passing `alpha *bravo* charlie` or `alpha bravo charlie` doesn’t work. Instead pass the plain text value of the heading: `alpha bravo charlie`. ## Install ``` npm install github-slugger ``` ## Usage ```js import GithubSlugger from 'github-slugger' const slugger = new GithubSlugger() slugger.slug('foo') // returns 'foo' slugger.slug('foo') // returns 'foo-1' slugger.slug('bar') // returns 'bar' slugger.slug('foo') // returns 'foo-2' slugger.slug('Привет non-latin 你好') // returns 'привет-non-latin-你好' slugger.slug('😄 emoji') // returns '-emoji' slugger.reset() slugger.slug('foo') // returns 'foo' ``` Check [`test/fixtures.json`](test/fixtures.json) for more examples. If you need, you can also use the underlying implementation which does not keep track of the previously slugged strings (not recommended): ```js import GithubSlugger, {slug} from 'github-slugger' slug('foo bar baz') // returns 'foo-bar-baz' slug('foo bar baz') // returns the same slug 'foo-bar-baz' because it does not keep track ``` ## Contributing Contributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first. ## License [ISC](LICENSE) --- END ORIGINAL BYTES --- ================================================================ graceful-fs@4.2.11 Declared package license: ISC Published archive: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz Locked integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: f65c5d9f22a317b2a10803bd1868461ce6499c2ed7217bc80c0cc772a748789c; bytes: 791 --- BEGIN ORIGINAL BYTES --- The ISC License Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ h3@1.15.11 Declared package license: MIT Published archive: https://registry.npmjs.org/h3/-/h3-1.15.11.tgz Locked integrity: sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 96c6077754007dbe37a1303828d27f4f45deaa1cb895870e86c077b5023aee46; bytes: 1350 --- BEGIN ORIGINAL BYTES --- # H3 [![npm version](https://img.shields.io/npm/v/h3)](https://npmjs.com/package/h3) [![npm downloads](https://img.shields.io/npm/dm/h3)](https://npm.chart.dev/h3) H3 (pronounced as /eɪtʃθriː/, like h-3) is a minimal h(ttp) framework built for high performance and portability. > [!NOTE] > You are on the v1 branch. Check out [h3 main](https://github.com/unjs/h3/tree/main) for latest. 👉 [Documentation](https://h3.unjs.io) ## Contribution
Local development - Clone this repository - Install the latest LTS version of [Node.js](https://nodejs.org/en/) - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run tests using `pnpm dev` or `pnpm test`
## License Published under the [MIT](https://github.com/h3js/h3/blob/main/LICENSE) license. Made by [@pi0](https://github.com/pi0) and [community](https://github.com/h3js/h3/graphs/contributors) 💛

--- _🤖 auto updated with [automd](https://automd.unjs.io)_ --- END ORIGINAL BYTES --- ================================================================ harfbuzzjs@0.10.0 Declared package license: MIT Published archive: https://registry.npmjs.org/harfbuzzjs/-/harfbuzzjs-0.10.0.tgz Locked integrity: sha512-SN8LVwCOzvTq3OPNd0+EAghgXugItz56wst567D1vs7LnnKGWprhi3EG58aVOBwhN8HEbQxL4I9NDWkcXUutRw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c85596583d1b7e4cfb4f21165ce0988aabd72e80a8c3a2ab6aaeedc1965e8288; bytes: 1197 --- BEGIN ORIGINAL BYTES --- Apache license for Zephyr libc implementations (zephyr-string.c), emmalloc.cpp (from emscripten project) and MIT for rest of the project Copyright (c) 2019 Ebrahim Byagowi 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. --- END ORIGINAL BYTES --- ================================================================ hast-util-to-html@9.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz Locked integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 685034853ee577e3ec007fb8a56f4bf8ecb8fd5b39a4af03e4897f7c664fdee7; bytes: 11877 --- BEGIN ORIGINAL BYTES --- # hast-util-to-html [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [hast][github-hast] utility to serialize hast as HTML. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`toHtml(tree[, options])`](#tohtmltree-options) * [`CharacterReferences`](#characterreferences) * [`Options`](#options) * [`Quote`](#quote-1) * [`Space`](#space-1) * [Syntax](#syntax) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a utility that turns a hast tree into a string of HTML. ## When should I use this? You can use this utility when you want to get the serialized HTML that is represented by the syntax tree, either because you’re done with the syntax tree, or because you’re integrating with another tool that does not support syntax trees. This utility has many options to configure how the HTML is serialized. These options help when building tools that make output pretty (such as formatters) or ugly (such as minifiers). The utility [`hast-util-from-html`][github-hast-util-from-html] does the inverse of this utility. It turns HTML into hast. The rehype plugin [`rehype-stringify`][github-rehype-stringify] wraps this utility to also serialize HTML at a higher-level (easier) abstraction. ## Install This package is [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npmjs-install]: ```sh npm install hast-util-to-html ``` In Deno with [`esm.sh`][esmsh]: ```js import {toHtml} from 'https://esm.sh/hast-util-to-html@9' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {h} from 'hastscript' import {toHtml} from 'hast-util-to-html' const tree = h('.alpha', [ 'bravo ', h('b', 'charlie'), ' delta ', h('a.echo', {download: true}, 'foxtrot') ]) console.log(toHtml(tree)) ``` Yields: ```html
bravo charlie delta foxtrot
``` ## API This package exports the identifier [`toHtml`][api-to-html]. There is no default export. ### `toHtml(tree[, options])` Serialize hast as HTML. ###### Parameters * `tree` ([`Node`][github-hast-nodes] or `Array`) — tree to serialize * `options` ([`Options`][api-options], optional) — configuration ###### Returns Serialized HTML (`string`). ### `CharacterReferences` How to serialize character references (TypeScript type). ##### Fields ###### `useNamedReferences` Prefer named character references (`&`) where possible (`boolean`, default: `false`). ###### `omitOptionalSemicolons` Whether to omit semicolons when possible (`boolean`, default: `false`). > ⚠️ **Note**: > this creates what HTML calls “parse errors” but is otherwise still valid HTML: > don’t use this except when building a minifier; > omitting semicolons is possible for certain named and numeric references in > some cases. ###### `useShortestReferences` Prefer the shortest possible reference, if that results in less bytes (`boolean`, default: `false`). > ⚠️ **Note**: > `useNamedReferences` can be omitted when using `useShortestReferences`. ### `Options` Configuration (TypeScript type). ##### Fields ###### `allowDangerousCharacters` Do not encode some characters which cause XSS vulnerabilities in older browsers (`boolean`, default: `false`). > ⚠️ **Danger**: > only set this if you completely trust the content. ###### `allowDangerousHtml` Allow `raw` nodes and insert them as raw HTML (`boolean`, default: `false`). When `false`, `Raw` nodes are encoded. > ⚠️ **Danger**: > only set this if you completely trust the content. ###### `allowParseErrors` Do not encode characters which cause parse errors (even though they work), to save bytes (`boolean`, default: `false`). Not used in the SVG space. > 👉 **Note**: > intentionally creates parse errors in markup > (how parse errors are handled is well defined, > so this works but isn’t pretty). ###### `bogusComments` Use “bogus comments” instead of comments to save byes: `` instead of `` (`boolean`, default: `false`). > 👉 **Note**: > intentionally creates parse errors in markup > (how parse errors are handled is well defined, > so this works but isn’t pretty). ###### `characterReferences` Configure how to serialize character references ([`CharacterReferences`][api-character-references], optional). ###### `closeEmptyElements` Close SVG elements without any content with slash (`/`) on the opening tag instead of an end tag: `` instead of `` (`boolean`, default: `false`). See `tightSelfClosing` to control whether a space is used before the slash. Not used in the HTML space. ###### `closeSelfClosing` Close self-closing nodes with an extra slash (`/`): `` instead of `` (`boolean`, default: `false`). See `tightSelfClosing` to control whether a space is used before the slash. Not used in the SVG space. ###### `collapseEmptyAttributes` Collapse empty attributes: get `class` instead of `class=""` (`boolean`, default: `false`). Not used in the SVG space. > 👉 **Note**: > boolean attributes > (such as `hidden`) > are always collapsed. ###### `omitOptionalTags` Omit optional opening and closing tags (`boolean`, default: `false`). For example, in `
  1. one
  2. two
`, both `` closing tags can be omitted. The first because it’s followed by another `li`, the last because it’s followed by nothing. Not used in the SVG space. ###### `preferUnquoted` Leave attributes unquoted if that results in less bytes (`boolean`, default: `false`). Not used in the SVG space. ###### `quote` Preferred quote to use ([`Quote`][api-quote], default: `'"'`). ###### `quoteSmart` Use the other quote if that results in less bytes (`boolean`, default: `false`). ###### `space` Which space the document is in ([`Space`][api-space], default: `'html'`). When an `` element is found in the HTML space, this package already automatically switches to and from the SVG space when entering and exiting it. > 👉 **Note**: > hast is not XML. > It supports SVG as embedded in HTML. > It does not support the features available in XML. > Passing SVG might break but fragments of modern SVG should be fine. > Use [`xast`][github-xast] if you need to support SVG as XML. ###### `tightAttributes` Join attributes together, without whitespace, if possible: get `class="a b"title="c d"` instead of `class="a b" title="c d"` to save bytes (`boolean`, default: `false`). Not used in the SVG space. > 👉 **Note**: > intentionally creates parse errors in markup > (how parse errors are handled is well defined, > so this works but isn’t pretty). ###### `tightCommaSeparatedLists` Join known comma-separated attribute values with just a comma (`,`), instead of padding them on the right as well (`,␠`, where `␠` represents a space) (`boolean`, default: `false`). ###### `tightDoctype` Drop unneeded spaces in doctypes: `` instead of `` to save bytes (`boolean`, default: `false`). > 👉 **Note**: > intentionally creates parse errors in markup > (how parse errors are handled is well defined, > so this works but isn’t pretty). ###### `tightSelfClosing` Do not use an extra space when closing self-closing elements: `` instead of `` (`boolean`, default: `false`). > 👉 **Note**: > only used if `closeSelfClosing: true` or `closeEmptyElements: true`. ###### `upperDoctype` Use a ``, default: [`html-void-elements`][github-html-void-elements]). Not used in the SVG space. > 👉 **Note**: > it’s highly unlikely that you want to pass this, > because hast is not for XML, > and HTML will not add more void elements. ### `Quote` HTML quotes for attribute values (TypeScript type). ###### Type ```ts type Quote = '"' | "'" ``` ### `Space` Namespace (TypeScript type). ###### Type ```ts type Space = 'html' | 'svg' ``` ## Syntax HTML is serialized according to WHATWG HTML (the living standard), which is also followed by browsers such as Chrome and Firefox. ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`CharacterReferences`][api-character-references], [`Options`][api-options], [`Quote`][api-quote], and [`Space`][api-space]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `hast-util-to-html@9`, compatible with Node.js 16. ## Security Use of `hast-util-to-html` can open you up to a [cross-site scripting (XSS)][wikipedia-xss] attack if the hast tree is unsafe. Use [`hast-util-santize`][github-hast-util-sanitize] to make the hast tree safe. ## Related * [`hast-util-sanitize`][github-hast-util-sanitize] — sanitize hast ## Contribute See [`contributing.md`][health-contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][health-support] for ways to get help. This project has a [code of conduct][health-coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][file-license] © [Titus Wormer][wooorm] [api-character-references]: #characterreferences [api-options]: #options [api-quote]: #quote-1 [api-space]: #space-1 [api-to-html]: #tohtmltree-options [badge-build-image]: https://github.com/syntax-tree/hast-util-to-html/workflows/main/badge.svg [badge-build-url]: https://github.com/syntax-tree/hast-util-to-html/actions [badge-coverage-image]: https://img.shields.io/codecov/c/github/syntax-tree/hast-util-to-html.svg [badge-coverage-url]: https://codecov.io/github/syntax-tree/hast-util-to-html [badge-downloads-image]: https://img.shields.io/npm/dm/hast-util-to-html.svg [badge-downloads-url]: https://www.npmjs.com/package/hast-util-to-html [badge-size-image]: https://img.shields.io/bundlejs/size/hast-util-to-html [badge-size-url]: https://bundlejs.com/?q=hast-util-to-html [esmsh]: https://esm.sh [file-license]: license [github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [github-hast]: https://github.com/syntax-tree/hast [github-hast-nodes]: https://github.com/syntax-tree/hast#nodes [github-hast-util-from-html]: https://github.com/syntax-tree/hast-util-from-html [github-hast-util-sanitize]: https://github.com/syntax-tree/hast-util-sanitize [github-html-void-elements]: https://github.com/wooorm/html-void-elements [github-rehype-stringify]: https://github.com/rehypejs/rehype/tree/main/packages/rehype-stringify#readme [github-xast]: https://github.com/syntax-tree/xast [health]: https://github.com/syntax-tree/.github [health-coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [health-contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [health-support]: https://github.com/syntax-tree/.github/blob/main/support.md [npmjs-install]: https://docs.npmjs.com/cli/install [typescript]: https://www.typescriptlang.org [wikipedia-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [wooorm]: https://wooorm.com --- END ORIGINAL BYTES --- ================================================================ hast-util-whitespace@3.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz Locked integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 2eba6342143423057ad552699b8a1acf804167c4c7d387a186600bd588a24068; bytes: 7138 --- BEGIN ORIGINAL BYTES --- # hast-util-whitespace [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [hast][] utility to check if a node is [*inter-element whitespace*][spec]. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`whitespace(thing)`](#whitespacething) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a small utility that checks if a node is whitespace according to HTML. ## When should I use this? This utility is super niche, if you’re here you probably know what you’re looking for! ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install hast-util-whitespace ``` In Deno with [`esm.sh`][esmsh]: ```js import {whitespace} from 'https://esm.sh/hast-util-whitespace@3' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {whitespace} from 'hast-util-whitespace' whitespace({ type: 'element', tagName: 'div', properties: {}, children: [] }) // => false whitespace({ type: 'text', value: '\t \n' }) // => true whitespace({ type: 'text', value: ' text\f' }) // => false ``` ## API This package exports the identifier [`whitespace`][api-whitespace]. There is no default export. ### `whitespace(thing)` Check if the given value is [*inter-element whitespace*][spec]. ###### Parameters * `thing` ([`Node`][node] or `string`, optional) — thing to check ###### Returns Whether the `value` is inter-element whitespace (`boolean`): consisting of zero or more of space, tab (`\t`), line feed (`\n`), carriage return (`\r`), or form feed (`\f`). If a node is passed it must be a [`Text`][text] node, whose `value` field is checked. ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `hast-util-whitespace@^3`, compatible with Node.js 16. ## Security `hast-util-whitespace` does not change the syntax tree so there are no openings for [cross-site scripting (XSS)][xss] attacks. ## Related * [`hast-util-is-element`](https://github.com/syntax-tree/hast-util-is-element) — check if a node is a (certain) element * [`hast-util-has-property`](https://github.com/syntax-tree/hast-util-has-property) — check if a node has a property * [`hast-util-transparent`](https://github.com/syntax-tree/hast-util-transparent) — check if a node is a transparent element * [`hast-util-heading`](https://github.com/syntax-tree/hast-util-heading) — check if a node is a heading element * [`hast-util-labelable`](https://github.com/syntax-tree/hast-util-labelable) — check whether a node is labelable * [`hast-util-phrasing`](https://github.com/syntax-tree/hast-util-phrasing) — check if a node is phrasing content * [`hast-util-embedded`](https://github.com/syntax-tree/hast-util-embedded) — check if a node is an embedded element * [`hast-util-sectioning`](https://github.com/syntax-tree/hast-util-sectioning) — check if a node is a sectioning element * [`hast-util-interactive`](https://github.com/syntax-tree/hast-util-interactive) — check if a node is interactive * [`hast-util-script-supporting`](https://github.com/syntax-tree/hast-util-script-supporting) — check if a node is a script-supporting element * [`hast-util-is-body-ok-link`](https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-body-ok-link) — check if a node is “Body OK” link element * [`hast-util-is-conditional-comment`](https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-conditional-comment) — check if a node is a conditional comment * [`hast-util-is-css-link`](https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-css-link) — check if a node is a CSS link element * [`hast-util-is-css-style`](https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-css-style) — check if a node is a CSS style element * [`hast-util-is-javascript`](https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-javascript) — check if a node is a JavaScript script element ## Contribute See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/hast-util-whitespace/workflows/main/badge.svg [build]: https://github.com/syntax-tree/hast-util-whitespace/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/hast-util-whitespace.svg [coverage]: https://codecov.io/github/syntax-tree/hast-util-whitespace [downloads-badge]: https://img.shields.io/npm/dm/hast-util-whitespace.svg [downloads]: https://www.npmjs.com/package/hast-util-whitespace [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-whitespace [size]: https://bundlejs.com/?q=hast-util-whitespace [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [license]: license [author]: https://wooorm.com [health]: https://github.com/syntax-tree/.github [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [support]: https://github.com/syntax-tree/.github/blob/main/support.md [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [hast]: https://github.com/syntax-tree/hast [spec]: https://html.spec.whatwg.org/multipage/dom.html#inter-element-whitespace [node]: https://github.com/syntax-tree/hast#nodes [text]: https://github.com/syntax-tree/hast#text [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [api-whitespace]: #whitespacething --- END ORIGINAL BYTES --- ================================================================ hex-rgb@4.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/hex-rgb/-/hex-rgb-4.3.0.tgz Locked integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ html-escaper@3.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz Locked integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.txt SHA-256: 27d06bbb2eb031be8aa376868a2e1f11b6acba938d4cc8e1234b66b9739c54a3; bytes: 1089 --- BEGIN ORIGINAL BYTES --- Copyright (C) 2017-present by Andrea Giammarchi - @WebReflection 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. --- END ORIGINAL BYTES --- ================================================================ html-void-elements@3.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz Locked integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: b2e30168c95dfade55777499e57c21b3cb6b314a0ab1f8234a3c7536825dbf8e; bytes: 3353 --- BEGIN ORIGINAL BYTES --- # html-void-elements [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] List of HTML void tag names. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`htmlVoidElements`](#htmlvoidelements) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a list of all void tag names according to HTML. > 👉 **Note**: includes ancient (such as `basefont` and `bgsound`) tag names > too. ## When should I use this? You can use this when you’re writing HTML parsers, minifiers, or compilers. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+), install with [npm][]: ```sh npm install html-void-elements ``` In Deno with [`esm.sh`][esmsh]: ```js import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {htmlVoidElements} from 'html-void-elements' console.log(htmlVoidElements) ``` Yields: ```js [ 'area', 'base', 'basefont', 'bgsound', 'br', 'col', 'command', 'embed', 'frame', 'hr', 'image', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr' ] ``` ## API This package exports the identifier `htmlVoidElements`. There is no default export. ### `htmlVoidElements` List of HTML void tag names (`Array`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names) — list of HTML tag names * [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes) — map of HTML elements to attributes ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/html-void-elements/workflows/main/badge.svg [build]: https://github.com/wooorm/html-void-elements/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-void-elements.svg [coverage]: https://codecov.io/github/wooorm/html-void-elements [downloads-badge]: https://img.shields.io/npm/dm/html-void-elements.svg [downloads]: https://www.npmjs.com/package/html-void-elements [size-badge]: https://img.shields.io/bundlephobia/minzip/html-void-elements.svg [size]: https://bundlephobia.com/result?p=html-void-elements [npm]: https://docs.npmjs.com/cli/install [esmsh]: https://esm.sh [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ --- END ORIGINAL BYTES --- ================================================================ http-cache-semantics@4.2.0 Declared package license: BSD-2-Clause Published archive: https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz Locked integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: ab868ad5a2ef5068560d9cd3b2180ec63c140bb4c5cae1ba779d300a0ac74fa3; bytes: 1274 --- BEGIN ORIGINAL BYTES --- Copyright 2016-2018 Kornel Lesiński Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- ================================================================ iron-webcrypto@1.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz Locked integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 1b191ca798543815703c249f6ff4b59881d928a229b4eb72c0f684cb63b1acce; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Divyansh Singh 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 07a3f6c24e54e6f256657d81c9acd3b5518155f88c2c054f6b68b24dcb6c5904; bytes: 4908 --- BEGIN ORIGINAL BYTES --- # iron-webcrypto [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue?style=flat-square)](https://www.jsdocs.io/package/iron-webcrypto) [![downloads](https://img.shields.io/npm/dm/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) [![npm](https://img.shields.io/npm/v/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) [![deno](https://img.shields.io/badge/deno-iron@v1.2.1-blue.svg?style=flat-square)](https://deno.land/x/iron@v1.2.1/mod.ts) [![jsr](https://img.shields.io/badge/jsr-@brc--dd/iron@v1.2.1-blue.svg?style=flat-square)](https://jsr.io/@brc-dd/iron) This module is a replacement for `@hapi/iron`, written using standard APIs like Web Crypto and Uint8Array, which make this compatible with a variety of runtimes like Node.js, Deno, Bun, browsers, workers, and edge environments. Refer `@hapi/iron`'s docs on what it does and how it works. > Check out [**unjs/h3**](https://github.com/unjs/h3) and > [**vvo/iron-session**](https://github.com/vvo/iron-session) to see this module > in use! --- ## Installation For Node.js and Bun, run any of the following commands depending on your package manager / runtime: ```sh npm add iron-webcrypto yarn add iron-webcrypto pnpm add iron-webcrypto bun add iron-webcrypto ``` You can then import it using: ```ts import * as Iron from 'iron-webcrypto' ``` If using JSR, run any of the following commands depending on your package manager / runtime: ```sh npx jsr add @brc-dd/iron yarn dlx jsr add @brc-dd/iron pnpm dlx jsr add @brc-dd/iron bunx jsr add @brc-dd/iron deno add @brc-dd/iron ``` You can then import it using: ```ts import * as Iron from '@brc-dd/iron' ``` On Deno, you can also use any of the following imports: ```ts import * as Iron from 'https://deno.land/x/iron@v1.2.1/mod.ts' import * as Iron from 'https://esm.sh/iron-webcrypto@1.2.1' import * as Iron from 'npm:iron-webcrypto@1.2.1' ``` Don't use this module directly in the browser. While it will work, it's not recommended to use it in client-side code because of the security implications. ## Usage Refer [`@hapi/iron`'s docs](https://hapi.dev/module/iron/). There are certain differences. You need to pass a Web Crypto implementation as the first parameter to each function. For example: ```ts Iron.seal(obj, password, Iron.defaults) ``` becomes: ```ts Iron.seal(_crypto, obj, password, Iron.defaults) ``` where `_crypto` is your Web Crypto implementation. Generally, this will be available in your context. For example, `globalThis.crypto` in browsers, workers, edge runtimes, Deno, Bun, and Node.js v19+; `require('crypto').webcrypto` in Node.js v15+. You can directly use [`uncrypto`](https://github.com/unjs/uncrypto) for this too. Also, you might need to polyfill this for older Node.js versions. I recommend using [`@peculiar/webcrypto`](https://github.com/PeculiarVentures/webcrypto) for that. There are certain other differences because of the underlying implementation using standard APIs instead of Node.js-specific ones like `node:crypto` and `node:buffer`. There might also be differences in certain error messages because of this. ## Security Considerations **Users are responsible for implementing `iron-webcrypto` in a secure manner and ensuring the security of their cryptographic keys. I DO NOT guarantee the security of this module.** So far, no security vulnerabilities have been reported, but I am no cryptography expert. Quoting [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API): > The Web Crypto API provides a number of low-level cryptographic primitives. > It's very easy to misuse them, and the pitfalls involved can be very subtle. > > Even assuming you use the basic cryptographic functions correctly, secure key > management and overall security system design are extremely hard to get right, > and are generally the domain of specialist security experts. > > Errors in security system design and implementation can make the security of > the system completely ineffective. As a request, it would be great if someone with expertise in this field could thoroughly review the code. ## Credits ```txt @hapi/iron Copyright (c) 2012-2022, Project contributors Copyright (c) 2012-2020, Sideway Inc All rights reserved. https://cdn.jsdelivr.net/npm/@hapi/iron@7.0.1/LICENSE.md @smithy/util-base64 Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. https://cdn.jsdelivr.net/npm/@smithy/util-base64@2.3.0/LICENSE @smithy/util-utf8 Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. https://cdn.jsdelivr.net/npm/@smithy/util-utf8@2.3.0/LICENSE ``` ## Sponsors

brc-dd's sponsors

--- END ORIGINAL BYTES --- ================================================================ is-docker@4.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/is-docker/-/is-docker-4.0.0.tgz Locked integrity: sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ is-plain-obj@4.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz Locked integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: ff7600f94089bc665966ec712cecaca3bbc881d1a11c41e360feaf79cc81b041; bytes: 1236 --- BEGIN ORIGINAL BYTES --- # is-plain-obj > Check if a value is a plain object An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`. ## Install ``` $ npm install is-plain-obj ``` ## Usage ```js import isPlainObject from 'is-plain-obj'; import {runInNewContext} from 'node:vm'; isPlainObject({foo: 'bar'}); //=> true isPlainObject(new Object()); //=> true isPlainObject(Object.create(null)); //=> true // This works across realms isPlainObject(runInNewContext('({})')); //=> true isPlainObject([1, 2, 3]); //=> false class Unicorn {} isPlainObject(new Unicorn()); //=> false isPlainObject(Math); //=> false ``` ## Related - [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object - [is](https://github.com/sindresorhus/is) - Type check values ---
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
--- END ORIGINAL BYTES --- ================================================================ jiti@2.7.0 Declared package license: MIT Published archive: https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz Locked integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 5c548c17b8eaa50ba090dab41baeea23cce50eac41e70bec34037727b7e0e881; bytes: 8558 --- BEGIN ORIGINAL BYTES --- # jiti [![npm version](https://img.shields.io/npm/v/jiti?color=F0DB4F)](https://npmjs.com/package/jiti) [![npm downloads](https://img.shields.io/npm/dm/jiti?color=F0DB4F)](https://npmjs.com/package/jiti) [![bundle size](https://img.shields.io/bundlephobia/minzip/jiti?color=F0DB4F)](https://bundlephobia.com/package/jiti) > This is the active development branch. Check out [jiti/v1](https://github.com/unjs/jiti/tree/v1) for legacy v1 docs and code. ## 🌟 Used in [Docusaurus](https://docusaurus.io/), [ESLint](https://github.com/eslint/eslint), [FormKit](https://formkit.com/), [Histoire](https://histoire.dev/), [Knip](https://knip.dev/), [Nitro](https://nitro.unjs.io/), [Nuxt](https://nuxt.com/), [PostCSS loader](https://github.com/webpack-contrib/postcss-loader), [Rsbuild](https://rsbuild.dev/), [Size Limit](https://github.com/ai/size-limit), [Slidev](https://sli.dev/), [Tailwindcss](https://tailwindcss.com/), [Tokenami](https://github.com/tokenami/tokenami), [UnoCSS](https://unocss.dev/), [WXT](https://wxt.dev/), [Winglang](https://www.winglang.io/), [Graphql code generator](https://the-guild.dev/graphql/codegen), [Lingui](https://lingui.dev/), [Scaffdog](https://scaff.dog/), [Storybook](https://storybook.js.org), [...UnJS ecosystem](https://unjs.io/), [...60M+ npm monthly downloads](https://npm.chart.dev/jiti), [...6M+ public repositories](https://github.com/unjs/jiti/network/dependents). ## ✅ Features - Seamless TypeScript and ESM syntax support for Node.js - Seamless interoperability between ESM and CommonJS - Asynchronous API to replace `import()` - Synchronous API to replace `require()` (deprecated) - Super slim and zero dependency - Custom resolve aliases - Smart syntax detection to avoid extra transforms - Node.js native `require.cache` integration - Filesystem transpile with hard disk caches - ESM Loader support - JSX support (opt-in) > [!IMPORTANT] > To enhance compatibility, jiti `>=2.1` enabled [`interopDefault`](#interopdefault) using a new Proxy method. If you migrated to `2.0.0` earlier, this might have caused behavior changes. In case of any issues during the upgrade, please [report](https://github.com/unjs/jiti/issues) so we can investigate to solve them. 🙏🏼 ## 💡 Usage ### CLI You can use `jiti` CLI to quickly run any script with TypeScript and native ESM support! ```bash npx jiti ./index.ts ``` ### Programmatic Initialize a jiti instance: ```js // ESM import { createJiti } from "jiti"; const jiti = createJiti(import.meta.url); // CommonJS (deprecated) const { createJiti } = require("jiti"); const jiti = createJiti(__filename); ``` Import (async) and resolve with ESM compatibility: ```js // jiti.import(id) is similar to import(id) const mod = await jiti.import("./path/to/file.ts"); // jiti.esmResolve(id) is similar to import.meta.resolve(id) const resolvedPath = jiti.esmResolve("./src"); ``` If you need the default export of module, you can use `jiti.import(id, { default: true })` as shortcut to `mod?.default ?? mod`. ```js // shortcut to mod?.default ?? mod const modDefault = await jiti.import("./path/to/file.ts", { default: true }); ``` CommonJS (sync & deprecated): ```js // jiti() is similar to require(id) const mod = jiti("./path/to/file.ts"); // jiti.resolve() is similar to require.resolve(id) const resolvedPath = jiti.resolve("./src"); ``` You can also pass options as the second argument: ```js const jiti = createJiti(import.meta.url, { debug: true }); ``` ### Register global ESM loader You can globally register jiti using [global hooks](https://nodejs.org/api/module.html#initialize). (Important: Requires Node.js > 20) ```js import "jiti/register"; ``` Or: ```bash node --import jiti/register index.ts ``` ## 🎈 `jiti/native` You can alias `jiti` to `jiti/native` to directly depend on runtime's [`import.meta.resolve`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve) and dynamic [`import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) support. This allows easing up the ecosystem transition to runtime native support by giving the same API of jiti. ## ⚙️ Options ### `debug` - Type: Boolean - Default: `false` - Environment variable: `JITI_DEBUG` Enable verbose logging. You can use `JITI_DEBUG=1 ` to enable it. ### `fsCache` - Type: Boolean | String - Default: `true` - Environment variable: `JITI_FS_CACHE` Filesystem source cache (enabled by default) By default (when is `true`), jiti uses `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/jiti`. **Note:** It is recommended that this option be enabled for better performance. ### `rebuildFsCache` - Type: Boolean - Default: `false` - Environment variable: `JITI_REBUILD_FS_CACHE` Rebuild filesystem source cache created by `fsCache`. ### `moduleCache` - Type: String - Default: `true` - Environment variable: `JITI_MODULE_CACHE` Runtime module cache (enabled by default). Disabling allows editing code and importing the same module multiple times. When enabled, jiti integrates with Node.js native CommonJS cache-store. ### `transform` - Type: Function - Default: Babel (lazy loaded) Transform function. See [src/babel](./src/babel.ts) for more details ### `sourceMaps` - Type: Boolean - Default `false` - Environment variable: `JITI_SOURCE_MAPS` Add inline source map to transformed source for better debugging. ### `interopDefault` - Type: Boolean - Default: `true` - Environment variable: `JITI_INTEROP_DEFAULT` Jiti combines module exports with the `default` export using an internal Proxy to improve compatibility with mixed CJS/ESM usage. You can check the current implementation [here](https://github.com/unjs/jiti/blob/main/src/utils.ts#L105). > [!WARNING] > This option wraps **all imported modules** in a Proxy, which adds ~25-50ns overhead per property access. For performance-critical hot paths where you access module exports very frequently, consider setting `interopDefault: false` or `JITI_INTEROP_DEFAULT=false`. ### `alias` - Type: Object - Default: - - Environment variable: `JITI_ALIAS` You can also pass an object to the environment variable for inline config. Example: `JITI_ALIAS='{"~/*": "./src/*"}' jiti ...`. Custom alias map used to resolve IDs. ### `tsconfigPaths` - Type: Boolean | String - Default: `false` - Environment variable: `JITI_TSCONFIG_PATHS` Enable TypeScript [`paths`](https://www.typescriptlang.org/tsconfig/#paths) resolution using [`get-tsconfig`](https://github.com/privatenumber/get-tsconfig). - `true`: Auto-discover `tsconfig.json` by walking up from the jiti instance's parent path. - `string`: Explicit path to a `tsconfig.json` file. - `false` (default): Disabled. ### `nativeModules` - Type: Array - Default: ['typescript'] - Environment variable: `JITI_NATIVE_MODULES` List of modules (within `node_modules`) to always use native `require()` for them. ### `transformModules` - Type: Array - Default: [] - Environment variable: `JITI_TRANSFORM_MODULES` List of modules (within `node_modules`) to transform them regardless of syntax. ### `importMeta` Parent module's [`import.meta`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta) context to use for ESM resolution. (only used for `jiti/native` import). ### `tryNative` - Type: Boolean - Default: Enabled if bun is detected - Environment variable: `JITI_TRY_NATIVE` Try to use native require and import without jiti transformations first. ### `jsx` - Type: Boolean | {options} - Default: `false` - Environment Variable: `JITI_JSX` Enable JSX support using [`@babel/plugin-transform-react-jsx`](https://babeljs.io/docs/babel-plugin-transform-react-jsx). See [`test/fixtures/jsx`](./test/fixtures/jsx) for framework integration examples. ## Development - Clone this repository - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run `pnpm dev` - Run `pnpm jiti ./test/path/to/file.ts` ## License Published under the [MIT](https://github.com/unjs/jiti/blob/main/LICENSE) license. Made by [@pi0](https://github.com/pi0) and [community](https://github.com/unjs/jiti/graphs/contributors) 💛

--- END ORIGINAL BYTES --- ================================================================ js-yaml@4.3.2 Declared package license: MIT Published archive: https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz Locked integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a07bc24468b9654ce76a547d47a2db282d07733b715db4c73a98bd63961f9550; bytes: 1084 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (C) 2011-2015 by Vitaly Puzrin 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. --- END ORIGINAL BYTES --- ================================================================ jsonc-parser@3.3.1 Declared package license: MIT Published archive: https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz Locked integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: c3a24c02d678e5f0711623dcf3ab3f243b273c2633f638a1fa8e35fb7c7f8e4d; bytes: 1092 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) Microsoft 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: dbd5441ae6226fb80684fd71dc400e27c65bfb6e74e78e1c66e9b620bd82cd82; bytes: 14273 --- BEGIN ORIGINAL BYTES --- # jsonc-parser Scanner and parser for JSON with comments. [![npm Package](https://img.shields.io/npm/v/jsonc-parser.svg?style=flat-square)](https://www.npmjs.org/package/jsonc-parser) [![NPM Downloads](https://img.shields.io/npm/dm/jsonc-parser.svg)](https://npmjs.org/package/jsonc-parser) [![Build Status](https://github.com/microsoft/node-jsonc-parser/workflows/Tests/badge.svg)](https://github.com/microsoft/node-jsonc-parser/workflows/Tests) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Why? ---- JSONC is JSON with JavaScript style comments. This node module provides a scanner and fault tolerant parser that can process JSONC but is also useful for standard JSON. - the *scanner* tokenizes the input string into tokens and token offsets - the *visit* function implements a 'SAX' style parser with callbacks for the encountered properties and values. - the *parseTree* function computes a hierarchical DOM with offsets representing the encountered properties and values. - the *parse* function evaluates the JavaScript object represented by JSON string in a fault tolerant fashion. - the *getLocation* API returns a location object that describes the property or value located at a given offset in a JSON document. - the *findNodeAtLocation* API finds the node at a given location path in a JSON DOM. - the *format* API computes edits to format a JSON document. - the *modify* API computes edits to insert, remove or replace a property or value in a JSON document. - the *applyEdits* API applies edits to a document. Installation ------------ ``` npm install --save jsonc-parser ``` API --- ### Scanner: ```typescript /** * Creates a JSON scanner on the given text. * If ignoreTrivia is set, whitespaces or comments are ignored. */ export function createScanner(text: string, ignoreTrivia: boolean = false): JSONScanner; /** * The scanner object, representing a JSON scanner at a position in the input string. */ export interface JSONScanner { /** * Sets the scan position to a new offset. A call to 'scan' is needed to get the first token. */ setPosition(pos: number): any; /** * Read the next token. Returns the token code. */ scan(): SyntaxKind; /** * Returns the zero-based current scan position, which is after the last read token. */ getPosition(): number; /** * Returns the last read token. */ getToken(): SyntaxKind; /** * Returns the last read token value. The value for strings is the decoded string content. For numbers it's of type number, for boolean it's true or false. */ getTokenValue(): string; /** * The zero-based start offset of the last read token. */ getTokenOffset(): number; /** * The length of the last read token. */ getTokenLength(): number; /** * The zero-based start line number of the last read token. */ getTokenStartLine(): number; /** * The zero-based start character (column) of the last read token. */ getTokenStartCharacter(): number; /** * An error code of the last scan. */ getTokenError(): ScanError; } ``` ### Parser: ```typescript export interface ParseOptions { disallowComments?: boolean; allowTrailingComma?: boolean; allowEmptyContent?: boolean; } /** * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. * Therefore always check the errors list to find out if the input was valid. */ export declare function parse(text: string, errors?: {error: ParseErrorCode;}[], options?: ParseOptions): any; /** * Parses the given text and invokes the visitor functions for each object, array and literal reached. */ export declare function visit(text: string, visitor: JSONVisitor, options?: ParseOptions): any; /** * Visitor called by {@linkcode visit} when parsing JSON. * * The visitor functions have the following common parameters: * - `offset`: Global offset within the JSON document, starting at 0 * - `startLine`: Line number, starting at 0 * - `startCharacter`: Start character (column) within the current line, starting at 0 * * Additionally some functions have a `pathSupplier` parameter which can be used to obtain the * current `JSONPath` within the document. */ export interface JSONVisitor { /** * Invoked when an open brace is encountered and an object is started. The offset and length represent the location of the open brace. * When `false` is returned, the array items will not be visited. */ onObjectBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void | boolean; /** * Invoked when a property is encountered. The offset and length represent the location of the property name. * The `JSONPath` created by the `pathSupplier` refers to the enclosing JSON object, it does not include the * property name yet. */ onObjectProperty?: (property: string, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; /** * Invoked when a closing brace is encountered and an object is completed. The offset and length represent the location of the closing brace. */ onObjectEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; /** * Invoked when an open bracket is encountered. The offset and length represent the location of the open bracket. * When `false` is returned, the array items will not be visited.* */ onArrayBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void | boolean; /** * Invoked when a closing bracket is encountered. The offset and length represent the location of the closing bracket. */ onArrayEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; /** * Invoked when a literal value is encountered. The offset and length represent the location of the literal value. */ onLiteralValue?: (value: any, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; /** * Invoked when a comma or colon separator is encountered. The offset and length represent the location of the separator. */ onSeparator?: (character: string, offset: number, length: number, startLine: number, startCharacter: number) => void; /** * When comments are allowed, invoked when a line or block comment is encountered. The offset and length represent the location of the comment. */ onComment?: (offset: number, length: number, startLine: number, startCharacter: number) => void; /** * Invoked on an error. */ onError?: (error: ParseErrorCode, offset: number, length: number, startLine: number, startCharacter: number) => void; } /** * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. */ export declare function parseTree(text: string, errors?: ParseError[], options?: ParseOptions): Node | undefined; export declare type NodeType = "object" | "array" | "property" | "string" | "number" | "boolean" | "null"; export interface Node { type: NodeType; value?: any; offset: number; length: number; colonOffset?: number; parent?: Node; children?: Node[]; } ``` ### Utilities: ```typescript /** * Takes JSON with JavaScript-style comments and remove * them. Optionally replaces every none-newline character * of comments with a replaceCharacter */ export declare function stripComments(text: string, replaceCh?: string): string; /** * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. */ export declare function getLocation(text: string, position: number): Location; /** * A {@linkcode JSONPath} segment. Either a string representing an object property name * or a number (starting at 0) for array indices. */ export declare type Segment = string | number; export declare type JSONPath = Segment[]; export interface Location { /** * The previous property key or literal value (string, number, boolean or null) or undefined. */ previousNode?: Node; /** * The path describing the location in the JSON document. The path consists of a sequence strings * representing an object property or numbers for array indices. */ path: JSONPath; /** * Matches the locations path against a pattern consisting of strings (for properties) and numbers (for array indices). * '*' will match a single segment, of any property name or index. * '**' will match a sequence of segments or no segment, of any property name or index. */ matches: (patterns: JSONPath) => boolean; /** * If set, the location's offset is at a property key. */ isAtPropertyKey: boolean; } /** * Finds the node at the given path in a JSON DOM. */ export function findNodeAtLocation(root: Node, path: JSONPath): Node | undefined; /** * Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. */ export function findNodeAtOffset(root: Node, offset: number, includeRightBound?: boolean) : Node | undefined; /** * Gets the JSON path of the given JSON DOM node */ export function getNodePath(node: Node): JSONPath; /** * Evaluates the JavaScript object of the given JSON DOM node */ export function getNodeValue(node: Node): any; /** * Computes the edit operations needed to format a JSON document. * * @param documentText The input text * @param range The range to format or `undefined` to format the full content * @param options The formatting options * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. * To apply the edit operations to the input, use {@linkcode applyEdits}. */ export function format(documentText: string, range: Range, options: FormattingOptions): EditResult; /** * Computes the edit operations needed to modify a value in the JSON document. * * @param documentText The input text * @param path The path of the value to change. The path represents either to the document root, a property or an array item. * If the path points to an non-existing property or item, it will be created. * @param value The new value for the specified property or item. If the value is undefined, * the property or item will be removed. * @param options Options * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. * To apply the edit operations to the input, use {@linkcode applyEdits}. */ export function modify(text: string, path: JSONPath, value: any, options: ModificationOptions): EditResult; /** * Applies edits to an input string. * @param text The input text * @param edits Edit operations following the format described in {@linkcode EditResult}. * @returns The text with the applied edits. * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. */ export function applyEdits(text: string, edits: EditResult): string; /** * An edit result describes a textual edit operation. It is the result of a {@linkcode format} and {@linkcode modify} operation. * It consist of one or more edits describing insertions, replacements or removals of text segments. * * The offsets of the edits refer to the original state of the document. * * No two edits change or remove the same range of text in the original document. * * Multiple edits can have the same offset if they are multiple inserts, or an insert followed by a remove or replace. * * The order in the array defines which edit is applied first. * To apply an edit result use {@linkcode applyEdits}. * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data. */ export type EditResult = Edit[]; /** * Represents a text modification */ export interface Edit { /** * The start offset of the modification. */ offset: number; /** * The length of the modification. Must not be negative. Empty length represents an *insert*. */ length: number; /** * The new content. Empty content represents a *remove*. */ content: string; } /** * A text range in the document */ export interface Range { /** * The start offset of the range. */ offset: number; /** * The length of the range. Must not be negative. */ length: number; } /** * Options used by {@linkcode format} when computing the formatting edit operations */ export interface FormattingOptions { /** * If indentation is based on spaces (`insertSpaces` = true), then what is the number of spaces that make an indent? */ tabSize: number; /** * Is indentation based on spaces? */ insertSpaces: boolean; /** * The default 'end of line' character */ eol: string; } /** * Options used by {@linkcode modify} when computing the modification edit operations */ export interface ModificationOptions { /** * Formatting options. If undefined, the newly inserted code will be inserted unformatted. */ formattingOptions?: FormattingOptions; /** * Default false. If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then * {@linkcode modify} will insert a new item at that location instead of overwriting its contents. */ isArrayInsertion?: boolean; /** * Optional function to define the insertion index given an existing list of properties. */ getInsertionIndex?: (properties: string[]) => number; } ``` License ------- (MIT License) Copyright 2018, Microsoft --- END ORIGINAL BYTES --- ================================================================ lightningcss@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz Locked integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz Locked integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-android-arm64@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz Locked integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-android-arm64@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz Locked integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-darwin-arm64@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz Locked integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-darwin-arm64@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz Locked integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-darwin-x64@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz Locked integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-darwin-x64@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz Locked integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-freebsd-x64@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz Locked integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-freebsd-x64@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz Locked integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm-gnueabihf@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz Locked integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm-gnueabihf@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz Locked integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm64-gnu@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz Locked integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm64-gnu@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz Locked integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm64-musl@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz Locked integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-arm64-musl@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz Locked integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-x64-gnu@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz Locked integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-x64-gnu@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz Locked integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-x64-musl@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz Locked integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-linux-x64-musl@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz Locked integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-win32-arm64-msvc@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz Locked integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-win32-arm64-msvc@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz Locked integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-win32-x64-msvc@1.32.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz Locked integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ lightningcss-win32-x64-msvc@1.33.0 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz Locked integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5eba353fe5076ac3432177f8ab1cf75e3afcd0584251e37c3bfead5f447d040e; bytes: 15648 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ linebreak@1.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/linebreak/-/linebreak-1.1.0.tgz Locked integrity: sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: cf22b8198f0886a8d4626121579114f23141070e1fceab02ab3c1c361e163440; bytes: 1077 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2014-present Devon Govett 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 70cb10290c149c8027cd1063313335bc450e3869185158d2ed178837ea8a99c7; bytes: 2556 --- BEGIN ORIGINAL BYTES --- # linebreak An implementation of the Unicode Line Breaking Algorithm (UAX #14) > Line breaking, also known as word wrapping, is the process of breaking a section of text into lines such that it will fit in the > available width of a page, window or other display area. The Unicode Line Breaking Algorithm performs part of this process. > Given an input text, it produces a set of positions called "break opportunities" that are appropriate points to begin a new line. > The selection of actual line break positions from the set of break opportunities is not covered by the Unicode Line Breaking Algorithm, > but is in the domain of higher level software with knowledge of the available width and the display size of the text. This is a JavaScript implementation of the [Unicode Line Breaking Algorithm](http://www.unicode.org/reports/tr14/#SampleCode) for Node.js (and browsers I guess). Currently supports Unicode version 13. It is used by [PDFKit](http://github.com/devongovett/pdfkit/) for line wrapping text in PDF documents, but since the algorithm knows nothing about the actual visual appearance or layout of text, it could be used for other things as well. ## Installation You can install via npm npm install linebreak ## Example ```javascript var LineBreaker = require('linebreak'); var lorem = 'lorem ipsum...'; var breaker = new LineBreaker(lorem); var last = 0; var bk; while (bk = breaker.nextBreak()) { // get the string between the last break and this one var word = lorem.slice(last, bk.position); console.log(word); // you can also check bk.required to see if this was a required break... if (bk.required) { console.log('\n\n'); } last = bk.position; } ``` ## Development Notes In order to use the library, you shouldn't need to know this, but if you're interested in contributing or fixing bugs, these things might be of interest. * The `src/classes.js` file is automatically generated from `LineBreak.txt` in the Unicode database by `src/generate_data.js`. It should be rare that you need to run this, but you may if, for instance, you want to change the Unicode version. * You can run the tests using `npm test`. They are written using `mocha`, and generated from `LineBreakTest.txt` from the Unicode database, which is included in the repository for performance reasons while running them. About 50 of the over 7600 tests are currently skipped due to implementation differences. It appears that some of the tests may be wrong or use different tailoring from the spec. ## License MIT --- END ORIGINAL BYTES --- ================================================================ lru-cache@11.5.3 Declared package license: BlueOak-1.0.0 Published archive: https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz Locked integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 8a1af140fdfbf5afd3df27f7e662f989c5b963a300020dfafce42033cae9e004; bytes: 1552 --- BEGIN ORIGINAL BYTES --- # Blue Oak Model License Version 1.0.0 ## Purpose This license gives everyone as much permission to work with this software as possible, while protecting contributors from liability. ## Acceptance In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow. ## Copyright Each contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it. ## Notices You must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license or a link to . ## Excuse If anyone notifies you in writing that you have not complied with [Notices](#notices), you can keep your license by taking all practical steps to comply within 30 days after the notice. If you do not do so, your license ends immediately. ## Patent Each contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license. ## Reliability No contributor can revoke this license. ## No Liability ***As far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim.*** --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 9ce0167d06ee43ab4fcab0d76b71f515da53bcf70c40b0b80129c987372fc13e; bytes: 15978 --- BEGIN ORIGINAL BYTES --- # lru-cache A cache object that deletes the least-recently-used items. Specify a max number of the most recently used items that you want to keep, and this cache will keep that many of the most recently accessed items. This is not primarily a TTL cache, and does not make strong TTL guarantees. There is no preemptive pruning of expired items by default, but you _may_ set a TTL on the cache or on a single `set`. If you do so, it will treat expired items as missing, and delete them when fetched. If you are more interested in TTL caching than LRU caching, check out [@isaacs/ttlcache](http://npm.im/@isaacs/ttlcache). As of version 7, this is one of the most performant LRU implementations available in JavaScript, and supports a wide diversity of use cases. However, note that using some of the features will necessarily impact performance, by causing the cache to have to do more work. See the "Performance" section below. ## Installation ```bash npm install lru-cache --save ``` ## Usage ```js // hybrid module, either works import { LRUCache } from 'lru-cache' // or: const { LRUCache } = require('lru-cache') // or in minified form for web browsers: import { LRUCache } from 'http://unpkg.com/lru-cache@9/dist/mjs/index.min.mjs' // At least one of 'max', 'ttl', or 'maxSize' is required, to prevent // unsafe unbounded storage. // // In most cases, it's best to specify a max for performance, so all // the required memory allocation is done up-front. // // All the other options are optional, see the sections below for // documentation on what each one does. Most of them can be // overridden for specific items in get()/set() const options = { max: 500, // for use with tracking overall storage size maxSize: 5000, sizeCalculation: (value, key) => { return 1 }, // for use when you need to clean up something when objects // are evicted from the cache dispose: (value, key, reason) => { freeFromMemoryOrWhatever(value) }, // for use when you need to know that an item is being inserted // note that this does NOT allow you to prevent the insertion, // it just allows you to know about it. onInsert: (value, key, reason) => { logInsertionOrWhatever(key, value) }, // how long to live in ms ttl: 1000 * 60 * 5, // return stale items before removing from cache? allowStale: false, updateAgeOnGet: false, updateAgeOnHas: false, // async method to use for cache.fetch(), for // stale-while-revalidate type of behavior fetchMethod: async (key, staleValue, { options, signal, context }) => {}, } const cache = new LRUCache(options) cache.set('key', 'value') cache.get('key') // "value" // non-string keys ARE fully supported // but note that it must be THE SAME object, not // just a JSON-equivalent object. var someObject = { a: 1 } cache.set(someObject, 'a value') // Object keys are not toString()-ed cache.set('[object Object]', 'a different value') assert.equal(cache.get(someObject), 'a value') // A similar object with same keys/values won't work, // because it's a different object identity assert.equal(cache.get({ a: 1 }), undefined) cache.clear() // empty the cache ``` If you put more stuff in the cache, then less recently used items will fall out. That's what an LRU cache is. For full description of the API and all options, please see [the LRUCache typedocs](https://isaacs.github.io/node-lru-cache/) ## Storage Bounds Safety This implementation aims to be as flexible as possible, within the limits of safe memory consumption and optimal performance. At initial object creation, storage is allocated for `max` items. If `max` is set to zero, then some performance is lost, and item count is unbounded. Either `maxSize` or `ttl` _must_ be set if `max` is not specified. If `maxSize` is set, then this creates a safe limit on the maximum storage consumed, but without the performance benefits of pre-allocation. When `maxSize` is set, every item _must_ provide a size, either via the `sizeCalculation` method provided to the constructor, or via a `size` or `sizeCalculation` option provided to `cache.set()`. The size of every item _must_ be a positive integer. If neither `max` nor `maxSize` are set, then `ttl` tracking must be enabled. Note that, even when tracking item `ttl`, items are _not_ preemptively deleted when they become stale, unless `ttlAutopurge` is enabled. Instead, they are only purged the next time the key is requested. Thus, if `ttlAutopurge`, `max`, and `maxSize` are all not set, then the cache will potentially grow unbounded. In this case, a warning is printed to standard error. Future versions may require the use of `ttlAutopurge` if `max` and `maxSize` are not specified. If you truly wish to use a cache that is bound _only_ by TTL expiration, consider using a `Map` object, and calling `setTimeout` to delete entries when they expire. It will perform much better than an LRU cache. Here is an implementation you may use, under the same [license](./LICENSE) as this package: ```js // a storage-unbounded ttl cache that is not an lru-cache const cache = { data: new Map(), timers: new Map(), set: (k, v, ttl) => { if (cache.timers.has(k)) { clearTimeout(cache.timers.get(k)) } cache.timers.set( k, setTimeout(() => cache.delete(k), ttl), ) cache.data.set(k, v) }, get: k => cache.data.get(k), has: k => cache.data.has(k), delete: k => { if (cache.timers.has(k)) { clearTimeout(cache.timers.get(k)) } cache.timers.delete(k) return cache.data.delete(k) }, clear: () => { cache.data.clear() for (const v of cache.timers.values()) { clearTimeout(v) } cache.timers.clear() }, } ``` If that isn't to your liking, check out [@isaacs/ttlcache](http://npm.im/@isaacs/ttlcache). ## Storing Undefined Values This cache never stores undefined values, as `undefined` is used internally in a few places to indicate that a key is not in the cache. You may call `cache.set(key, undefined)`, but this is just an alias for `cache.delete(key)`. Note that this has the effect that `cache.has(key)` will return _false_ after setting it to undefined. ```js cache.set(myKey, undefined) cache.has(myKey) // false! ``` If you need to track `undefined` values, and still note that the key is in the cache, an easy workaround is to use a sigil object of your own. ```js import { LRUCache } from 'lru-cache' const undefinedValue = Symbol('undefined') const cache = new LRUCache(...) const mySet = (key, value) => cache.set(key, value === undefined ? undefinedValue : value) const myGet = (key, value) => { const v = cache.get(key) return v === undefinedValue ? undefined : v } ``` ## Tracing and Observability Most methods can accept a `status` option, which is an [`LRUCache.Status`](https://isaacs.github.io/node-lru-cache/interfaces/LRUCache.LRUCache.Status.html) object that will be decorated along the operation with indications about what was done and why. Additionally, this library is instrumented using the [`node:diagnostics_channel`](https://nodejs.org/api/diagnostics_channel.html) module on Node and other platforms that support it. In order to get diagnostics metrics, listen on the `channel('lru-cache:metrics')`. To get Tracing Channel traces, subscribe to the `tracingChannel('lru-cache')`. The [`LRUCache.Status`](https://isaacs.github.io/node-lru-cache/interfaces/LRUCache.LRUCache.Status.html) objects will be provided as the message context to those channel listeners. For example, you could do the following to get comprehensive information about every LRUCache instance in your application: ```ts import { tracingChannel, subscribe } from 'node:diagnostics_channel' subscribe('lru-cache:metrics', (message, name) => { // name will always be 'lru-cache:metrics' // message will be the LRUCache.Status object for whatever // synchronous operation was performed. console.error('LRUCache Metrics', message) }) tracingChannel('lru-cache').subscribe({ start: status => { // a traced operation is starting }, asyncStart: status => { // an async traced operation is starting }, asyncEnd: status => { // an async traced operation is ending } error: status => { // a traced operation failed }, end: status => { // a traced operation is complete }, }) ``` The async `cache.fetch()` and `cache.forceFetch` methods are covered by `tracingChannels`. All the other operations are covered by the `lru-cache:metrics` channel, because they are strictly synchronous, and thus don't have an asynchronous lifecycle to track. Note that using `status` objects or using `node:diagnostics_channel` listeners _will_ impose a modest performance penalty. Creating data objects is not ever free; do not believe anyone who tells you otherwise. But it is as small as possible. ### Platform Compatibility Caveat Not all platforms support the `node:diagnostics_channel` module. Currently, this is only available in Node, Bun, and Deno, and some edge computing platforms that provide a Node compatibility layer. To work around this, if you are loading in a non-Node environment, the package.json exports will direct your module loader to pull in a version that starts out with a dummy implementation, then does a conditional dynamic `import` of the `node:diagnostics_channel` module, and then swaps out those dummy objects with the real thing if it succeeds. This means that cache metrics and tracing channels started in the first load-time tick of your application will _not_ be covered, except in environments that load using the `require` import condition, or both the `node` and `esm` import conditions together. Top-level await _could_ be used to remove this caveat, but that feature is dead on arrival, unfortunately. See [#397](https://github.com/isaacs/node-lru-cache/issues/397) and [#398](https://github.com/isaacs/node-lru-cache/issues/398) for more details. ## Performance As of April 2026, version 11 of this library is one of the most performant LRU cache implementations in JavaScript. Benchmarks can be extremely difficult to get right. In particular, the performance of set/get/delete operations on objects will vary _wildly_ depending on the type of key used. V8 is highly optimized for objects with keys that are short strings, especially integer numeric strings. Thus any benchmark which tests _solely_ using numbers as keys will tend to find that an object-based approach performs the best. Note that coercing _anything_ to strings to use as object keys is unsafe, unless you can be 100% certain that no other type of value will be used. For example: ```js const myCache = {} const set = (k, v) => (myCache[k] = v) const get = k => myCache[k] set({}, 'please hang onto this for me') set('[object Object]', 'oopsie') ``` Also beware of "Just So" stories regarding performance. Garbage collection of large (especially: deep) object graphs can be incredibly costly, with several "tipping points" where it increases exponentially. As a result, putting that off until later can make it much worse, and less predictable. If a library performs well, but only in a scenario where the object graph is kept shallow, then that won't help you if you are using large objects as keys. In general, when attempting to use a library to improve performance (such as a cache like this one), it's best to choose an option that will perform well in the sorts of scenarios where you'll actually use it. This library is optimized for repeated gets and minimizing eviction time, since that is the expected need of a LRU. Set operations are somewhat slower on average than a few other options, in part because of that optimization. It is assumed that you'll be caching some costly operation, ideally as rarely as possible, so optimizing set over get would be unwise. If performance matters to you: 1. If it's at all possible to use small integer values as keys, and you can guarantee that no other types of values will be used as keys, then do that, and use a cache such as [lru-fast](https://npmjs.com/package/lru-fast), or [mnemonist's LRUCache](https://yomguithereal.github.io/mnemonist/lru-cache) which uses an Object as its data store. 2. Failing that, if you can use short non-numeric strings (ie, less than 256 characters) as your keys, and you do not need any of the other features of this library, use [mnemonist's LRUCache](https://yomguithereal.github.io/mnemonist/lru-cache). 3. If the types of your keys will be anything else, especially long strings, strings that look like floats, objects, or some mix of types, or if you aren't sure, then this library will work well for you. If you do not need the features that this library provides (like asynchronous fetching, a variety of TTL staleness options, and so on), then [mnemonist's LRUMap](https://yomguithereal.github.io/mnemonist/lru-map) is also a very good option, and just slightly faster than this module (since it does considerably less). 4. Do not use a `dispose` function, size tracking, or especially ttl behavior or observability features, unless absolutely needed. These features are convenient, and necessary in some use cases, and every attempt has been made to make the performance impact minimal, but it isn't nothing. ## Testing When writing tests that involve TTL-related functionality, note that this module creates an internal reference to the global `performance` or `Date` objects at import time. If you import it statically at the top level, those references cannot be mocked or overridden in your test environment. To avoid this, dynamically import the package within your tests so that the references are captured after your mocks are applied. For example: ```ts // ❌ Not recommended import { LRUCache } from 'lru-cache' // mocking timers, e.g. jest.useFakeTimers() // ✅ Recommended for TTL tests // mocking timers, e.g. jest.useFakeTimers() const { LRUCache } = await import('lru-cache') ``` This ensures that your mocked timers or time sources are respected when testing TTL behavior. Additionally, you can pass in a `perf` option when creating your LRUCache instance. This option accepts any object with a `now` method that returns a number. For example, this would be a very bare-bones time-mocking system you could use in your tests, without any particular test framework: ```ts import { LRUCache } from 'lru-cache' let myClockTime = 0 const cache = new LRUCache({ max: 10, ttl: 1000, perf: { now: () => myClockTime, }, }) // run tests, updating myClockTime as needed ``` ## Breaking Changes in Version 7 This library changed to a different algorithm and internal data structure in version 7, yielding significantly better performance, albeit with some subtle changes as a result. If you were relying on the internals of LRUCache in version 6 or before, it probably will not work in version 7 and above. ## Breaking Changes in Version 8 - The `fetchContext` option was renamed to `context`, and may no longer be set on the cache instance itself. - Rewritten in TypeScript, so pretty much all the types moved around a lot. - The AbortController/AbortSignal polyfill was removed. For this reason, **Node version 16.14.0 or higher is now required**. - Internal properties were moved to actual private class properties. - Keys and values must not be `null` or `undefined`. - Minified export available at `'lru-cache/min'`, for both CJS and MJS builds. ## Breaking Changes in Version 9 - Named export only, no default export. - AbortController polyfill returned, albeit with a warning when used. ## Breaking Changes in Version 10 - `cache.fetch()` return type is now `Promise` instead of `Promise`. This is an irrelevant change practically speaking, but can require changes for TypeScript users. For more info, see the [change log](CHANGELOG.md). --- END ORIGINAL BYTES --- ================================================================ magic-string@0.30.21 Declared package license: MIT Published archive: https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz Locked integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 1cbe51b907662f6cb1492b16c359384a595180bf0e4d101603ed525e75c4e484; bytes: 1051 --- BEGIN ORIGINAL BYTES --- Copyright 2018 Rich Harris 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: b50a551dac4fc247382d78b52b8c78a797d914c51bee6df30de2621eac18847d; bytes: 12608 --- BEGIN ORIGINAL BYTES --- # magic-string build status npm version license Suppose you have some source code. You want to make some light modifications to it - replacing a few characters here and there, wrapping it with a header and footer, etc - and ideally you'd like to generate a [source map](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/) at the end of it. You've thought about using something like [recast](https://github.com/benjamn/recast) (which allows you to generate an AST from some JavaScript, manipulate it, and reprint it with a sourcemap without losing your comments and formatting), but it seems like overkill for your needs (or maybe the source code isn't JavaScript). Your requirements are, frankly, rather niche. But they're requirements that I also have, and for which I made magic-string. It's a small, fast utility for manipulating strings and generating sourcemaps. ## Installation magic-string works in both node.js and browser environments. For node, install with npm: ```bash npm i magic-string ``` To use in browser, grab the [magic-string.umd.js](https://unpkg.com/magic-string/dist/magic-string.umd.js) file and add it to your page: ```html ``` (It also works with various module systems, if you prefer that sort of thing - it has a dependency on [vlq](https://github.com/Rich-Harris/vlq).) ## Usage These examples assume you're in node.js, or something similar: ```js import MagicString from 'magic-string'; import fs from 'fs'; const s = new MagicString('problems = 99'); s.update(0, 8, 'answer'); s.toString(); // 'answer = 99' s.update(11, 13, '42'); // character indices always refer to the original string s.toString(); // 'answer = 42' s.prepend('var ').append(';'); // most methods are chainable s.toString(); // 'var answer = 42;' const map = s.generateMap({ source: 'source.js', file: 'converted.js.map', includeContent: true, }); // generates a v3 sourcemap fs.writeFileSync('converted.js', s.toString()); fs.writeFileSync('converted.js.map', map.toString()); ``` You can pass an options argument: ```js const s = new MagicString(someCode, { // these options will be used if you later call `bundle.addSource( s )` - see below filename: 'foo.js', indentExclusionRanges: [ /*...*/ ], // mark source as ignore in DevTools, see below #Bundling ignoreList: false, // adjust the incoming position - see below offset: 0, }); ``` ## Properties ### s.offset Sets the offset property to adjust the incoming position for the following APIs: `slice`, `update`, `overwrite`, `appendLeft`, `prependLeft`, `appendRight`, `prependRight`, `move`, `reset`, and `remove`. Example usage: ```ts const s = new MagicString('hello world', { offset: 0 }); s.offset = 6; s.slice() === 'world'; ``` ## Methods ### s.addSourcemapLocation( index ) Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is `false` (see below). ### s.append( content ) Appends the specified content to the end of the string. Returns `this`. ### s.appendLeft( index, content ) Appends the specified `content` at the `index` in the original string. If a range _ending_ with `index` is subsequently moved, the insert will be moved with it. Returns `this`. See also `s.prependLeft(...)`. ### s.appendRight( index, content ) Appends the specified `content` at the `index` in the original string. If a range _starting_ with `index` is subsequently moved, the insert will be moved with it. Returns `this`. See also `s.prependRight(...)`. ### s.clone() Does what you'd expect. ### s.generateDecodedMap( options ) Generates a sourcemap object with raw mappings in array form, rather than encoded as a string. See `generateMap` documentation below for options details. Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead. ### s.generateMap( options ) Generates a [version 3 sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). All options are, well, optional: - `file` - the filename where you plan to write the sourcemap - `source` - the filename of the file containing the original source - `includeContent` - whether to include the original content in the map's `sourcesContent` array - `hires` - whether the mapping should be high-resolution. Hi-res mappings map every single character, meaning (for example) your devtools will always be able to pinpoint the exact location of function calls and so on. With lo-res mappings, devtools may only be able to identify the correct line - but they're quicker to generate and less bulky. You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary instead of per character, suitable for string semantics that are separated by words. If sourcemap locations have been specified with `s.addSourcemapLocation()`, they will be used here. The returned sourcemap has two (non-enumerable) methods attached for convenience: - `toString` - returns the equivalent of `JSON.stringify(map)` - `toUrl` - returns a DataURI containing the sourcemap. Useful for doing this sort of thing: ```js code += '\n//# sourceMappingURL=' + map.toUrl(); ``` ### s.hasChanged() Indicates if the string has been changed. ### s.indent( prefix[, options] ) Prefixes each line of the string with `prefix`. If `prefix` is not supplied, the indentation will be guessed from the original content, falling back to a single tab character. Returns `this`. The `options` argument can have an `exclude` property, which is an array of `[start, end]` character ranges. These ranges will be excluded from the indentation - useful for (e.g.) multiline strings. ### s.insertLeft( index, content ) **DEPRECATED** since 0.17 – use `s.appendLeft(...)` instead ### s.insertRight( index, content ) **DEPRECATED** since 0.17 – use `s.prependRight(...)` instead ### s.isEmpty() Returns true if the resulting source is empty (disregarding white space). ### s.locate( index ) **DEPRECATED** since 0.10 – see [#30](https://github.com/Rich-Harris/magic-string/pull/30) ### s.locateOrigin( index ) **DEPRECATED** since 0.10 – see [#30](https://github.com/Rich-Harris/magic-string/pull/30) ### s.move( start, end, index ) Moves the characters from `start` and `end` to `index`. Returns `this`. ### s.overwrite( start, end, content[, options] ) Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in that range. The same restrictions as `s.remove()` apply. Returns `this`. The fourth argument is optional. It can have a `storeName` property — if `true`, the original name will be stored for later inclusion in a sourcemap's `names` array — and a `contentOnly` property which determines whether only the content is overwritten, or anything that was appended/prepended to the range as well. It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content. ### s.prepend( content ) Prepends the string with the specified content. Returns `this`. ### s.prependLeft ( index, content ) Same as `s.appendLeft(...)`, except that the inserted content will go _before_ any previous appends or prepends at `index` ### s.prependRight ( index, content ) Same as `s.appendRight(...)`, except that the inserted content will go _before_ any previous appends or prepends at `index` ### s.replace( regexpOrString, substitution ) String replacement with RegExp or string. The `substitution` parameter supports strings and functions. Returns `this`. ```ts import MagicString from 'magic-string'; const s = new MagicString(source); s.replace('foo', 'bar'); s.replace('foo', (str, index, s) => str + '-' + index); s.replace(/foo/g, 'bar'); s.replace(/(\w)(\d+)/g, (_, $1, $2) => $1.toUpperCase() + $2); ``` The differences from [`String.replace`](<(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace)>): - It will always match against the **original string** - It mutates the magic string state (use `.clone()` to be immutable) ### s.replaceAll( regexpOrString, substitution ) Same as `s.replace`, but replace all matched strings instead of just one. If `regexpOrString` is a regex, then it must have the global (`g`) flag set, or a `TypeError` is thrown. Matches the behavior of the builtin [`String.property.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll). Returns `this`. ### s.remove( start, end ) Removes the characters from `start` to `end` (of the original string, **not** the generated string). Removing the same content twice, or making removals that partially overlap, will cause an error. Returns `this`. ### s.reset( start, end ) Resets the characters from `start` to `end` (of the original string, **not** the generated string). It can be used to restore previously removed characters and discard unwanted changes. ### s.slice( start, end ) Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string. Throws error if the indices are for characters that were already removed. ### s.snip( start, end ) Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed. ### s.toString() Returns the generated string. ### s.trim([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end. Returns `this`. ### s.trimStart([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start. Returns `this`. ### s.trimEnd([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end. Returns `this`. ### s.trimLines() Removes empty lines from the start and end. Returns `this`. ### s.update( start, end, content[, options] ) Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply. Returns `this`. The fourth argument is optional. It can have a `storeName` property — if `true`, the original name will be stored for later inclusion in a sourcemap's `names` array — and an `overwrite` property which defaults to `false` and determines whether anything that was appended/prepended to the range will be overwritten along with the original content. `s.update(start, end, content)` is equivalent to `s.overwrite(start, end, content, { contentOnly: true })`. ## Bundling To concatenate several sources, use `MagicString.Bundle`: ```js const bundle = new MagicString.Bundle(); bundle.addSource({ filename: 'foo.js', content: new MagicString('var answer = 42;'), }); bundle.addSource({ filename: 'bar.js', content: new MagicString('console.log( answer )'), }); // Sources can be marked as ignore-listed, which provides a hint to debuggers // to not step into this code and also don't show the source files depending // on user preferences. bundle.addSource({ filename: 'some-3rdparty-library.js', content: new MagicString('function myLib(){}'), ignoreList: false, // <-- }); // Advanced: a source can include an `indentExclusionRanges` property // alongside `filename` and `content`. This will be passed to `s.indent()` // - see documentation above bundle .indent() // optionally, pass an indent string, otherwise it will be guessed .prepend('(function () {\n') .append('}());'); bundle.toString(); // (function () { // var answer = 42; // console.log( answer ); // }()); // options are as per `s.generateMap()` above const map = bundle.generateMap({ file: 'bundle.js', includeContent: true, hires: true, }); ``` As an alternative syntax, if you a) don't have `filename` or `indentExclusionRanges` options, or b) passed those in when you used `new MagicString(...)`, you can simply pass the `MagicString` instance itself: ```js const bundle = new MagicString.Bundle(); const source = new MagicString(someCode, { filename: 'foo.js', }); bundle.addSource(source); ``` ## License MIT --- END ORIGINAL BYTES --- ================================================================ magic-string@1.4.2 Declared package license: MIT Published archive: https://registry.npmjs.org/magic-string/-/magic-string-1.4.2.tgz Locked integrity: sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 1cbe51b907662f6cb1492b16c359384a595180bf0e4d101603ed525e75c4e484; bytes: 1051 --- BEGIN ORIGINAL BYTES --- Copyright 2018 Rich Harris 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: c96958d465c81a6aad086adfdebefc38c24fe660783249d501c70063ce219807; bytes: 17637 --- BEGIN ORIGINAL BYTES --- # magic-string npm version license Suppose you have some source code. You want to make some light modifications to it - replacing a few characters here and there, wrapping it with a header and footer, etc - and ideally you'd like to generate a [source map](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/) at the end of it. You've thought about using something like [recast](https://github.com/benjamn/recast) (which allows you to generate an AST from some JavaScript, manipulate it, and reprint it with a sourcemap without losing your comments and formatting), but it seems like overkill for your needs (or maybe the source code isn't JavaScript). Your requirements are, frankly, rather niche. But they're requirements that I also have, and for which I made magic-string. It's a small, fast utility for manipulating strings and generating sourcemaps. ## Installation magic-string works in both node.js and browser environments. For node, install with npm: ```bash npm i magic-string ``` magic-string is ESM-only. In browsers, import it from an ESM CDN: ```html ``` ## Usage These examples assume you're in node.js, or something similar: ```js import fs from 'node:fs' import MagicString from 'magic-string' const s = new MagicString('problems = 99') s.update(0, 8, 'answer') s.toString() // 'answer = 99' s.update(11, 13, '42') // character indices always refer to the original string s.toString() // 'answer = 42' s.prepend('var ').append(';') // most methods are chainable s.toString() // 'var answer = 42;' const map = s.generateMap({ source: 'source.js', file: 'converted.js.map', includeContent: true, }) // generates a v3 sourcemap fs.writeFileSync('converted.js', s.toString()) fs.writeFileSync('converted.js.map', map.toString()) ``` You can pass an options argument: ```js const s = new MagicString(someCode, { // these options will be used if you later call `bundle.addSource( s )` - see below filename: 'foo.js', indentExclusionRanges: [ /* ... */ ], // mark source as ignore in DevTools, see below #Bundling ignoreList: false, // adjust the incoming position - see below offset: 0, }) ``` ## Properties ### s.offset Sets the offset property to adjust the incoming position for the following APIs: `slice`, `update`, `overwrite`, `appendLeft`, `prependLeft`, `appendRight`, `prependRight`, `move`, `reset`, and `remove`. Example usage: ```ts const s = new MagicString('hello world', { offset: 0 }) s.offset = 6 s.slice() === 'world' ``` ## Hi-res mappings The `hires` option (passed to `generateMap`/`generateDecodedMap`) controls how granular sourcemap mappings are: - `false` (default) - lo-res mappings. Only one mapping per line, plus any locations added with `s.addSourcemapLocation()`. Quicker to generate and less bulky, but devtools may only be able to identify the correct line, not the exact column. - `true` - hi-res mappings. Every single character gets a mapping, so devtools can always pinpoint the exact location of function calls and so on. - `"boundary"` - semi-hi-res mappings, segmented per word boundary instead of per character. Suitable for string semantics that are separated by words. - `"experimental-range"` - hi-res mappings that use [range mappings](https://github.com/tc39/ecma426/blob/main/proposals/range-mappings.md), a source map extension that can map all positions in a range with fewer mappings than mapping every character individually. This requires support for range mappings in the source map consumer, and the feature is experimental. ## Methods ### s.addSourcemapLocation( index ) Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is `false` (see [Hi-res mappings](#hi-res-mappings)). ### s.append( content ) Appends the specified content to the end of the string. Returns `this`. ### s.appendLeft( index, content ) Appends the specified `content` at the `index` in the original string. If a range _ending_ with `index` is subsequently moved, the insert will be moved with it. Returns `this`. See also `s.prependLeft(...)`. ### s.appendRight( index, content ) Appends the specified `content` at the `index` in the original string. If a range _starting_ with `index` is subsequently moved, the insert will be moved with it. Returns `this`. See also `s.prependRight(...)`. ### s.clone() Does what you'd expect. ### s.generateDecodedMap( options ) Generates a sourcemap object with raw mappings in array form, rather than encoded as a string. See `generateMap` documentation below for options details. Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead. ### s.generateMap( options ) Generates a [version 3 sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). All options are, well, optional: - `file` - the filename where you plan to write the sourcemap - `source` - the filename of the file containing the original source - `includeContent` - whether to include the original content in the map's `sourcesContent` array - `hires` - whether the mapping should be high-resolution. See [Hi-res mappings](#hi-res-mappings) for the available modes. If sourcemap locations have been specified with `s.addSourcemapLocation()`, they will be used here. The returned sourcemap has two (non-enumerable) methods attached for convenience: - `toString` - returns the equivalent of `JSON.stringify(map)` - `toUrl` - returns a DataURI containing the sourcemap. Useful for doing this sort of thing: ```js code += `\n//# sourceMappingURL=${map.toUrl()}` ``` ### s.getIndentString() Returns the indentation string guessed from the original content, falling back to a single tab character. This is the value `s.indent()` uses when no prefix is supplied. ### s.hasChanged() Indicates if the string has been changed. ### s.indent( prefix[, options] ) Prefixes each line of the string with `prefix`. If `prefix` is not supplied, the indentation will be guessed from the original content, falling back to a single tab character. Returns `this`. Lines are counted in the generated string, so content added with `append*`/`prepend*` is indented too, and a line break inside that content starts a new line just like a line break in the original: ```js const s = new MagicString('var a = 1;\nvar b = 2;') s.prependRight(11, 'debugger;\n') s.toString() // 'var a = 1;\ndebugger;\nvar b = 2;' s.indent(' ') s.toString() // ' var a = 1;\n debugger;\n var b = 2;' ``` The `options` argument can have an `exclude` property, which is an array of `[start, end]` character ranges. These ranges will be excluded from the indentation - useful for (e.g.) multiline strings. ### s.isEmpty() Returns true if the resulting source is empty (disregarding white space). ### s.lastChar() Returns the last character of the generated string, or `''` if it is empty. ### s.lastLine() Returns everything after the last newline in the generated string, or the whole string if there is no newline. ### s.length() Returns the length of the generated string, counting only content attached to the original characters. Content that sits outside the string body is not counted, so `s.length()` and `s.toString().length` can disagree: ```js const s = new MagicString('abcde') s.appendLeft(2, '__') s.toString() // 'ab__cde' s.length() // 7 s.prepend('>>') s.toString() // '>>ab__cde' s.length() // still 7 ``` `s.prepend()` and `s.append()` always land outside the body, as do inserts made before the first character or after the last one. ### s.move( start, end, index[, affinity] ) Moves the characters from `start` and `end` to `index`. Returns `this`. `affinity` (`'left'` or `'right'`, defaulting to `'right'`) controls where the range is anchored at `index`: `'right'` inserts it before the content that starts at `index`, `'left'` inserts it after the content that ends at `index`. The two differ only when other content has already been moved to that boundary, mirroring the `appendLeft`/`appendRight` distinction. ### s.overwrite( start, end, content[, options] ) Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in that range. The same restrictions as `s.remove()` apply. Returns `this`. The fourth argument is optional. It can have a `storeName` property — if `true`, the original name will be stored for later inclusion in a sourcemap's `names` array — and a `contentOnly` property which determines whether only the content is overwritten, or anything that was appended/prepended to the range as well. It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content. > [!NOTE] > `overwrite`/`update`/`remove` operate on ranges of the **original** string, so they'll throw (e.g. `cannot overwrite across a split point`, `cannot split a chunk that has already been edited`) when an edit would split a chunk that was previously replaced with non-empty content, or when a replacement crosses moved chunks. If you run into this, or want to chain multiple rounds of edits on a single instance with an auto-combined sourcemap, see [magic-string-stack](https://github.com/antfu/magic-string-stack). ### s.prepend( content ) Prepends the string with the specified content. Returns `this`. ### s.prependLeft ( index, content ) Same as `s.appendLeft(...)`, except that the inserted content will go _before_ any previous appends or prepends at `index` ### s.prependRight ( index, content ) Same as `s.appendRight(...)`, except that the inserted content will go _before_ any previous appends or prepends at `index` ### s.replace( regexpOrString, substitution ) String replacement with RegExp or string. The `substitution` parameter supports strings and functions. Returns `this`. ```ts import MagicString from 'magic-string' const s = new MagicString(source) s.replace('foo', 'bar') s.replace('foo', (str, index, s) => `${str}-${index}`) s.replace(/foo/g, 'bar') s.replace(/(\w)(\d+)/g, (_, $1, $2) => $1.toUpperCase() + $2) ``` The differences from [`String.replace`](<(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace)>): - It will always match against the **original string** - It mutates the magic string state (use `.clone()` to be immutable) - A zero-length match spans no characters, so there is nothing to overwrite - the substitution is inserted at the matched position, as if by `s.appendRight(index, substitution)` ### s.replaceAll( regexpOrString, substitution ) Same as `s.replace`, but replace all matched strings instead of just one. If `regexpOrString` is a regex, then it must have the global (`g`) flag set, or a `TypeError` is thrown. Matches the behavior of the builtin [`String.property.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll). Returns `this`. ### s.remove( start, end ) Removes the characters from `start` to `end` (of the original string, **not** the generated string). Content appended or prepended at positions strictly inside the range is removed along with it, while content attached at `start` or `end` is preserved — use `s.overwrite( start, end, '' )` to remove the range including its edge inserts. Repeated removals and removals with partially overlapping ranges are allowed. Returns `this`. ### s.reset( start, end ) Resets the characters from `start` to `end` (of the original string, **not** the generated string). It can be used to restore previously removed characters and discard unwanted changes. ### s.slice( start, end ) Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string. Throws error if the indices are for characters that were already removed. ### s.snip( start, end ) Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed. ### s.toString() Returns the generated string. ### s.trim([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end. Returns `this`. ### s.trimStart([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start. Returns `this`. ### s.trimEnd([ charType ]) Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end. Returns `this`. ### s.trimLines() Removes empty lines from the start and end. Returns `this`. ### s.update( start, end, content[, options] ) Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply. Returns `this`. The fourth argument is optional. It can have a `storeName` property — if `true`, the original name will be stored for later inclusion in a sourcemap's `names` array — and an `overwrite` property which defaults to `false` and determines whether anything that was appended/prepended to the range will be overwritten along with the original content. `s.update(start, end, content)` is equivalent to `s.overwrite(start, end, content, { contentOnly: true })`. ## Bundling To concatenate several sources, use `Bundle`: ```js import MagicString, { Bundle } from 'magic-string' const bundle = new Bundle() bundle.addSource({ filename: 'foo.js', content: new MagicString('var answer = 42;'), }) bundle.addSource({ filename: 'bar.js', content: new MagicString('console.log( answer )'), }) // Sources can be marked as ignore-listed, which provides a hint to debuggers // to not step into this code and also don't show the source files depending // on user preferences. bundle.addSource({ filename: 'some-3rdparty-library.js', content: new MagicString('function myLib(){}'), ignoreList: false, // <-- }) // Advanced: a source can include an `indentExclusionRanges` property // alongside `filename` and `content`. This will be passed to `s.indent()` // - see documentation above bundle .indent() // optionally, pass an indent string, otherwise it will be guessed .prepend('(function () {\n') .append('}());') bundle.toString() // (function () { // var answer = 42; // console.log( answer ); // }()); // options are as per `s.generateMap()` above const map = bundle.generateMap({ file: 'bundle.js', includeContent: true, hires: true, }) ``` `includeContent` can also be a function that receives `{ filename, content }` for each source and returns whether to include it, allowing per-source control: ```js bundle.generateMap({ includeContent: source => !source.filename.startsWith('http'), }) ``` As an alternative syntax, if you a) don't have `filename` or `indentExclusionRanges` options, or b) passed those in when you used `new MagicString(...)`, you can simply pass the `MagicString` instance itself: ```js const bundle = new Bundle() const source = new MagicString(someCode, { filename: 'foo.js', }) bundle.addSource(source) ``` ### new Bundle([ options ]) The constructor takes an optional options object: - `intro` (default `''`) is placed at the start of the bundle, before the first source. - `separator` (default `'\n'`) is placed between sources. ```js const bundle = new Bundle({ intro: '/* my-bundle.js */\n', separator: '\n\n', }) bundle.addSource(new MagicString('var answer = 42;')) bundle.addSource(new MagicString('console.log(answer);')) bundle.toString() // /* my-bundle.js */ // var answer = 42; // // console.log(answer); ``` A source can override the bundle separator with its own `separator` property: ```js const bundle = new Bundle({ separator: '\n\n' }) bundle.addSource(new MagicString('var answer = 42;')) bundle.addSource({ content: new MagicString('console.log(answer);'), separator: '\n', }) bundle.toString() // var answer = 42; // console.log(answer); ``` `bundle.append( str[, options ])` takes the same options object but reads only `separator`, which defaults to `''` rather than to the bundle separator: ```js const bundle = new Bundle({ separator: '\n\n' }) bundle.addSource(new MagicString('a')) bundle.append('b') bundle.toString() // 'ab' bundle.append('c', { separator: '\n' }) bundle.toString() // 'ab\nc' ``` ### bundle.toMagicString() Flattens the bundle into a single `MagicString`, so the concatenated result can be processed further with the full `MagicString` API: ```js const bundle = new Bundle() bundle.addSource(new MagicString('var answer = 42;')) bundle.addSource(new MagicString('console.log(answer);')) const s = bundle.toMagicString() s.toString() // 'var answer = 42;\nconsole.log(answer);' // now use any MagicString method on the combined result s.prepend('(function () {\n').append('\n}());') ``` The returned string's `original` is the concatenation of every source's `original`, and all existing edits, inserts, intros, outros and separators are preserved, so `s.toString()` equals `bundle.toString()` and `s.generateMap()` maps back to that combined original. Because a `MagicString` maps to a single source, per-source `filename`s are not carried over - call `bundle.generateMap()` before flattening if you need the multi-source mapping. ## License MIT --- END ORIGINAL BYTES --- ================================================================ magicast@0.5.5 Declared package license: MIT Published archive: https://registry.npmjs.org/magicast/-/magicast-0.5.5.tgz Locked integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7917b04272f3f7c11f9fb89716742747a77f5906ebe5a81e70cbd090b8c7f961; bytes: 1120 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa and Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 0a5898e0b79196abf2589b06a0f4f34b04f23a170db430bace0aff4ed5137dc3; bytes: 5958 --- BEGIN ORIGINAL BYTES --- # 🧀 Magicast [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] [![JSDocs][jsdocs-src]][jsdocs-href] Programmatically modify JavaScript and TypeScript source codes with a simplified, elegant and familiar syntax. Built on top of the [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) parsed by [recast](https://github.com/benjamn/recast) and [babel](https://babeljs.io/). ❯ 🧙🏼 **Magical** modify a JS/TS file and write back magically just like JSON!
❯ 🔀 **Exports/Import** manipulate module's imports and exports at ease
❯ 💼 **Function Arguments** easily manipulate arguments passed to a function call, like `defineConfig()`
❯ 🎨 **Smart Formatting** preseves the formatting style (quotes, tabs, etc.) from the original code
❯ 🧑‍💻 **Readable** get rid of the complexity of AST manipulation and make your code super readable
## Install Install npm package: ```sh yarn add --dev magicast npm install -D magicast pnpm add -D magicast ``` Import utilities: ```js import { builders, createNode, generateCode, parseModule } from "magicast"; ``` ## Examples **Example:** Modify a file: `config.js`: ```js export default { foo: ["a"], }; ``` Code to modify and append `b` to `foo` prop of defaultExport: ```js import { loadFile, writeFile } from "magicast"; const mod = await loadFile("config.js"); mod.exports.default.foo.push("b"); await writeFile(mod, "config.js"); ``` Updated `config.js`: ```js export default { foo: ["a", "b"], }; ``` **Example:** Directly use AST utils: ```js import { generateCode, parseModule } from "magicast"; // Parse to AST const mod = parseModule(`export default { }`); // Ensure foo is an array mod.exports.default.foo ||= []; // Add a new array member mod.exports.default.foo.push("b"); mod.exports.default.foo.unshift("a"); // Generate code const { code, map } = generateCode(mod); ``` Generated code: ```js export default { foo: ["a", "b"], }; ``` **Example:** Get the AST directly: ```js import { generateCode, parseModule } from "magicast"; const mod = parseModule(`export default { }`); const ast = mod.exports.default.$ast; // do something with ast ``` **Example:** Function arguments: ```js import { generateCode, parseModule } from "magicast"; const mod = parseModule(`export default defineConfig({ foo: 'bar' })`); // Support for both bare object export and `defineConfig` wrapper const options = mod.exports.default.$type === "function-call" ? mod.exports.default.$args[0] : mod.exports.default; console.log(options.foo); // bar ``` **Example:** Create a function call: ```js import { builders, generateCode, parseModule } from "magicast"; const mod = parseModule(`export default {}`); const options = (mod.exports.default.list = builders.functionCall( "create", [1, 2, 3], )); console.log(mod.generateCode()); // export default { list: create([1, 2, 3]) } ``` ## Notes As JavaScript is a very dynamic language, you should be aware that Magicast's convention **CAN NOT cover all possible cases**. Magicast serves as a simple and maintainable interface to update static-ish JavaScript code. When interacting with Magicast node, be aware that every option might have chance to throw an error depending on the input code. We recommend to always wrap the code in a `try/catch` block (even better to do some defensive coding), for example: ```ts import { loadFile, writeFile } from "magicast"; function updateConfig() { try { const mod = await loadFile("config.js"); mod.exports.default.foo.push("b"); await writeFile(mod); } catch { console.error("Unable to update config.js"); console.error( "Please update it manually with the following instructions: ...", ); // handle error } } ``` ## Browser / Worker Support The main export of `magicast` contains filesystem utilities. If you want to use it in a browser or worker, import from `magicast/core` instead. ```js import { parseModule } from "magicast/core"; ``` ## High Level Helpers We also experiment to provide a few high level helpers to make common tasks easier. You could import them from `magicast/helpers`. They might be moved to a separate package in the future. ```js import { addNuxtModule, addVitePlugin, deepMergeObject, // ... } from "magicast/helpers"; ``` We recommend to check out the [source code](./src/helpers) and [test cases](./test/helpers) for more details. ## Development - Clone this repository - Install latest LTS version of [Node.js](https://nodejs.org/en/) - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run interactive tests using `pnpm dev` ## License Made with 💛 Published under [MIT License](./LICENSE). [npm-version-src]: https://img.shields.io/npm/v/magicast?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/magicast [npm-downloads-src]: https://img.shields.io/npm/dm/magicast?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/magicast [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/magicast/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/magicast [bundle-src]: https://img.shields.io/bundlephobia/minzip/magicast?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=magicast [license-src]: https://img.shields.io/github/license/unjs/magicast.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/magicast/blob/main/LICENSE [jsdocs-src]: https://img.shields.io/badge/jsDocs.io-reference-18181B?style=flat&colorA=18181B&colorB=F0DB4F [jsdocs-href]: https://www.jsdocs.io/package/magicast --- END ORIGINAL BYTES --- ================================================================ marked@18.0.14 Declared package license: MIT Published archive: https://registry.npmjs.org/marked/-/marked-18.0.14.tgz Locked integrity: sha512-mBHK6FBHuBAlhgRe88w9F0O1AbwwXJUcQibUbC/QcdTbVGAD7aWza+xt3N6oT/jCZx3/OMeS+8rnuiHZcQ9s7A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 8e3a3f82f59a60958f56ca08f445647c32a4733dc7ca6c2c46f6eb898471ab9c; bytes: 2942 --- BEGIN ORIGINAL BYTES --- # License information ## Contribution License Agreement If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. `` ## Marked Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/) Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/) 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. ## Markdown Copyright © 2004, John Gruber http://daringfireball.net/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: b2f958f05b55e66a736a99745c3bb2629793867b39c05f1bb8532722dddabd54; bytes: 3505 --- BEGIN ORIGINAL BYTES --- # Marked [![npm](https://badgen.net/npm/v/marked)](https://www.npmjs.com/package/marked) [![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked) [![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked) [![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions) [![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked) [![inspect.software](https://raw.githubusercontent.com/inspect-software/badges/main/v1/m/markedjs/marked.svg)](https://inspect.software/software/markedjs/marked) - ⚡ built for speed - ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time - ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications - 🛠️ easily adaptable with [custom extensions](https://marked.js.org/using_advanced#extensions) - 🌐 works in a browser, on a server, or from a command line interface (CLI) ## Demo Check out the [demo page](https://marked.js.org/demo/) to see Marked in action ⛹️ ## Docs Our [documentation pages](https://marked.js.org) are also rendered using marked 💯 Also read about: * [Options](https://marked.js.org/using_advanced) * [Extensibility](https://marked.js.org/using_pro) ## Compatibility **Node.js:** Only [current and LTS](https://nodejs.org/en/about/releases/) Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time. **Browser:** [Baseline Widely Available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility) ## Installation **CLI:** ```sh npm install -g marked ``` **In-browser:** ```sh npm install marked ``` ## Usage ### Warning: 🚨 Marked does not [sanitize](https://marked.js.org/using_advanced#options) the output HTML. Please use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the *output* HTML! 🚨 ``` DOMPurify.sanitize(marked.parse(``)); ``` **CLI** ``` bash # Example with stdin input $ marked -o hello.html hello world ^D $ cat hello.html

hello world

``` ```bash # Print all options $ marked --help ``` **Node.js** ```js import { marked } from 'marked'; const html = marked.parse('# Marked in Node.js'); console.log(html); ``` **Browser** ```html Marked in the browser
``` or import esm module ```html ``` ## License Copyright (c) 2018+, MarkedJS. (MIT License) Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License) --- END ORIGINAL BYTES --- ================================================================ mdast-util-to-hast@13.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz Locked integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 4f6bbba1ca02c3193bd2837075fabb0058b7d4d97d0f5e4bf75d2f3fc71c1b9d; bytes: 38437 --- BEGIN ORIGINAL BYTES --- # mdast-util-to-hast [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [mdast][] utility to transform to [hast][]. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`defaultFootnoteBackContent(referenceIndex, rereferenceIndex)`](#defaultfootnotebackcontentreferenceindex-rereferenceindex) * [`defaultFootnoteBackLabel(referenceIndex, rereferenceIndex)`](#defaultfootnotebacklabelreferenceindex-rereferenceindex) * [`defaultHandlers`](#defaulthandlers) * [`toHast(tree[, options])`](#tohasttree-options) * [`FootnoteBackContentTemplate`](#footnotebackcontenttemplate) * [`FootnoteBackLabelTemplate`](#footnotebacklabeltemplate) * [`Handler`](#handler) * [`Handlers`](#handlers) * [`Options`](#options) * [`Raw`](#raw) * [`State`](#state) * [Examples](#examples) * [Example: supporting HTML in markdown naïvely](#example-supporting-html-in-markdown-naïvely) * [Example: supporting HTML in markdown properly](#example-supporting-html-in-markdown-properly) * [Example: footnotes in languages other than English](#example-footnotes-in-languages-other-than-english) * [Example: supporting custom nodes](#example-supporting-custom-nodes) * [Algorithm](#algorithm) * [Default handling](#default-handling) * [Fields on nodes](#fields-on-nodes) * [CSS](#css) * [Syntax tree](#syntax-tree) * [Nodes](#nodes) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a utility that takes an [mdast][] (markdown) syntax tree as input and turns it into a [hast][] (HTML) syntax tree. ## When should I use this? This project is useful when you want to deal with ASTs and turn markdown to HTML. The hast utility [`hast-util-to-mdast`][hast-util-to-mdast] does the inverse of this utility. It turns HTML into markdown. The remark plugin [`remark-rehype`][remark-rehype] wraps this utility to also turn markdown to HTML at a higher-level (easier) abstraction. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install mdast-util-to-hast ``` In Deno with [`esm.sh`][esmsh]: ```js import {toHast} from 'https://esm.sh/mdast-util-to-hast@13' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use Say we have the following `example.md`: ```markdown ## Hello **World**! ``` …and next to it a module `example.js`: ```js import {fs} from 'node:fs/promises' import {toHtml} from 'hast-util-to-html' import {fromMarkdown} from 'mdast-util-from-markdown' import {toHast} from 'mdast-util-to-hast' const markdown = String(await fs.readFile('example.md')) const mdast = fromMarkdown(markdown) const hast = toHast(mdast) const html = toHtml(hast) console.log(html) ``` …now running `node example.js` yields: ```html

Hello World!

``` ## API This package exports the identifiers [`defaultFootnoteBackContent`][api-default-footnote-back-content], [`defaultFootnoteBackLabel`][api-default-footnote-back-label], [`defaultHandlers`][api-default-handlers], and [`toHast`][api-to-hast]. There is no default export. ### `defaultFootnoteBackContent(referenceIndex, rereferenceIndex)` Generate the default content that GitHub uses on backreferences. ###### Parameters * `referenceIndex` (`number`) — index of the definition in the order that they are first referenced, 0-indexed * `rereferenceIndex` (`number`) — index of calls to the same definition, 0-indexed ###### Returns Content (`Array`). ### `defaultFootnoteBackLabel(referenceIndex, rereferenceIndex)` Generate the default label that GitHub uses on backreferences. ###### Parameters * `referenceIndex` (`number`) — index of the definition in the order that they are first referenced, 0-indexed * `rereferenceIndex` (`number`) — index of calls to the same definition, 0-indexed ###### Returns Label (`string`). ### `defaultHandlers` Default handlers for nodes ([`Handlers`][api-handlers]). ### `toHast(tree[, options])` Transform mdast to hast. ###### Parameters * `tree` ([`MdastNode`][mdast-node]) — mdast tree * `options` ([`Options`][api-options], optional) — configuration ###### Returns hast tree ([`HastNode`][hast-node]). ##### Notes ###### HTML Raw HTML is available in mdast as [`html`][mdast-html] nodes and can be embedded in hast as semistandard `raw` nodes. Most utilities ignore `raw` nodes but two notable ones don’t: * [`hast-util-to-html`][hast-util-to-html] also has an option `allowDangerousHtml` which will output the raw HTML. This is typically discouraged as noted by the option name but is useful if you completely trust authors * [`hast-util-raw`][hast-util-raw] can handle the raw embedded HTML strings by parsing them into standard hast nodes (`element`, `text`, etc). This is a heavy task as it needs a full HTML parser, but it is the only way to support untrusted content ###### Footnotes Many options supported here relate to footnotes. Footnotes are not specified by CommonMark, which we follow by default. They are supported by GitHub, so footnotes can be enabled in markdown with [`mdast-util-gfm`][mdast-util-gfm]. The options `footnoteBackLabel` and `footnoteLabel` define natural language that explains footnotes, which is hidden for sighted users but shown to assistive technology. When your page is not in English, you must define translated values. Back references use ARIA attributes, but the section label itself uses a heading that is hidden with an `sr-only` class. To show it to sighted users, define different attributes in `footnoteLabelProperties`. ###### Clobbering Footnotes introduces a problem, as it links footnote calls to footnote definitions on the page through `id` attributes generated from user content, which results in DOM clobbering. DOM clobbering is this: ```html

``` Elements by their ID are made available by browsers on the `window` object, which is a security risk. Using a prefix solves this problem. More information on how to handle clobbering and the prefix is explained in [Example: headings (DOM clobbering) in `rehype-sanitize`][clobber-example]. ###### Unknown nodes Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`. The default behavior for unknown nodes is: * when the node has a `value` (and doesn’t have `data.hName`, `data.hProperties`, or `data.hChildren`, see later), create a hast `text` node * otherwise, create a `
` element (which could be changed with `data.hName`), with its children mapped from mdast to hast as well This behavior can be changed by passing an `unknownHandler`. ### `FootnoteBackContentTemplate` Generate content for the backreference dynamically. For the following markdown: ```markdown Alpha[^micromark], bravo[^micromark], and charlie[^remark]. [^remark]: things about remark [^micromark]: things about micromark ``` This function will be called with: * `0` and `0` for the backreference from `things about micromark` to `alpha`, as it is the first used definition, and the first call to it * `0` and `1` for the backreference from `things about micromark` to `bravo`, as it is the first used definition, and the second call to it * `1` and `0` for the backreference from `things about remark` to `charlie`, as it is the second used definition ###### Parameters * `referenceIndex` (`number`) — index of the definition in the order that they are first referenced, 0-indexed * `rereferenceIndex` (`number`) — index of calls to the same definition, 0-indexed ###### Returns Content for the backreference when linking back from definitions to their reference (`Array`, `ElementContent`, or `string`). ### `FootnoteBackLabelTemplate` Generate a back label dynamically. For the following markdown: ```markdown Alpha[^micromark], bravo[^micromark], and charlie[^remark]. [^remark]: things about remark [^micromark]: things about micromark ``` This function will be called with: * `0` and `0` for the backreference from `things about micromark` to `alpha`, as it is the first used definition, and the first call to it * `0` and `1` for the backreference from `things about micromark` to `bravo`, as it is the first used definition, and the second call to it * `1` and `0` for the backreference from `things about remark` to `charlie`, as it is the second used definition ###### Parameters * `referenceIndex` (`number`) — index of the definition in the order that they are first referenced, 0-indexed * `rereferenceIndex` (`number`) — index of calls to the same definition, 0-indexed ###### Returns Back label to use when linking back from definitions to their reference (`string`). ### `Handler` Handle a node (TypeScript type). ###### Parameters * `state` ([`State`][api-state]) — info passed around * `node` ([`MdastNode`][mdast-node]) — node to handle * `parent` ([`MdastNode | undefined`][mdast-node]) — parent of `node` ###### Returns Result ([`Array | HastNode | undefined`][hast-node]). ### `Handlers` Handle nodes (TypeScript type). ###### Type ```ts type Handlers = Partial> ``` ### `Options` Configuration (TypeScript type). ###### Fields * `allowDangerousHtml` (`boolean`, default: `false`) — whether to persist raw HTML in markdown in the hast tree * `clobberPrefix` (`string`, default: `'user-content-'`) — prefix to use before the `id` property on footnotes to prevent them from *clobbering* * `file` ([`VFile`][vfile], optional) — corresponding virtual file representing the input document * `footnoteBackContent` ([`FootnoteBackContentTemplate`][api-footnote-back-content-template] or `string`, default: [`defaultFootnoteBackContent`][api-default-footnote-back-content]) — content of the backreference back to references * `footnoteBackLabel` ([`FootnoteBackLabelTemplate`][api-footnote-back-label-template] or `string`, default: [`defaultFootnoteBackLabel`][api-default-footnote-back-label]) — label to describe the backreference back to references * `footnoteLabel` (`string`, default: `'Footnotes'`) — label to use for the footnotes section (affects screen readers) * `footnoteLabelProperties` ([`Properties`][properties], default: `{className: ['sr-only']}`) — properties to use on the footnote label (note that `id: 'footnote-label'` is always added as footnote calls use it with `aria-describedby` to provide an accessible label) * `footnoteLabelTagName` (`string`, default: `h2`) — tag name to use for the footnote label * `handlers` ([`Handlers`][api-handlers], optional) — extra handlers for nodes * `passThrough` (`Array`, optional) — list of custom mdast node types to pass through (keep) in hast (note that the node itself is passed, but eventual children are transformed) * `unknownHandler` ([`Handler`][api-handler], optional) — handle all unknown nodes ### `Raw` Raw string of HTML embedded into HTML AST (TypeScript type). ###### Type ```ts import type {Data, Literal} from 'hast' interface Raw extends Literal { type: 'raw' data?: RawData | undefined } interface RawData extends Data {} ``` ### `State` Info passed around about the current state (TypeScript type). ###### Fields * `all` (`(node: MdastNode) => Array`) — transform the children of an mdast parent to hast * `applyData` (`(from: MdastNode, to: Type) => Type | HastElement`) — honor the `data` of `from` and maybe generate an element instead of `to` * `definitionById` (`Map`) — definitions by their uppercased identifier * `footnoteById` (`Map`) — footnote definitions by their uppercased identifier * `footnoteCounts` (`Map`) — counts for how often the same footnote was called * `footnoteOrder` (`Array`) — identifiers of order when footnote calls first appear in tree order * `handlers` ([`Handlers`][api-handlers]) — applied node handlers * `one` (`(node: MdastNode, parent: MdastNode | undefined) => HastNode | Array | undefined`) — transform an mdast node to hast * `options` ([`Options`][api-options]) — configuration * `patch` (`(from: MdastNode, to: HastNode) => undefined`) * `wrap` (`(nodes: Array, loose?: boolean) => Array`) — wrap `nodes` with line endings between each node, adds initial/final line endings when `loose` ## Examples ### Example: supporting HTML in markdown naïvely If you completely trust authors (or plugins) and want to allow them to HTML *in* markdown, and the last utility has an `allowDangerousHtml` option as well (such as `hast-util-to-html`) you can pass `allowDangerousHtml` to this utility (`mdast-util-to-hast`): ```js import {fromMarkdown} from 'mdast-util-from-markdown' import {toHast} from 'mdast-util-to-hast' import {toHtml} from 'hast-util-to-html' const markdown = 'It works! ' const mdast = fromMarkdown(markdown) const hast = toHast(mdast, {allowDangerousHtml: true}) const html = toHtml(hast, {allowDangerousHtml: true}) console.log(html) ``` …now running `node example.js` yields: ```html

It works!

``` > ⚠️ **Danger**: observe that the XSS attack through the `onerror` attribute > is still present. ### Example: supporting HTML in markdown properly If you do not trust the authors of the input markdown, or if you want to make sure that further utilities can see HTML embedded in markdown, use [`hast-util-raw`][hast-util-raw]. The following example passes `allowDangerousHtml` to this utility (`mdast-util-to-hast`), then turns the raw embedded HTML into proper HTML nodes (`hast-util-raw`), and finally sanitizes the HTML by only allowing safe things (`hast-util-sanitize`): ```js import {raw} from 'hast-util-raw' import {sanitize} from 'hast-util-sanitize' import {toHtml} from 'hast-util-to-html' import {fromMarkdown} from 'mdast-util-from-markdown' import {toHast} from 'mdast-util-to-hast' const markdown = 'It works! ' const mdast = fromMarkdown(markdown) const hast = raw(toHast(mdast, {allowDangerousHtml: true})) const safeHast = sanitize(hast) const html = toHtml(safeHast) console.log(html) ``` …now running `node example.js` yields: ```html

It works!

``` > 👉 **Note**: observe that the XSS attack through the `onerror` attribute > is no longer present. ### Example: footnotes in languages other than English If you know that the markdown is authored in a language other than English, and you’re using `micromark-extension-gfm` and `mdast-util-gfm` to match how GitHub renders markdown, and you know that footnotes are (or can?) be used, you should translate the labels associated with them. Let’s first set the stage: ```js import {toHtml} from 'hast-util-to-html' import {gfm} from 'micromark-extension-gfm' import {fromMarkdown} from 'mdast-util-from-markdown' import {gfmFromMarkdown} from 'mdast-util-gfm' import {toHast} from 'mdast-util-to-hast' const markdown = 'Bonjour[^1]\n\n[^1]: Monde!' const mdast = fromMarkdown(markdown, { extensions: [gfm()], mdastExtensions: [gfmFromMarkdown()] }) const hast = toHast(mdast) const html = toHtml(hast) console.log(html) ``` …now running `node example.js` yields: ```html

Bonjour1

Footnotes

  1. Monde! ↩

``` This is a mix of English and French that screen readers can’t handle nicely. Let’s say our program does know that the markdown is in French. In that case, it’s important to translate and define the labels relating to footnotes so that screen reader users can properly pronounce the page: ```diff @@ -9,7 +9,16 @@ const mdast = fromMarkdown(markdown, { extensions: [gfm()], mdastExtensions: [gfmFromMarkdown()] }) -const hast = toHast(mdast) +const hast = toHast(mdast, { + footnoteLabel: 'Notes de bas de page', + footnoteBackLabel(referenceIndex, rereferenceIndex) { + return ( + 'Retour à la référence ' + + (referenceIndex + 1) + + (rereferenceIndex > 1 ? '-' + rereferenceIndex : '') + ) + } +}) const html = toHtml(hast) console.log(html) ``` …now running `node example.js` with the above patch applied yields: ```diff @@ -1,8 +1,8 @@

Bonjour1

-

Footnotes

+

Notes de bas de page

  1. -

    Monde! ↩

    +

    Monde! ↩

``` ### Example: supporting custom nodes This project supports CommonMark and the GFM constructs (footnotes, strikethrough, tables) and the frontmatter constructs YAML and TOML. Support can be extended to other constructs in two ways: a) with handlers, b) through fields on nodes. For example, when we represent a mark element in markdown and want to turn it into a `` element in HTML, we can use a handler: ```js import {toHtml} from 'hast-util-to-html' import {toHast} from 'mdast-util-to-hast' const mdast = { type: 'paragraph', children: [{type: 'mark', children: [{type: 'text', value: 'x'}]}] } const hast = toHast(mdast, { handlers: { mark(state, node) { return { type: 'element', tagName: 'mark', properties: {}, children: state.all(node) } } } }) console.log(toHtml(hast)) ``` We can do the same through certain fields on nodes: ```js import {toHtml} from 'hast-util-to-html' import {toHast} from 'mdast-util-to-hast' const mdast = { type: 'paragraph', children: [ { type: 'mark', children: [{type: 'text', value: 'x'}], data: {hName: 'mark'} } ] } console.log(toHtml(toHast(mdast))) ``` ## Algorithm This project by default handles CommonMark, GFM (footnotes, strikethrough, tables) and common frontmatter (YAML, TOML). Existing handlers can be overwritten and handlers for more nodes can be added. It’s also possible to define how mdast is turned into hast through fields on nodes. ### Default handling The following table gives insight into what input turns into what output:
mdast node markdown example hast node html example
[`blockquote`](https://github.com/syntax-tree/mdast#blockquote) ```markdown > A greater than… ``` [`element`](https://github.com/syntax-tree/hast#element) (`blockquote`) ```html

A greater than…

```
[`break`](https://github.com/syntax-tree/mdast#break) ```markdown A backslash\ before a line break… ``` [`element`](https://github.com/syntax-tree/hast#element) (`br`) ```html

A backslash
before a line break…

```
[`code`](https://github.com/syntax-tree/mdast#code) ````markdown ```js backtick.fences('for blocks') ``` ```` [`element`](https://github.com/syntax-tree/hast#element) (`pre` and `code`) ```html
backtick.fences('for blocks')
```
[`delete`](https://github.com/syntax-tree/mdast#delete) (GFM) ```markdown Two ~~tildes~~ for delete. ``` [`element`](https://github.com/syntax-tree/hast#element) (`del`) ```html

Two tildes for delete.

```
[`emphasis`](https://github.com/syntax-tree/mdast#emphasis) ```markdown Some *asterisks* for emphasis. ``` [`element`](https://github.com/syntax-tree/hast#element) (`em`) ```html

Some asterisks for emphasis.

```
[`footnoteReference`](https://github.com/syntax-tree/mdast#footnotereference), [`footnoteDefinition`](https://github.com/syntax-tree/mdast#footnotedefinition) (GFM) ```markdown With a [^caret]. [^caret]: Stuff ``` [`element`](https://github.com/syntax-tree/hast#element) (`section`, `sup`, `a`) ```html

With a 1.

… ```
[`heading`](https://github.com/syntax-tree/mdast#heading) ```markdown # One number sign… ###### Six number signs… ``` [`element`](https://github.com/syntax-tree/hast#element) (`h1`…`h6`) ```html

One number sign…

Six number signs…
```
[`html`](https://github.com/syntax-tree/mdast#html) ```html CMD+S ``` Nothing (default), `raw` (when `allowDangerousHtml: true`) n/a
[`image`](https://github.com/syntax-tree/mdast#image) ```markdown ![Alt text](/logo.png "title") ``` [`element`](https://github.com/syntax-tree/hast#element) (`img`) ```html

Alt text

```
[`imageReference`](https://github.com/syntax-tree/mdast#imagereference), [`definition`](https://github.com/syntax-tree/mdast#definition) ```markdown ![Alt text][logo] [logo]: /logo.png "title" ``` [`element`](https://github.com/syntax-tree/hast#element) (`img`) ```html

Alt text

```
[`inlineCode`](https://github.com/syntax-tree/mdast#inlinecode) ```markdown Some `backticks` for inline code. ``` [`element`](https://github.com/syntax-tree/hast#element) (`code`) ```html

Some backticks for inline code.

```
[`link`](https://github.com/syntax-tree/mdast#link) ```markdown [Example](https://example.com "title") ``` [`element`](https://github.com/syntax-tree/hast#element) (`a`) ```html

Example

```
[`linkReference`](https://github.com/syntax-tree/mdast#linkreference), [`definition`](https://github.com/syntax-tree/mdast#definition) ```markdown [Example][] [example]: https://example.com "title" ``` [`element`](https://github.com/syntax-tree/hast#element) (`a`) ```html

Example

```
[`list`](https://github.com/syntax-tree/mdast#list), [`listItem`](https://github.com/syntax-tree/mdast#listitem) ```markdown * asterisks for unordered items 1. decimals and a dot for ordered items ``` [`element`](https://github.com/syntax-tree/hast#element) (`li` and `ol` or `ul`) ```html
  • asterisks for unordered items
  1. decimals and a dot for ordered items
```
[`paragraph`](https://github.com/syntax-tree/mdast#paragraph) ```markdown Just some text… ``` [`element`](https://github.com/syntax-tree/hast#element) (`p`) ```html

Just some text…

```
[`root`](https://github.com/syntax-tree/mdast#root) ```markdown Anything! ``` [`root`](https://github.com/syntax-tree/hast#root) ```html

Anything!

```
[`strong`](https://github.com/syntax-tree/mdast#strong) ```markdown Two **asterisks** for strong. ``` [`element`](https://github.com/syntax-tree/hast#element) (`strong`) ```html

Two asterisks for strong.

```
[`text`](https://github.com/syntax-tree/mdast#text) ```markdown Anything! ``` [`text`](https://github.com/syntax-tree/hast#text) ```html

Anything!

```
[`table`](https://github.com/syntax-tree/mdast#table), [`tableRow`](https://github.com/syntax-tree/mdast#tablerow), [`tableCell`](https://github.com/syntax-tree/mdast#tablecell) ```markdown | Pipes | | ----- | ``` [`element`](https://github.com/syntax-tree/hast#element) (`table`, `thead`, `tbody`, `tr`, `td`, `th`) ```html
Pipes
```
[`thematicBreak`](https://github.com/syntax-tree/mdast#thematicbreak) ```markdown Three asterisks for a thematic break: *** ``` [`element`](https://github.com/syntax-tree/hast#element) (`hr`) ```html

Three asterisks for a thematic break:


```
`toml` (frontmatter) ```markdown +++ fenced = true +++ ``` Nothing n/a
[`yaml`](https://github.com/syntax-tree/mdast#yaml) (frontmatter) ```markdown --- fenced: yes --- ``` Nothing n/a
> 👉 **Note**: GFM prescribes that the obsolete `align` attribute on `td` and > `th` elements is used. > To use `style` attributes instead of obsolete features, combine this utility > with [`@mapbox/hast-util-table-cell-style`][hast-util-table-cell-style]. > 🧑‍🏫 **Info**: this project is concerned with turning one syntax tree into > another. > It does not deal with markdown syntax or HTML syntax. > The preceding examples are illustrative rather than authoritative or > exhaustive. ### Fields on nodes A frequent problem arises when having to turn one syntax tree into another. As the original tree (in this case, mdast for markdown) is in some cases limited compared to the destination (in this case, hast for HTML) tree, is it possible to provide more info in the original to define what the result will be in the destination? This is possible by defining data on mdast nodes, which this utility will read as instructions on what hast nodes to create. An example is math, which is a nonstandard markdown extension, that this utility doesn’t understand. To solve this, `mdast-util-math` defines instructions on mdast nodes that this plugin does understand because they define a certain hast structure. The following fields can be used: * `node.data.hName` — define the element’s tag name * `node.data.hProperties` — define extra properties to use * `node.data.hChildren` — define hast children to use ###### `hName` `node.data.hName` sets the tag name of an element. The following [mdast][]: ```js { type: 'strong', data: {hName: 'b'}, children: [{type: 'text', value: 'Alpha'}] } ``` …yields ([hast][]): ```js { type: 'element', tagName: 'b', properties: {}, children: [{type: 'text', value: 'Alpha'}] } ``` ###### `hProperties` `node.data.hProperties` sets the properties of an element. The following [mdast][]: ```js { type: 'image', src: 'circle.svg', alt: 'Big red circle on a black background', data: {hProperties: {className: ['responsive']}} } ``` …yields ([hast][]): ```js { type: 'element', tagName: 'img', properties: { src: 'circle.svg', alt: 'Big red circle on a black background', className: ['responsive'] }, children: [] } ``` ###### `hChildren` `node.data.hChildren` sets the children of an element. The following [mdast][]: ```js { type: 'code', lang: 'js', data: { hChildren: [ { type: 'element', tagName: 'span', properties: {className: ['hljs-meta']}, children: [{type: 'text', value: '"use strict"'}] }, {type: 'text', value: ';'} ] }, value: '"use strict";' } ``` …yields ([hast][]): ```js { type: 'element', tagName: 'pre', properties: {}, children: [{ type: 'element', tagName: 'code', properties: {className: ['language-js']}, children: [ { type: 'element', tagName: 'span', properties: {className: ['hljs-meta']}, children: [{type: 'text', value: '"use strict"'}] }, {type: 'text', value: ';'} ] }] } ``` > 👉 **Note**: the `pre` and `language-js` class are normal `mdast-util-to-hast` > functionality. ## CSS Assuming you know how to use (semantic) HTML and CSS, then it should generally be straightforward to style the HTML produced by this plugin. With CSS, you can get creative and style the results as you please. Some semistandard features, notably GFMs tasklists and footnotes, generate HTML that be unintuitive, as it matches exactly what GitHub produces for their website. There is a project, [`sindresorhus/github-markdown-css`][github-markdown-css], that exposes the stylesheet that GitHub uses for rendered markdown, which might either be inspirational for more complex features, or can be used as-is to exactly match how GitHub styles rendered markdown. The following CSS is needed to make footnotes look a bit like GitHub: ```css /* Style the footnotes section. */ .footnotes { font-size: smaller; color: #8b949e; border-top: 1px solid #30363d; } /* Hide the section label for visual users. */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); word-wrap: normal; border: 0; } /* Place `[` and `]` around footnote calls. */ [data-footnote-ref]::before { content: '['; } [data-footnote-ref]::after { content: ']'; } ``` ## Syntax tree The following interfaces are added to **[hast][]** by this utility. ### Nodes #### `Raw` ```idl interface Raw <: Literal { type: 'raw' } ``` **Raw** (**[Literal][dfn-literal]**) represents a string if raw HTML inside hast. Raw nodes are typically ignored but are handled by [`hast-util-to-html`][hast-util-to-html] and [`hast-util-raw`][hast-util-raw]. ## Types This package is fully typed with [TypeScript][]. It exports the [`FootnoteBackContentTemplate`][api-footnote-back-content-template], [`FootnoteBackLabelTemplate`][api-footnote-back-label-template], [`Handler`][api-handler], [`Handlers`][api-handlers], [`Options`][api-options], [`Raw`][api-raw], and [`State`][api-state] types. It also registers the `Raw` node type with `@types/hast`. If you’re working with the syntax tree (and you pass `allowDangerousHtml: true`), make sure to import this utility somewhere in your types, as that registers the new node type in the tree. ```js /** * @import {Root} from 'hast' * @import {} from 'mdast-util-to-hast' */ import {visit} from 'unist-util-visit' /** @type {Root} */ const tree = { /* … */ } visit(tree, function (node) { // `node` can now be `raw`. }) ``` Finally, it also registers the `hChildren`, `hName`, and `hProperties` fields on `Data` of `@types/mdast`. If you’re working with the syntax tree, make sure to import this utility somewhere in your types, as that registers the data fields in the tree. ```js /** * @import {Root} from 'hast' * @import {} from 'mdast-util-to-hast' */ import {visit} from 'unist-util-visit' /** @type {Root} */ const tree = { /* … */ } console.log(tree.data?.hName) // Types as `string | undefined`. ``` ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `mdast-util-to-hast@^13`, compatible with Node.js 16. ## Security Use of `mdast-util-to-hast` can open you up to a [cross-site scripting (XSS)][xss] attack. Embedded hast properties (`hName`, `hProperties`, `hChildren`), custom handlers, and the `allowDangerousHtml` option all provide openings. The following example shows how a script is injected where a benign code block is expected with embedded hast properties: ```js const code = {type: 'code', value: 'alert(1)'} code.data = {hName: 'script'} ``` Yields: ```html ``` The following example shows how an image is changed to fail loading and therefore run code in a browser. ```js const image = {type: 'image', url: 'existing.png'} image.data = {hProperties: {src: 'missing', onError: 'alert(2)'}} ``` Yields: ```html ``` The following example shows the default handling of embedded HTML: ```markdown # Hello ``` Yields: ```html

Hello

``` Passing `allowDangerousHtml: true` to `mdast-util-to-hast` is typically still not enough to run unsafe code: ```html

Hello

<script>alert(3)</script> ``` If `allowDangerousHtml: true` is also given to `hast-util-to-html` (or `rehype-stringify`), the unsafe code runs: ```html

Hello

``` Use [`hast-util-sanitize`][hast-util-sanitize] to make the hast tree safe. ## Related * [`hast-util-to-mdast`](https://github.com/syntax-tree/hast-util-to-mdast) — transform hast to mdast * [`hast-util-to-xast`](https://github.com/syntax-tree/hast-util-to-xast) — transform hast to xast * [`hast-util-sanitize`](https://github.com/syntax-tree/hast-util-sanitize) — sanitize hast nodes ## Contribute See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/mdast-util-to-hast/workflows/main/badge.svg [build]: https://github.com/syntax-tree/mdast-util-to-hast/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-to-hast.svg [coverage]: https://codecov.io/github/syntax-tree/mdast-util-to-hast [downloads-badge]: https://img.shields.io/npm/dm/mdast-util-to-hast.svg [downloads]: https://www.npmjs.com/package/mdast-util-to-hast [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-to-hast [size]: https://bundlejs.com/?q=mdast-util-to-hast [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [support]: https://github.com/syntax-tree/.github/blob/main/support.md [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [mdast]: https://github.com/syntax-tree/mdast [mdast-node]: https://github.com/syntax-tree/mdast#nodes [mdast-html]: https://github.com/syntax-tree/mdast#html [mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm [hast]: https://github.com/syntax-tree/hast [hast-node]: https://github.com/syntax-tree/hast#nodes [properties]: https://github.com/syntax-tree/hast#properties [hast-util-table-cell-style]: https://github.com/mapbox/hast-util-table-cell-style [hast-util-to-mdast]: https://github.com/syntax-tree/hast-util-to-mdast [hast-util-to-html]: https://github.com/syntax-tree/hast-util-to-html [hast-util-raw]: https://github.com/syntax-tree/hast-util-raw [hast-util-sanitize]: https://github.com/syntax-tree/hast-util-sanitize [remark-rehype]: https://github.com/remarkjs/remark-rehype [vfile]: https://github.com/vfile/vfile [clobber-example]: https://github.com/rehypejs/rehype-sanitize#example-headings-dom-clobbering [github-markdown-css]: https://github.com/sindresorhus/github-markdown-css [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [dfn-literal]: https://github.com/syntax-tree/hast#literal [api-default-footnote-back-content]: #defaultfootnotebackcontentreferenceindex-rereferenceindex [api-default-footnote-back-label]: #defaultfootnotebacklabelreferenceindex-rereferenceindex [api-default-handlers]: #defaulthandlers [api-footnote-back-content-template]: #footnotebackcontenttemplate [api-footnote-back-label-template]: #footnotebacklabeltemplate [api-handler]: #handler [api-handlers]: #handlers [api-options]: #options [api-raw]: #raw [api-state]: #state [api-to-hast]: #tohasttree-options --- END ORIGINAL BYTES --- ================================================================ mdn-data@2.0.28 Declared package license: CC0-1.0 Published archive: https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz Locked integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 36ffd9dc085d529a7e60e1276d73ae5a030b020313e6c5408593a6ae2af39673; bytes: 6555 --- BEGIN ORIGINAL BYTES --- CC0 1.0 Universal Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. For more information, please see --- END ORIGINAL BYTES --- ================================================================ mdn-data@2.27.1 Declared package license: CC0-1.0 Published archive: https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz Locked integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 36ffd9dc085d529a7e60e1276d73ae5a030b020313e6c5408593a6ae2af39673; bytes: 6555 --- BEGIN ORIGINAL BYTES --- CC0 1.0 Universal Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. For more information, please see --- END ORIGINAL BYTES --- ================================================================ micromark-util-character@2.1.1 Declared package license: MIT Published archive: https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz Locked integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 375e31d1d11c2084a617162ea56712845e84008933c5054a569aad3d82df3f7f; bytes: 11728 --- BEGIN ORIGINAL BYTES --- # micromark-util-character [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][bundle-size-badge]][bundle-size] [![Sponsors][sponsors-badge]][opencollective] [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] [micromark][] utility to handle [character codes][code]. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`asciiAlpha(code)`](#asciialphacode) * [`asciiAlphanumeric(code)`](#asciialphanumericcode) * [`asciiAtext(code)`](#asciiatextcode) * [`asciiControl(code)`](#asciicontrolcode) * [`asciiDigit(code)`](#asciidigitcode) * [`asciiHexDigit(code)`](#asciihexdigitcode) * [`asciiPunctuation(code)`](#asciipunctuationcode) * [`markdownLineEnding(code)`](#markdownlineendingcode) * [`markdownLineEndingOrSpace(code)`](#markdownlineendingorspacecode) * [`markdownSpace(code)`](#markdownspacecode) * [`unicodePunctuation(code)`](#unicodepunctuationcode) * [`unicodeWhitespace(code)`](#unicodewhitespacecode) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? This package exposes algorithms to check whether characters match groups. ## When should I use this? This package might be useful when you are making your own micromark extensions. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install micromark-util-character ``` In Deno with [`esm.sh`][esmsh]: ```js import * as character from 'https://esm.sh/micromark-util-character@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {asciiAlpha} from 'micromark-util-character' console.log(asciiAlpha(64)) // false console.log(asciiAlpha(65)) // true ``` ## API This module exports the identifiers [`asciiAlpha`][api-ascii-alpha], [`asciiAlphanumeric`][api-ascii-alphanumeric], [`asciiAtext`][api-ascii-atext], [`asciiControl`][api-ascii-control], [`asciiDigit`][api-ascii-digit], [`asciiHexDigit`][api-ascii-hex-digit], [`asciiPunctuation`][api-ascii-punctuation], [`markdownLineEnding`][api-markdown-line-ending], [`markdownLineEndingOrSpace`][api-markdown-line-ending-or-space], [`markdownSpace`][api-markdown-space], [`unicodePunctuation`][api-unicode-punctuation], [`unicodeWhitespace`][api-unicode-whitespace]. There is no default export. ### `asciiAlpha(code)` Check whether the [character code][code] represents an ASCII alpha (`a` through `z`, case insensitive). An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha. An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`) to U+005A (`Z`). An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`) to U+007A (`z`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiAlphanumeric(code)` Check whether the [character code][code] represents an ASCII alphanumeric (`a` through `z`, case insensitive, or `0` through `9`). An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha (see `asciiAlpha`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiAtext(code)` Check whether the [character code][code] represents an ASCII atext. atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`), U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`) (**\[RFC5322]**). See **\[RFC5322]**:\ [Internet Message Format](https://tools.ietf.org/html/rfc5322).\ P. Resnick.\ IETF. ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiControl(code)` Check whether a [character code][code] is an ASCII control character. An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL) to U+001F (US), or U+007F (DEL). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiDigit(code)` Check whether the [character code][code] represents an ASCII digit (`0` through `9`). An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to U+0039 (`9`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiHexDigit(code)` Check whether the [character code][code] represents an ASCII hex digit (`a` through `f`, case insensitive, or `0` through `9`). An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex digit, or an ASCII lower hex digit. An **ASCII upper hex digit** is a character in the inclusive range U+0041 (`A`) to U+0046 (`F`). An **ASCII lower hex digit** is a character in the inclusive range U+0061 (`a`) to U+0066 (`f`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `asciiPunctuation(code)` Check whether the [character code][code] represents ASCII punctuation. An **ASCII punctuation** is a character in the inclusive ranges U+0021 EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `markdownLineEnding(code)` Check whether a [character code][code] is a markdown line ending. A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR). In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE RETURN (CR) are replaced by these virtual characters depending on whether they occurred together. ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `markdownLineEndingOrSpace(code)` Check whether a [character code][code] is a markdown line ending (see `markdownLineEnding`) or markdown space (see `markdownSpace`). ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `markdownSpace(code)` Check whether a [character code][code] is a markdown space. A **markdown space** is the concrete character U+0020 SPACE (SP) and the virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT). In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL SPACE (VS) characters, depending on the column at which the tab occurred. ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `unicodePunctuation(code)` Check whether the [character code][code] represents Unicode punctuation. A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation, Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf` (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po` (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII punctuation (see `asciiPunctuation`) (**\[UNICODE]**). See **\[UNICODE]**:\ [The Unicode Standard](https://www.unicode.org/versions/).\ Unicode Consortium. ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ### `unicodeWhitespace(code)` Check whether the [character code][code] represents Unicode whitespace. Note that this does handle micromark specific markdown whitespace characters. See `markdownLineEndingOrSpace` to check that. A **Unicode whitespace** is a character in the Unicode `Zs` (Separator, Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**). See **\[UNICODE]**:\ [The Unicode Standard](https://www.unicode.org/versions/).\ Unicode Consortium. ###### Parameters * `code` (`Code`) — code ###### Returns Whether it matches (`boolean`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `micromark-util-character@2`, compatible with Node.js 16. This package works with `micromark@3`. ## Security This package is safe. See [`security.md`][securitymd] in [`micromark/.github`][health] for how to submit a security report. ## Contribute See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg [build]: https://github.com/micromark/micromark/actions [coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg [coverage]: https://codecov.io/github/micromark/micromark [downloads-badge]: https://img.shields.io/npm/dm/micromark-util-character.svg [downloads]: https://www.npmjs.com/package/micromark-util-character [bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-character [bundle-size]: https://bundlejs.com/?q=micromark-util-character [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [opencollective]: https://opencollective.com/unified [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/micromark/micromark/discussions [license]: https://github.com/micromark/micromark/blob/main/license [author]: https://wooorm.com [health]: https://github.com/micromark/.github [securitymd]: https://github.com/micromark/.github/blob/main/security.md [contributing]: https://github.com/micromark/.github/blob/main/contributing.md [support]: https://github.com/micromark/.github/blob/main/support.md [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark [code]: https://github.com/micromark/micromark#preprocess [api-ascii-alpha]: #asciialphacode [api-ascii-alphanumeric]: #asciialphanumericcode [api-ascii-atext]: #asciiatextcode [api-ascii-control]: #asciicontrolcode [api-ascii-digit]: #asciidigitcode [api-ascii-hex-digit]: #asciihexdigitcode [api-ascii-punctuation]: #asciipunctuationcode [api-markdown-line-ending]: #markdownlineendingcode [api-markdown-line-ending-or-space]: #markdownlineendingorspacecode [api-markdown-space]: #markdownspacecode [api-unicode-punctuation]: #unicodepunctuationcode [api-unicode-whitespace]: #unicodewhitespacecode --- END ORIGINAL BYTES --- ================================================================ micromark-util-encode@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz Locked integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 53bfb28b9597a85463cf5b44a918cfb3d4d7f2da726698d96f05196063ba2ed0; bytes: 4451 --- BEGIN ORIGINAL BYTES --- # micromark-util-encode [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][bundle-size-badge]][bundle-size] [![Sponsors][sponsors-badge]][opencollective] [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] [micromark][] utility to encode dangerous html characters. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`encode(value)`](#encodevalue) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? This package exposes an algorithm to make text safe for embedding in HTML. ## When should I use this? This package might be useful when you are making your own micromark extensions. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install micromark-util-encode ``` In Deno with [`esm.sh`][esmsh]: ```js import {encode} from 'https://esm.sh/micromark-util-encode@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {encode} from 'micromark-util-encode' encode('<3') // '<3' ``` ## API This module exports the identifier [`encode`][api-encode]. There is no default export. ### `encode(value)` Encode only the dangerous HTML characters. This ensures that certain characters which have special meaning in HTML are dealt with. Technically, we can skip `>` and `"` in many cases, but CM includes them. ###### Parameters * `value` (`string`) — value to encode ###### Returns Encoded value (`string`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `micromark-util-encode@2`, compatible with Node.js 16. This package works with `micromark@3`. ## Security This package is safe. See [`security.md`][securitymd] in [`micromark/.github`][health] for how to submit a security report. ## Contribute See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg [build]: https://github.com/micromark/micromark/actions [coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg [coverage]: https://codecov.io/github/micromark/micromark [downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg [downloads]: https://www.npmjs.com/package/micromark-util-encode [bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode [bundle-size]: https://bundlejs.com/?q=micromark-util-encode [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [opencollective]: https://opencollective.com/unified [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/micromark/micromark/discussions [license]: https://github.com/micromark/micromark/blob/main/license [author]: https://wooorm.com [health]: https://github.com/micromark/.github [securitymd]: https://github.com/micromark/.github/blob/main/security.md [contributing]: https://github.com/micromark/.github/blob/main/contributing.md [support]: https://github.com/micromark/.github/blob/main/support.md [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark [api-encode]: #encodevalue --- END ORIGINAL BYTES --- ================================================================ micromark-util-sanitize-uri@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz Locked integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 9c2d3472299f8dd0c2e5437686c215e5e0ca0f627f257eeacb0e41eb09022c3c; bytes: 6034 --- BEGIN ORIGINAL BYTES --- # micromark-util-sanitize-uri [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][bundle-size-badge]][bundle-size] [![Sponsors][sponsors-badge]][opencollective] [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] [micromark][] utility to sanitize urls. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`normalizeUri(value)`](#normalizeurivalue) * [`sanitizeUri(url[, pattern])`](#sanitizeuriurl-pattern) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? This package exposes an algorithm to make URLs safe. ## When should I use this? This package might be useful when you are making your own micromark extensions. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install micromark-util-sanitize-uri ``` In Deno with [`esm.sh`][esmsh]: ```js import {sanitizeUri} from 'https://esm.sh/micromark-util-sanitize-uri@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {sanitizeUri} from 'micromark-util-sanitize-uri' sanitizeUri('https://example.com/a&b') // 'https://example.com/a&amp;b' sanitizeUri('https://example.com/a%b') // 'https://example.com/a%25b' sanitizeUri('https://example.com/a%20b') // 'https://example.com/a%20b' sanitizeUri('https://example.com/👍') // 'https://example.com/%F0%9F%91%8D' sanitizeUri('https://example.com/', /^https?$/i) // 'https://example.com/' sanitizeUri('javascript:alert(1)', /^https?$/i) // '' sanitizeUri('./example.jpg', /^https?$/i) // './example.jpg' sanitizeUri('#a', /^https?$/i) // '#a' ``` ## API This module exports the identifiers [`normalizeUri`][api-normalize-uri] and [`sanitizeUri`][api-sanitize-uri]. There is no default export. ### `normalizeUri(value)` Normalize a URL. Encode unsafe characters with percent-encoding, skipping already encoded sequences. ###### Parameters * `value` (`string`) — URI to normalize ###### Returns Normalized URI (`string`). ### `sanitizeUri(url[, pattern])` Make a value safe for injection as a URL. This encodes unsafe characters with percent-encoding and skips already encoded sequences (see [`normalizeUri`][api-normalize-uri]). Further unsafe characters are encoded as character references (see [`micromark-util-encode`][micromark-util-encode]). A regex of allowed protocols can be given, in which case the URL is sanitized. For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or `/^https?$/i` for `img[src]` (this is what `github.com` allows). If the URL includes an unknown protocol (one not matched by `protocol`, such as a dangerous example, `javascript:`), the value is ignored. ###### Parameters * `url` (`string`) — URI to sanitize * `pattern` (`RegExp`, optional) — allowed protocols ###### Returns Sanitized URI (`string`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `micromark-util-sanitize-uri@2`, compatible with Node.js 16. This package works with `micromark@3`. ## Security This package is safe. See [`security.md`][securitymd] in [`micromark/.github`][health] for how to submit a security report. ## Contribute See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg [build]: https://github.com/micromark/micromark/actions [coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg [coverage]: https://codecov.io/github/micromark/micromark [downloads-badge]: https://img.shields.io/npm/dm/micromark-util-sanitize-uri.svg [downloads]: https://www.npmjs.com/package/micromark-util-sanitize-uri [bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-sanitize-uri [bundle-size]: https://bundlejs.com/?q=micromark-util-sanitize-uri [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [opencollective]: https://opencollective.com/unified [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/micromark/micromark/discussions [license]: https://github.com/micromark/micromark/blob/main/license [author]: https://wooorm.com [health]: https://github.com/micromark/.github [securitymd]: https://github.com/micromark/.github/blob/main/security.md [contributing]: https://github.com/micromark/.github/blob/main/contributing.md [support]: https://github.com/micromark/.github/blob/main/support.md [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark [micromark-util-encode]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode [api-normalize-uri]: #normalizeurivalue [api-sanitize-uri]: #sanitizeuriurl-pattern --- END ORIGINAL BYTES --- ================================================================ micromark-util-symbol@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz Locked integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 58da5466024959d24b1663302b6cc072627a896b2068004cd735cd90987e0e2a; bytes: 4600 --- BEGIN ORIGINAL BYTES --- # micromark-util-symbol [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][bundle-size-badge]][bundle-size] [![Sponsors][sponsors-badge]][opencollective] [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] [micromark][] utility with symbols. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? This package exposes constants used throughout the micromark ecosystem. ## When should I use this? This package is useful when you are making your own micromark extensions. It’s useful to reference these constants by name instead of value while developing. [`micromark-build`][micromark-build] compiles them away for production code. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install micromark-util-symbol ``` In Deno with [`esm.sh`][esmsh]: ```js import * as symbol from 'https://esm.sh/micromark-util-symbol@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {codes, constants, types, values} from 'micromark-util-symbol' console.log(codes.atSign) // 64 console.log(constants.characterReferenceNamedSizeMax) // 31 console.log(types.definitionDestinationRaw) // 'definitionDestinationRaw' console.log(values.atSign) // '@' ``` ## API This package exports the identifiers `codes`, `constants`, `types`, and `values`. There is no default export. Each identifier is an object mapping strings to values. See the code for the exposed data. ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `micromark-util-symbol@2`, compatible with Node.js 16. This package works with `micromark@3`. ## Security This package is safe. See [`security.md`][securitymd] in [`micromark/.github`][health] for how to submit a security report. ## Contribute See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg [build]: https://github.com/micromark/micromark/actions [coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg [coverage]: https://codecov.io/github/micromark/micromark [downloads-badge]: https://img.shields.io/npm/dm/micromark-util-symbol.svg [downloads]: https://www.npmjs.com/package/micromark-util-symbol [bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-symbol [bundle-size]: https://bundlejs.com/?q=micromark-util-symbol [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [opencollective]: https://opencollective.com/unified [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/micromark/micromark/discussions [license]: https://github.com/micromark/micromark/blob/main/license [author]: https://wooorm.com [health]: https://github.com/micromark/.github [securitymd]: https://github.com/micromark/.github/blob/main/security.md [contributing]: https://github.com/micromark/.github/blob/main/contributing.md [support]: https://github.com/micromark/.github/blob/main/support.md [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark [micromark-build]: https://github.com/micromark/micromark/tree/main/packages/micromark-build --- END ORIGINAL BYTES --- ================================================================ micromark-util-types@2.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz Locked integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 42b7dadd8e8a5cc368fccf04647a657b9f195d7928f68c4e5a00ef10c03f5673; bytes: 3915 --- BEGIN ORIGINAL BYTES --- # micromark-util-types [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][bundle-size-badge]][bundle-size] [![Sponsors][sponsors-badge]][opencollective] [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] [micromark][] utility package with TypeScript types. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? This package exposes TypeScript types shared throughout the micromark ecosystem. ## When should I use this? This package is useful when you are making your own, typed, micromark extensions. ## Install In Node.js (version 16+), install with [npm][]: ```sh npm install micromark-util-types ``` In Deno with [`esm.sh`][esmsh]: ```js import type {Point, /* … */} from 'https://esm.sh/micromark-util-types@1' ``` ## Use ```js /** * @import {Point} from 'micromark-util-types' */ ``` ## API This module exports no identifiers. There is no default export. See [the code][code] for all about the exposed types. ## Types This package is just [TypeScript][] types. It exports lots of different types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `micromark-util-types@2`, compatible with Node.js 16. This package works with `micromark@3`. ## Security This package is safe. See [`security.md`][securitymd] in [`micromark/.github`][health] for how to submit a security report. ## Contribute See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [author]: https://wooorm.com [backers-badge]: https://opencollective.com/unified/backers/badge.svg [build]: https://github.com/micromark/micromark/actions [build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg [bundle-size]: https://bundlejs.com/?q=micromark-util-encode [bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode [chat]: https://github.com/micromark/micromark/discussions [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md [code]: https://github.com/micromark/micromark/blob/main/packages/micromark-util-types/index.d.ts [contributing]: https://github.com/micromark/.github/blob/main/contributing.md [coverage]: https://codecov.io/github/micromark/micromark [coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg [downloads]: https://www.npmjs.com/package/micromark-util-encode [downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg [esmsh]: https://esm.sh [health]: https://github.com/micromark/.github [license]: https://github.com/micromark/micromark/blob/main/license [micromark]: https://github.com/micromark/micromark [npm]: https://docs.npmjs.com/cli/install [opencollective]: https://opencollective.com/unified [securitymd]: https://github.com/micromark/.github/blob/main/security.md [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [support]: https://github.com/micromark/.github/blob/main/support.md [typescript]: https://www.typescriptlang.org --- END ORIGINAL BYTES --- ================================================================ mrmime@2.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz Locked integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ba573393f24555ac0528612ad39665fab5bdcc80330a61096024bbf5f736526d; bytes: 1122 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) Luke Edwards (https://lukeed.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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: df6eb07c79467b7fdf6011c1072bf3d8f0ca35a396a757500aa0d074beca17d8; bytes: 3698 --- BEGIN ORIGINAL BYTES ---
mrmime
A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename
## Features * Lightweight – 2.8kB gzip
_Only includes standard mime types; all experimental and vendor-specific mimetypes removed._ * [Performant](#benchmarks)
_All lookups are O(1) with minimal processing._ * Comprehensive Dictionary
_Generated from [`mime-db`](https://github.com/jshttp/mime-db), which aggregates the IANA, NGINX, and Apache datasets._ * Customizable
_Exposes the `mimes` dictionary for easy additions or overrides._ * Supports Native ESM and [Deno](https://deno.land/x/mrmime)
_Ships with CommonJS and ESM support!_ ## Install ``` $ npm install --save mrmime ``` ## Usage ```js import { lookup, mimes } from 'mrmime'; // Get a MIME type // --- lookup('txt'); //=> "text/plain" lookup('.txt'); //=> "text/plain" lookup('a.txt'); //=> "text/plain" // Unknown extension // --- lookup('.xyz'); //=> undefined // Add extension to dictionary // --- mimes['xyz'] = 'hello/world'; lookup('xyz'); //=> "hello/world" ``` ## API ### lookup(input) Returns: `string` or `undefined` #### input Type: `string` The extension or filename to lookup. > **Important:** > * Any `input` value is cast to string, lowercased, and trimmed. > * If a filename or filepath is provided, only the extension will be used. ## Benchmarks > Running on Node v16.8.0 ``` Load times: mrmime 0.963ms mime/lite 3.281ms mime 6.751ms Benchmark :: plain ("ext") mime x 598,849 ops/sec ±0.28% (94 runs sampled) mime/lite x 536,643 ops/sec ±0.11% (97 runs sampled) mrmime x 835,885 ops/sec ±0.20% (97 runs sampled) Benchmark :: leading (".ext") mime x 368,656 ops/sec ±0.19% (99 runs sampled) mime/lite x 368,318 ops/sec ±0.13% (97 runs sampled) mrmime x 533,643 ops/sec ±0.10% (96 runs sampled) Benchmark :: filename ("file.ext") mime x 326,907 ops/sec ±0.17% (95 runs sampled) mime/lite x 327,479 ops/sec ±0.12% (98 runs sampled) mrmime x 512,823 ops/sec ±0.12% (99 runs sampled) ``` ## Credits Of course, a thank-you to [`mime`](https://github.com/broofa/mime) serving the community all these years & for being a all-encompassing MIME type library. I've only ever needed lookup/`getType` functionality – and now ESM support – so `mrmime` can only ever support 1/3 of what `mime` offers, at best. This would not be possible without the team behind [`mime-db`](https://github.com/jshttp/mime-db), who have painstakingly maintained an amazing database for 7+ years. Artwork created by [mintinol](https://www.deviantart.com/mintinol), which I found [here](https://www.deviantart.com/mintinol/art/Mr-Mime-373927920). Finally, thanks to [Tim Branyen](https://github.com/tbranyen) for donating the package name :) ## License MIT © [Luke Edwards](https://lukeed.com) --- END ORIGINAL BYTES --- ================================================================ nanoid@3.3.20 Declared package license: MIT Published archive: https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz Locked integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: da4db1480d9beea3483a2eda5c53b22238d0827d57da162b48f122e04d2d9987; bytes: 1095 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright 2017 Andrey Sitnik 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. --- END ORIGINAL BYTES --- ================================================================ neotraverse@1.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz Locked integrity: sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 017e1e9a337389396cc413add3f105bc1ab902a17e772a99446c6b844c68ca54; bytes: 1062 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Puru Vijay 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 10394960f8519d888de37a8c56fa2f520fbe4174061fd286b43b48e8878b75e3; bytes: 13181 --- BEGIN ORIGINAL BYTES --- # neotraverse Traverse and transform objects by visiting every node on a recursive walk. A TypeScript rewrite of [`traverse`](https://github.com/ljharb/js-traverse) with **0 dependencies**, **prototype-pollution hardening**, **~5× the throughput** and **~6× less allocation** with the functional API (up to **~10×** / **~11×** peaks on core walks). > 📖 **Full docs, security audit & live benchmarks:** **[neotraverse.puruvj.dev](https://neotraverse.puruvj.dev)** **Utility-first:** the default export is named functions (`sideEffects: false`), pay for what you use, not a monolithic class. - 🤌 **~2–6 KB brotli** (tree-shaken; ~2 KB for one walk like `forEach`, ~5.8 KB for every helper) - 🚥 Zero dependencies, no polyfills - 🎹 TypeScript: throw away `@types/traverse` - 🛡️ Safe on untrusted input ([prototype-pollution & injection hardened](#security)) - ⚡ **~5× faster** and **~6× leaner** than `traverse` with the functional API (up to **~10×** / **~11×**); **~3×** speed and **~2×** less memory on the legacy drop-in build - 🛸 ESM-first, with a legacy ES2015 CJS/ESM build - 🛟 **[`neotraverse/safe`](#neotraversesafe):** an opt-in, stack-safe iterative core that walks **200,000-deep** trees recursion can't, with a lazy `visit` iterator and copy-on-write `transform` (Node 22+) ## Benchmarks (summary) Geometric-mean speedup versus the original `traverse` across the full operation × shape matrix: | Build | Speedup vs `traverse` | Allocation vs `traverse` (core walks) | | ----------------------------------- | ------------------------------------------------------------------- | --------------------------------------------------- | | **neotraverse modern** (functional) | **≈ 4.9×** (full matrix) · **≈ 5.6×** (core walks) · **up to ~10×** | **≈ 5.7× less** · **up to ~11×** (`forEach · wide`) | | **neotraverse legacy** (drop-in) | **≈ 3×** | **≈ 2× less** | Core traversal ops (`forEach` / `map` / `clone` / `reduce` / `paths` / `nodes`) on the **functional** build land at **~3–10×** throughput and **~6× less heap** on average vs `traverse` (peaks: `clone · small` **~9.9×** speed, `forEach · wide` **~11×** memory). See the [full table](#benchmarks-full) or the [interactive benchmarks page](https://neotraverse.puruvj.dev/benchmarks). Reproduce with `pnpm bench`. ## Install ```sh npm install neotraverse ``` ## Bundle size (tree-shaken, brotli) Measured with esbuild + brotli from published ESM ([`bench/bundle-sizes.json`](./bench/bundle-sizes.json); `pnpm bundle-size`): | Import | Brotli | | ------------------------------------------------------- | --------------- | | One walk terminal (`forEach`, `map`, `find`, `size`, …) | **~2 KB** | | Path only (`get` / `has` / `set` or `getPath`) | **~0.3–0.5 KB** | | Every functional helper | **~5.8 KB** | ## Quick start ```ts // the default export: tree-shakeable functions, `ctx` argument (recommended) import { forEach } from 'neotraverse'; forEach({ a: 1, b: 2, c: [3, 4] }, (ctx, x) => { if (typeof x === 'number') ctx.update(x * 10); }); ``` ```ts // classic `traverse`-compatible API (drop-in for the original `traverse`) import traverse from 'neotraverse/legacy'; traverse({ a: 1, b: 2, c: [3, 4] }).forEach(function (x) { if (typeof x === 'number') this.update(x * 10); }); ``` ```ts // the deprecated 0.x `Traverse` class lives here, removed in v2 import { Traverse } from 'neotraverse/modern'; ``` ## `neotraverse/safe` A second, opt-in entry point for input that is **deep, untrusted, huge, or only partially consumed**. The default `neotraverse` walk is recursive (fast, but it overflows the call stack on deep enough input). `neotraverse/safe` runs on an **iterative** engine, so it traverses arbitrarily deep trees that crash a recursive walker (measured: the default overflows past **~2,000** levels; `/safe` handles **200,000+**). It is also lazy and copy-on-write. ```ts import { visit, transform } from 'neotraverse/safe'; // lazy iteration: stop early, never materialize the rest const first5 = visit(huge) .filter((v) => typeof v.value === 'string') .take(5) .toArray(); // copy-on-write: shares untouched subtrees, returns the input by identity on a no-op const redacted = transform(doc, { '**.{password,token}': (v, { replace }) => replace('***') }); ``` It ships a twelve-export surface: `visit`, `transform` / `transformAsync`, `get` / `set` / `has`, `clone`, `equal`, `merge`, `diff`, `patch`, `resolveRefs`. **The honest trade-off:** on a full eager scan `/safe` runs at roughly **0.8×** the default (still ~4× faster than `traverse`), and materializing a whole tree costs a little more memory. It wins on **stack safety**, on **early-exit memory** (~6× less peak on a `filter().take()` chain), and on **copy-on-write** edits. Requires **Node 22+** / evergreen browsers (it uses native ES2025 iterator helpers). See the [`/safe` guide](https://neotraverse.puruvj.dev/guide/safe). ## Builds & browser support | Build | Import | Contents | Module | Target | Browsers | | ----------- | -------------------- | ---------------------------------- | --------- | ------ | --------------------------------------------- | | **default** | `neotraverse` | functional API (recommended) | ESM | ES2022 | Chrome/Edge 94+, Firefox 93+, Safari 15+ | | **safe** | `neotraverse/safe` | stack-safe iterative core (opt-in) | ESM | ES2024 | Node 22+, evergreen browsers | | **modern** | `neotraverse/modern` | deprecated `Traverse` class only | ESM | ES2022 | Chrome/Edge 94+, Firefox 93+, Safari 15+ | | **legacy** | `neotraverse/legacy` | classic `traverse` drop-in | CJS + ESM | ES2015 | Chrome 51+, Firefox 54+, Safari 10+, Edge 15+ | > ⚠️ **1.0 breaking changes:** the default export (`neotraverse`) is now the functional API, not the classic `traverse` default. Move classic drop-in imports to `neotraverse/legacy`, and `import { Traverse }` to `neotraverse/modern`. The legacy build also targets **ES2015** (was ES5); only environments needing literal ES5 (e.g. IE11) are affected. ## Security `neotraverse` is safe to run on **untrusted data**: - **No prototype pollution:** `set(path, value)` refuses `__proto__` / `constructor` / `prototype` keys. - **No prototype injection:** `clone()` / `map()` of hostile JSON like `{"__proto__":{"isAdmin":true}}` keep their real prototype; `result.isAdmin` is `undefined`. - **Prototype preservation intact:** legitimate `instanceof` still works after a clone. - **No prototype-chain disclosure:** `get()` / `has()` follow only own properties. ```ts import { clone } from 'neotraverse'; const evil = JSON.parse('{"user":"bob","__proto__":{"isAdmin":true}}'); clone(evil).isAdmin; // undefined ({}).isAdmin; // undefined, global prototype untouched ``` Read the full story in the [**1.0 release post**](https://puruvj.dev/blog/neotraverse-1-0). ### DoS guard Bound recursion on deeply-nested hostile input with `maxDepth` (throws a catchable `RangeError`; unlimited by default): ```ts clone(untrusted, { maxDepth: 1000 }); ``` > The hardening and DoS guards apply to the **functional** API. The `neotraverse/legacy` drop-in is intentionally kept behaviour-compatible with the original `traverse` and does **not** receive them — run untrusted data through the functional API. ## Migrating from `traverse` **[Differences from traverse](https://neotraverse.puruvj.dev/guide/vs-traverse):** drop-in vs functional, what's new, which build to use. ```diff -import traverse from 'traverse'; +import traverse from 'neotraverse/legacy'; ``` ```sh npm install neotraverse && npm uninstall traverse @types/traverse ``` The legacy API is identical to `traverse`. For new code, prefer the functional default export. ## API **Functional (`neotraverse`, recommended):** `forEach`, `map`, `clone`, `reduce`, `find`, `filter`, `some`, `every`, `paths`, `nodes`, `get`, `set`, `has`, `entries`, `values`, `walk`, `breadthFirst`, `mapBfs`, `forEachAsync`, `mapAsync`, plus `findPaths`, `filterPaths`, `getPath`, `setPath`, `hasPath`, `parsePath`, `parseDotPath`, `parseJsonPointer`, `pointerPath`, `parseGlob`, `count`, `size`, `getType`, `groupBy`, `skipWhere`, `deleteWhere`, `prune`, `pruneDeep`, `sanitize`, `deepEqual`, `merge`, `dereference`, `toJSON`, `freeze`, `diff`, `patch`, `select`. Options are always the last argument. **Deprecated class (`neotraverse/modern`):** the `Traverse` class (`.get`/`.has`/`.set`/`.map`/`.forEach`/`.reduce`/`.paths`/`.nodes`/`.clone`) is deprecated and **removed in v2** — use the functions above. **Classic (`neotraverse/legacy`):** `.map(fn)` · `.forEach(fn)` · `.reduce(fn, acc)` · `.paths()` · `.nodes()` · `.clone()` · `.get(path)` · `.set(path, value)` · `.has(path)` on a traversal instance (`this`-bound context). Options: `{ immutable?, includeSymbols?, maxDepth?, signal? }` (`signal` is async-only on modern). Each callback gets a context (`ctx` in modern, `this` in classic) with `node`, `path`, `parent`, `key`, `isRoot`, `isLeaf`, `isFirst`, `isLast`, `level`, `circular`, and the mutators `update()`, `remove()`, `delete()`, `before()`, `after()`, `pre()`, `post()`, `stop()`, `block()`. 👉 Full API reference, examples, and context docs: **[neotraverse.puruvj.dev/guide](https://neotraverse.puruvj.dev/guide)**. ## Benchmarks (full) {#benchmarks-full} `neotraverse` vs `traverse`, ops/sec (and ×speedup). Generated by [`bench/run.ts`](./bench/run.ts) via [tinybench](https://github.com/tinylibs/tinybench); see [`bench/results.json`](./bench/results.json). | Operation · shape | traverse | neotraverse legacy | neotraverse modern | | ----------------- | ---------: | -----------------: | -----------------: | | `forEach · small` | 841,043 | 2,414,704 (2.87×) | 4,016,013 (4.78×) | | `forEach · wide` | 79,308 | 284,208 (3.58×) | 594,241 (7.49×) | | `forEach · deep` | 53,214 | 160,316 (3.01×) | 330,800 (6.22×) | | `forEach · array` | 3,019 | 10,186 (3.37×) | 21,242 (7.04×) | | `forEach · json` | 57,421 | 186,579 (3.25×) | 382,143 (6.66×) | | `map · small` | 393,442 | 1,268,242 (3.22×) | 2,267,588 (5.76×) | | `map · wide` | 50,468 | 106,498 (2.11×) | 183,870 (3.64×) | | `map · deep` | 18,833 | 87,198 (4.63×) | 136,623 (7.25×) | | `map · array` | 1,421 | 4,376 (3.08×) | 8,619 (6.07×) | | `map · json` | 23,178 | 83,958 (3.62×) | 151,069 (6.52×) | | `clone · small` | 494,252 | 3,356,979 (6.79×) | 4,884,062 (9.88×) | | `clone · wide` | 209,591 | 309,111 (1.47×) | 574,325 (2.74×) | | `clone · deep` | 27,853 | 170,807 (6.13×) | 260,473 (9.35×) | | `clone · array` | 3,250 | 11,408 (3.51×) | 15,411 (4.74×) | | `clone · json` | 42,207 | 205,740 (4.87×) | 303,054 (7.18×) | | `reduce · small` | 796,994 | 2,201,209 (2.76×) | 3,536,758 (4.44×) | | `reduce · wide` | 75,627 | 260,493 (3.44×) | 489,665 (6.47×) | | `reduce · deep` | 50,668 | 145,498 (2.87×) | 288,933 (5.7×) | | `reduce · array` | 2,909 | 9,229 (3.17×) | 17,781 (6.11×) | | `reduce · json` | 55,255 | 173,837 (3.15×) | 328,782 (5.95×) | | `paths · small` | 811,923 | 2,279,936 (2.81×) | 3,402,905 (4.19×) | | `paths · wide` | 77,412 | 268,188 (3.46×) | 475,490 (6.14×) | | `paths · deep` | 50,955 | 151,982 (2.98×) | 212,666 (4.17×) | | `paths · array` | 2,976 | 9,566 (3.21×) | 16,368 (5.5×) | | `paths · json` | 56,251 | 177,158 (3.15×) | 294,870 (5.24×) | | `nodes · small` | 800,765 | 2,258,624 (2.82×) | 3,490,623 (4.36×) | | `nodes · wide` | 76,618 | 265,446 (3.46×) | 506,638 (6.61×) | | `nodes · deep` | 51,151 | 149,846 (2.93×) | 288,099 (5.63×) | | `nodes · array` | 2,943 | 9,442 (3.21×) | 17,715 (6.02×) | | `nodes · json` | 55,541 | 176,656 (3.18×) | 328,321 (5.91×) | | `get · json` | 18,069,492 | 22,168,643 (1.23×) | 21,280,988 (1.18×) | | `has · json` | 18,943,414 | 22,254,349 (1.17×) | 22,156,236 (1.17×) | | `set · json` | 23,632,276 | 23,862,298 (1.01×) | 19,365,527 (0.82×) | > `get` / `has` / `set` are micro-ops (20M+ ops/s); all three builds are within noise of each other and of `traverse`. The legacy class stores its state in plain instance fields (not `#private`, which would downlevel to WeakMaps at ES2015), so these stay native-fast on the drop-in too. ## License [MIT](./LICENSE), [Puru Vijay](https://puruvj.dev). --- END ORIGINAL BYTES --- ================================================================ nlcst-to-string@4.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/nlcst-to-string/-/nlcst-to-string-4.0.0.tgz Locked integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 9966260ba3ea9d6a5f839297dca80ddc99735a34b4ae82811cac7b956d2e3afd; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2014 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: dcbadab3c5501db06e205d4b8ed631d89416b8c07dee5423beabe052378f27ed; bytes: 4344 --- BEGIN ORIGINAL BYTES --- # nlcst-to-string [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [nlcst][] utility to serialize a node. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`toString(value)`](#tostringvalue) * [Types](#types) * [Compatibility](#compatibility) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a utility that takes [nlcst][] nodes and gets their plain-text value. ## When should I use this? This is a small utility that is useful when you’re dealing with ASTs. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install nlcst-to-string ``` In Deno with [`esm.sh`][esmsh]: ```js import {toString} from 'https://esm.sh/nlcst-to-string@4' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {toString} from 'nlcst-to-string' console.log( toString({ type: 'WordNode', children: [ {type: 'TextNode', value: 'AT'}, {type: 'SymbolNode', value: '&'}, {type: 'TextNode', value: 'T'} ] }) ) // => 'AT&T' ``` ## API This package exports the identifier [`toString`][api-to-string]. There is no default export. ### `toString(value)` Get the text content of a node or list of nodes. Prefers the node’s plain-text fields, otherwise serializes its children, and if the given value is an array, serialize the nodes in it. ###### Parameters * `node` ([`Array`][node] or `Node`) — node or list of nodes to serialize ###### Returns Result (`string`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `nlcst-to-string@^4`, compatible with Node.js 16. ## Contribute See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/nlcst-to-string/workflows/main/badge.svg [build]: https://github.com/syntax-tree/nlcst-to-string/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/nlcst-to-string.svg [coverage]: https://codecov.io/github/syntax-tree/nlcst-to-string [downloads-badge]: https://img.shields.io/npm/dm/nlcst-to-string.svg [downloads]: https://www.npmjs.com/package/nlcst-to-string [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=nlcst-to-string [size]: https://bundlejs.com/?q=nlcst-to-string [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [license]: license [author]: https://wooorm.com [health]: https://github.com/syntax-tree/.github [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [support]: https://github.com/syntax-tree/.github/blob/main/support.md [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [nlcst]: https://github.com/syntax-tree/nlcst [node]: https://github.com/syntax-tree/nlcst#nodes [api-to-string]: #tostringvalue --- END ORIGINAL BYTES --- ================================================================ node-fetch-native@1.6.7 Declared package license: MIT Published archive: https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz Locked integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 22a1b925621a4fb60cb9df9914612f12482e275c9f545035599fc528b4979da9; bytes: 5623 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- https://github.com/node-fetch/node-fetch The MIT License (MIT) Copyright (c) 2016 - 2020 Node Fetch Team 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. --- https://github.com/mysticatea/abort-controller MIT License Copyright (c) 2017 Toru Nagashima 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. --- https://github.com/TooTallNate/proxy-agents (The MIT License) Copyright (c) 2013 Nathan Rajlich 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. --- https://github.com/nodejs/undici MIT License Copyright (c) Matteo Collina and Undici contributors 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 696f0d9707bf9cd76739bf9c6e0b8ac3193e3462ec3014b53c80d068d1ab893e; bytes: 7836 --- BEGIN ORIGINAL BYTES --- # node-fetch-native [![][npm-version-src]][npm-version-href] [![][github-actions-src]][github-actions-href] [![][packagephobia-src]][packagephobia-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] A redistribution of [node-fetch v3](https://github.com/node-fetch/node-fetch) (+ more!) for better backward and forward compatibility. **Why this package?** - We can no longer `require('node-fetch')` with the latest version. This stopped popular libraries from upgrading and dependency conflicts between `node-fetch@2` and `node-fetch@3`. - With upcoming versions of Node.js, native `fetch` is being supported. We are prepared for native fetch support using this package yet keep supporting older Node versions. - With the introduction of native fetch to Node.js via [undici](https://github.com/nodejs/undici) there is no easy way to support http proxies! **Features:** ✅ Prefer to **native globals** when available (See Node.js [experimental fetch](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch)). ✅ Compact build and less install size with **zero dependencies** [![][packagephobia-s-src]][packagephobia-s-href] vs [![][packagephobia-s-alt-src]][packagephobia-s-alt-href] ✅ Support both **CommonJS** (`require`) and **ESM** (`import`) usage ✅ Use native version if imported without `node` condition using [conditional exports](https://nodejs.org/api/packages.html#packages_conditional_exports) with **zero bundle overhead** ✅ Polyfill support for Node.js ✅ Compact and simple proxy supporting both Node.js versions without native fetch using [HTTP Agent](https://github.com/TooTallNate/proxy-agents/tree/main/packages/proxy-agent) and versions with native fetch using [Undici Proxy Agent](https://undici.nodejs.org/#/docs/api/ProxyAgent) ## Usage Install `node-fetch-native` dependency: ```sh # npm npm i node-fetch-native # yarn yarn add node-fetch-native # pnpm pnpm i node-fetch-native ``` You can now either import or require the dependency: ```js // ESM import fetch from "node-fetch-native"; // CommonJS const fetch = require("node-fetch-native"); ``` More named exports: ```js // ESM import { fetch, Blob, FormData, Headers, Request, Response, AbortController, } from "node-fetch-native"; // CommonJS const { fetch, Blob, FormData, Headers, Request, Response, AbortController, } = require("node-fetch-native"); ``` ## Force using non-native version Sometimes you want to explicitly use none native (`node-fetch`) implementation of `fetch` in case of issues with the native/polyfill version of `globalThis.fetch` with Node.js or runtime environment. You have two ways to do this: - Set the `FORCE_NODE_FETCH` environment variable before starting the application. - Import from `node-fetch-native/node` ## Disable runtime check Once the `node-fetch-native/node` module is loaded, it pushes a log warning if the current runtime differs from the Node.js. Set the `DISABLE_NODE_FETCH_NATIVE_WARN` environment variable to turn this check off. ## Polyfill support Using the polyfill method, we can ensure global fetch is available in the environment and all files. Natives are always preferred. **Note:** I don't recommend this if you are authoring a library! Please prefer the explicit methods. ```js // ESM import "node-fetch-native/polyfill"; // CJS require("node-fetch-native/polyfill"); // You can now use fetch() without any import! ``` ## Proxy Support Node.js has no built-in support for HTTP Proxies for fetch (see [nodejs/undici#1650](https://github.com/nodejs/undici/issues/1650) and [nodejs/node#8381](https://github.com/nodejs/node/issues/8381)) This package bundles a compact and simple proxy-supported solution for both Node.js versions without native fetch using [HTTP Agent](https://github.com/TooTallNate/proxy-agents/tree/main/packages/proxy-agent) and versions with native fetch using [Undici Proxy Agent](https://undici.nodejs.org/#/docs/api/ProxyAgent). By default, `https_proxy`, `http_proxy`, `HTTPS_PROXY`, and `HTTP_PROXY` environment variables will be checked and used (in order) for the proxy and if not any of them are set, the proxy will be disabled. You can override it using the `url` option passed to `createFetch` and `createProxy` utils. By default, `no_proxy` and `NO_PROXY` environment variables will be checked and used for the (comma-separated) list of hosts to ignore the proxy for. You can override it using the `noProxy` option passed to `createFetch` and `createProxy` utils. The entries starting with a dot will be used to check the domain and also any subdomain. > [!NOTE] > Using export conditions, this utility adds proxy support for Node.js and for other runtimes, it will simply return native fetch. ### `fetch` with proxy support You can simply import `{ fetch }` from `node-fetch-native/proxy` with a preconfigured `fetch` function that has proxy support. ```ts import { fetch } from "node-fetch-native/proxy"; console.log(await fetch("https://icanhazip.com").then((r) => r.text())); ``` ### `createFetch` utility You can use the `createFetch` utility to instantiate a `fetch` instance with custom proxy options. ```ts import { createFetch } from "node-fetch-native/proxy"; const fetch = createFetch({ url: "http://localhost:9080" }); console.log(await fetch("https://icanhazip.com").then((r) => r.text())); ``` ### `createProxy` utility `createProxy` returns an object with `agent` and `dispatcher` keys that can be passed as fetch options. ```ts import { fetch } from "node-fetch-native"; import { createProxy } from "node-fetch-native/proxy"; const proxy = createProxy(); // const proxy = createProxy({ url: "http://localhost:8080" }); console.log( await fetch("https://icanhazip.com", { ...proxy }).then((r) => r.text()), ); ``` ## Alias to `node-fetch` Using this method, you can ensure all project dependencies and usages of `node-fetch` can benefit from improved `node-fetch-native` and won't conflict between `node-fetch@2` and `node-fetch@3`. ### npm Using npm [overrides](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides): ```jsonc // package.json { "overrides": { "node-fetch": "npm:node-fetch-native@latest", }, } ``` ### yarn Using yarn [selective dependency resolutions](https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/): ```jsonc // package.json { "resolutions": { "node-fetch": "npm:node-fetch-native@latest", }, } ``` ### pnpm Using [pnpm.overrides](https://pnpm.io/package_json#pnpmoverrides): ```jsonc // package.json { "pnpm": { "overrides": { "node-fetch": "npm:node-fetch-native@latest", }, }, } ``` ## License Made with 💛 Published under the [MIT](./LICENSE) license. [npm-version-src]: https://flat.badgen.net/npm/v/node-fetch-native [npm-version-href]: https://npmjs.com/package/node-fetch-native [npm-downloads-src]: https://flat.badgen.net/npm/dm/node-fetch-native [npm-downloads-href]: https://npmjs.com/package/node-fetch-native [github-actions-src]: https://flat.badgen.net/github/checks/unjs/node-fetch-native [github-actions-href]: https://github.com/unjs/node-fetch-native/actions?query=workflow%3Aci [packagephobia-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native [packagephobia-href]: https://packagephobia.com/result?p=node-fetch-native [packagephobia-s-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native?label=node-fetch-native&scale=.9 [packagephobia-s-href]: https://packagephobia.com/result?p=node-fetch-native [packagephobia-s-alt-src]: https://flat.badgen.net/packagephobia/install/node-fetch?label=node-fetch&scale=.9 [packagephobia-s-alt-href]: https://packagephobia.com/result?p=node-fetch --- END ORIGINAL BYTES --- ================================================================ node-mock-http@1.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.5.tgz Locked integrity: sha512-KQyt/wLjG3TAc7DOUhpqWzgd4ERxR80JOlTK5VE5R1S12IaPVN5qkj4klBce9HPG1Njuup4Sb5bljaT34lIyjw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a12c3d66c90212bd599fb4c7c2e771d79440c84b3a229f9164cf20f59411c140; bytes: 1051 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 68645bd0cf0f741fc61976bdd0ea3a12ab9e9e1f502b04d598658ce4984b530a; bytes: 1799 --- BEGIN ORIGINAL BYTES --- # node-mock-http [![npm version](https://img.shields.io/npm/v/node-mock-http?color=yellow)](https://npmjs.com/package/node-mock-http) [![npm downloads](https://img.shields.io/npm/dm/node-mock-http?color=yellow)](https://npm.chart.dev/node-mock-http) Node.js [`http.IncomingMessage`](https://nodejs.org/api/http.html#class-httpincomingmessage) and [`http.ServerResponse`](https://nodejs.org/api/http.html#class-httpserverresponse) mocked implementations that allows emulate calling Node.js http handlers. (based on [unjs/unenv v1](https://github.com/unjs/unenv/tree/v1)). ## Usage > [!NOTE] > Documentation is incomplete! ```js import { fetchNodeRequestHandler } from "node-mock-http"; const nodeHandler = (req, res) => { res.end("OK!"); }; const res = await fetchNodeRequestHandler( nodeHandler, "http://example.com/test", ); ``` ## Development
local development - Clone this repository - Install latest LTS version of [Node.js](https://nodejs.org/en/) - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Build project in stub mode using `pnpm build --stub` - Run interactive tests using `pnpm dev`
## License Published under the [MIT](https://github.com/unjs/node-mock-http/blob/main/LICENSE) license. Made by [community](https://github.com/unjs/node-mock-http/graphs/contributors) 💛

--- _🤖 auto updated with [automd](https://automd.unjs.io)_ --- END ORIGINAL BYTES --- ================================================================ normalize-path@3.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz Locked integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: e70ff771504ba41f2be55de812a017ff46433d7a250c862e38fc419159e44500; bytes: 1088 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2014-2018, Jon Schlinkert. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: af3e56f394e970e17051724817e0b8b0c6b98f3376681cf48973180074a9e83b; bytes: 5441 --- BEGIN ORIGINAL BYTES --- # normalize-path [![NPM version](https://img.shields.io/npm/v/normalize-path.svg?style=flat)](https://www.npmjs.com/package/normalize-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/normalize-path.svg?style=flat)](https://npmjs.org/package/normalize-path) [![NPM total downloads](https://img.shields.io/npm/dt/normalize-path.svg?style=flat)](https://npmjs.org/package/normalize-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/normalize-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/normalize-path) > Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled. Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. ## Install Install with [npm](https://www.npmjs.com/): ```sh $ npm install --save normalize-path ``` ## Usage ```js const normalize = require('normalize-path'); console.log(normalize('\\foo\\bar\\baz\\')); //=> '/foo/bar/baz' ``` **win32 namespaces** ```js console.log(normalize('\\\\?\\UNC\\Server01\\user\\docs\\Letter.txt')); //=> '//?/UNC/Server01/user/docs/Letter.txt' console.log(normalize('\\\\.\\CdRomX')); //=> '//./CdRomX' ``` **Consecutive slashes** Condenses multiple consecutive forward slashes (except for leading slashes in win32 namespaces) to a single slash. ```js console.log(normalize('.//foo//bar///////baz/')); //=> './foo/bar/baz' ``` ### Trailing slashes By default trailing slashes are removed. Pass `false` as the last argument to disable this behavior and _**keep** trailing slashes_: ```js console.log(normalize('foo\\bar\\baz\\', false)); //=> 'foo/bar/baz/' console.log(normalize('./foo/bar/baz/', false)); //=> './foo/bar/baz/' ``` ## Release history ### v3.0 No breaking changes in this release. * a check was added to ensure that [win32 namespaces](https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces) are handled properly by win32 `path.parse()` after a path has been normalized by this library. * a minor optimization was made to simplify how the trailing separator was handled ## About
Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
Running Tests Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: ```sh $ npm install && npm test ```
Building docs _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ To generate the readme, run the following command: ```sh $ npm install -g verbose/verb#dev verb-generate-readme && verb ```
### Related projects Other useful path-related libraries: * [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path "Return true if a file path contains the given path.") * [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. Does not rely on the path module… [more](https://github.com/jonschlinkert/is-absolute) | [homepage](https://github.com/jonschlinkert/is-absolute "Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.") * [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative "Returns `true` if the path appears to be relative.") * [parse-filepath](https://www.npmjs.com/package/parse-filepath): Pollyfill for node.js `path.parse`, parses a filepath into an object. | [homepage](https://github.com/jonschlinkert/parse-filepath "Pollyfill for node.js `path.parse`, parses a filepath into an object.") * [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with "Return `true` if a file path ends with the given string/suffix.") * [unixify](https://www.npmjs.com/package/unixify): Convert Windows file paths to unix paths. | [homepage](https://github.com/jonschlinkert/unixify "Convert Windows file paths to unix paths.") ### Contributors | **Commits** | **Contributor** | | --- | --- | | 35 | [jonschlinkert](https://github.com/jonschlinkert) | | 1 | [phated](https://github.com/phated) | ### Author **Jon Schlinkert** * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) * [GitHub Profile](https://github.com/jonschlinkert) * [Twitter Profile](https://twitter.com/jonschlinkert) ### License Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT License](LICENSE). *** _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 19, 2018._ --- END ORIGINAL BYTES --- ================================================================ nth-check@2.1.1 Declared package license: BSD-2-Clause Published archive: https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz Locked integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: cb992345949ccd6e8394b2cd6c465f7b897c864f845937dbf64e8997f389e164; bytes: 1260 --- BEGIN ORIGINAL BYTES --- Copyright (c) Felix Böhm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 486e46fcb359a74f56edfbb34e7be24bb46c0340d1545d6d786f8b7ea6590079; bytes: 3654 --- BEGIN ORIGINAL BYTES --- # nth-check [![Build Status](https://travis-ci.org/fb55/nth-check.svg)](https://travis-ci.org/fb55/nth-check) Parses and compiles CSS nth-checks to highly optimized functions. ### About This module can be used to parse & compile nth-checks, as they are found in CSS 3's `nth-child()` and `nth-last-of-type()`. It can be used to check if a given index matches a given nth-rule, or to generate a sequence of indices matching a given nth-rule. `nth-check` focusses on speed, providing optimized functions for different kinds of nth-child formulas, while still following the [spec](http://www.w3.org/TR/css3-selectors/#nth-child-pseudo). ### API ```js import nthCheck, { parse, compile } from "nth-check"; ``` ##### `nthCheck(formula)` Parses and compiles a formula to a highly optimized function. Combination of `parse` and `compile`. If the formula doesn't match any elements, it returns [`boolbase`](https://github.com/fb55/boolbase)'s `falseFunc`. Otherwise, a function accepting an _index_ is returned, which returns whether or not the passed _index_ matches the formula. **Note**: The nth-rule starts counting at `1`, the returned function at `0`. **Example:** ```js const check = nthCheck("2n+3"); check(0); // `false` check(1); // `false` check(2); // `true` check(3); // `false` check(4); // `true` check(5); // `false` check(6); // `true` ``` ##### `parse(formula)` Parses the expression, throws an `Error` if it fails. Otherwise, returns an array containing the integer step size and the integer offset of the nth rule. **Example:** ```js parse("2n+3"); // [2, 3] ``` ##### `compile([a, b])` Takes an array with two elements (as returned by `.parse`) and returns a highly optimized function. **Example:** ```js const check = compile([2, 3]); check(0); // `false` check(1); // `false` check(2); // `true` check(3); // `false` check(4); // `true` check(5); // `false` check(6); // `true` ``` ##### `generate([a, b])` Returns a function that produces a monotonously increasing sequence of indices. If the sequence has an end, the returned function will return `null` after the last index in the sequence. **Example:** An always increasing sequence ```js const gen = nthCheck.generate([2, 3]); gen(); // `1` gen(); // `3` gen(); // `5` gen(); // `8` gen(); // `11` ``` **Example:** With an end value ```js const gen = nthCheck.generate([-2, 5]); gen(); // 0 gen(); // 2 gen(); // 4 gen(); // null ``` ##### `sequence(formula)` Parses and compiles a formula to a generator that produces a sequence of indices. Combination of `parse` and `generate`. **Example:** An always increasing sequence ```js const gen = nthCheck.sequence("2n+3"); gen(); // `1` gen(); // `3` gen(); // `5` gen(); // `8` gen(); // `11` ``` **Example:** With an end value ```js const gen = nthCheck.sequence("-2n+5"); gen(); // 0 gen(); // 2 gen(); // 4 gen(); // null ``` --- License: BSD-2-Clause ## Security contact information To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. ## `nth-check` for enterprise Available as part of the Tidelift Subscription The maintainers of `nth-check` 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-nth-check?utm_source=npm-nth-check&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) --- END ORIGINAL BYTES --- ================================================================ obug@3.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/obug/-/obug-3.0.0.tgz Locked integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: ee48679d379ca6b4493d5e231094d85f818dd9be40b1a4f234fb7ff657ee35d9; bytes: 1205 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz) Copyright (c) 2014-2017 TJ Holowaychuk Copyright (c) 2018-2021 Josh Junon 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 04ecd0a2944e28319aa292e8ac25c6c292df036ab6cfdaeeed1d9c40a129542d; bytes: 7996 --- BEGIN ORIGINAL BYTES --- # obug [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![JSR][jsr-badge-src]][jsr-badge-href] [![Unit Test][unit-test-src]][unit-test-href] A lightweight JavaScript debugging utility, forked from [debug](https://www.npmjs.com/package/debug), featuring TypeScript and ESM support. > [!NOTE] > obug v1 retains most of the compatibility with [debug](https://github.com/debug-js/debug), but drops support for older browsers and Node.js, making it a drop-in replacement. > > obug v2 refactors some API imports and usage for better support of ESM and TypeScript, easier customization, and an even smaller package size. ## Key Differences from `debug` - ✨ Minimal footprint - 1.08 kB minified + gzipped (plain) - 1.52 kB minified + gzipped (browser) - 1.73 kB minified + gzipped (ansi) - 📦 Zero dependencies - 📝 Full TypeScript support - 🚀 Native ESM compatibility - 🌐 Optimized for modern runtimes - ES2015+ browsers - Modern Node.js versions - 🎨 Customizable formatting ## Installation ```bash npm install obug ``` ### Runtimes `obug` automatically selects ANSI output for Node.js/Bun/Deno, plain console output for React Native/Expo and Cloudflare Workers/Vercel Edge/Fastly Compute, and CSS console colors for browsers. To choose explicitly, import `obug/ansi`, `obug/plain`, or `obug/browser`. JSR defaults to the browser implementation without automatic selection. Use `jsr:@sxzz/obug/ansi` for terminals or `jsr:@sxzz/obug/plain` for plain output. ## Usage ```ts import { createDebug, disable, enable, enabled, namespaces } from 'obug' // Get the currently enabled namespaces console.log(namespaces()) const debug = createDebug('my-namespace', { // All options are optional useColors: true, // false, true, undefined for auto-detect color: 2, // custom color // custom formatArgs formatArgs(args) {}, formatters: {}, // Node.js only inspectOpts: {}, // custom log log: console.log, }) debug('This is a debug message') console.log( debug.namespace, // 'my-namespace' debug.enabled, // Check if enabled debug.useColors, // true debug.color, // 2 debug.formatArgs, // custom formatArgs debug.formatters, // {} debug.inspectOpts, // {} debug.log, // implemented log function ) // Create a sub-namespace, and it will inherit options from the parent debugger const sub = debug.extend('sub-namespace') sub('This is a sub-namespace debug message') console.log(sub.namespace) // 'my-namespace:sub-namespace' ``` ## How to use ### Enabling debug output obug picks up enabled namespaces from the `DEBUG` environment variable in Node.js, or from `localStorage.debug` in browsers. In Node.js: ```bash DEBUG=app:* node app.js ``` On Windows (CMD): ```cmd set DEBUG=app:* & node app.js ``` On Windows (PowerShell): ```powershell $env:DEBUG='app:*'; node app.js ``` In the browser, set the value in DevTools and refresh the page: ```js localStorage.debug = 'app:*' ``` ### Wildcards and exclusion The `*` character is a wildcard. Suppose your library has debuggers named `connect:bodyParser`, `connect:compress`, and `connect:session` — instead of listing each one, use `DEBUG=connect:*`. Use `DEBUG=*` to enable everything. Exclude namespaces by prefixing them with `-`: ```bash DEBUG=*,-connect:* node app.js ``` ### Namespace conventions If you're using obug in a library, prefix your namespaces with the library name and use `:` to separate features (e.g. `connect:bodyParser`). This lets users opt into the parts they care about without guessing names. ### Extending a namespace Use `.extend()` to create a sub-namespace that inherits options from its parent: ```ts const log = createDebug('auth') const logSign = log.extend('sign') // 'auth:sign' const logLogin = log.extend('login') // 'auth:login' log('hello') // auth hello logSign('hello') // auth:sign hello logLogin('hello') // auth:login hello ``` ### Formatters obug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. Built-in formatters: | Formatter | Representation | | --------- | -------------------------------------------------- | | `%O` | Pretty-print an Object on multiple lines. | | `%o` | Pretty-print an Object all on a single line. | | `%%` | Single percent sign. Does not consume an argument. | Other format specifiers supported by Node's `util.format` (`%s`, `%d`, `%j`, …) and the browser console pass through to the underlying logger. #### Custom formatters Register custom formatters via the `formatters` option. For example, to render a `Buffer` as hex with `%h`: ```ts const debug = createDebug('foo', { formatters: { h: (v) => v.toString('hex'), }, }) debug('this is hex: %h', Buffer.from('hello world')) // foo this is hex: 68656c6c6f20776f726c64 +0ms ``` ### Dynamic enable / disable You can toggle namespaces at runtime: ```ts import { disable, enable, enabled, namespaces } from 'obug' enable('app:*') console.log(enabled('app:server')) // true const previous = disable() console.log(enabled('app:server')) // false // Restore later enable(previous) ``` `namespaces()` returns the string of currently enabled namespaces. Note that calling `enable()` overrides the value initially read from `DEBUG`. ### Checking whether a debugger is enabled Guard expensive work behind the `enabled` property: ```ts const debug = createDebug('http') if (debug.enabled) { // expensive computation only when enabled } ``` You can also force the state by assigning to `debug.enabled` directly. ### Custom output By default, obug writes to `stderr` in Node.js and to the console in browsers. Override the `log` option to redirect output per-namespace: ```ts const log = createDebug('app:log', { log: console.log, }) const error = createDebug('app:error') // still goes to stderr ``` ### Environment variables (Node.js) | Name | Purpose | | ------------------- | ----------------------------------------------- | | `DEBUG` | Enables/disables specific debugging namespaces. | | `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). | | `DEBUG_COLORS` | Whether to use colors in the debug output. | | `DEBUG_DEPTH` | Object inspection depth. | | `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. | Variables prefixed with `DEBUG_` are converted to camelCase keys on the options object passed to Node's [`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options) for the `%o` / `%O` formatters. ## Original Authors As obug is a fork of debug with significant modifications, we would like to acknowledge the original authors: - TJ Holowaychuk - Nathan Rajlich - Andrew Rhyne - Josh Junon ## Sponsors

## License [MIT](./LICENSE) License © 2025-PRESENT [Kevin Deng](https://github.com/sxzz) [The MIT License](./LICENSE) Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> [The MIT License](./LICENSE) Copyright (c) 2018-2021 Josh Junon [npm-version-src]: https://img.shields.io/npm/v/obug.svg [npm-version-href]: https://npmjs.com/package/obug [npm-downloads-src]: https://img.shields.io/npm/dm/obug [npm-downloads-href]: https://www.npmcharts.com/compare/obug?interval=30 [unit-test-src]: https://github.com/sxzz/obug/actions/workflows/unit-test.yml/badge.svg [unit-test-href]: https://github.com/sxzz/obug/actions/workflows/unit-test.yml [jsr-badge-src]: https://jsr.io/badges/@sxzz/obug [jsr-badge-href]: https://jsr.io/@sxzz/obug --- END ORIGINAL BYTES --- ================================================================ ofetch@1.5.1 Declared package license: MIT Published archive: https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz Locked integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3ff3dc386b12df79fafa07d92fefe49891d00a117c9830eafc8b2d02148bef56; bytes: 14691 --- BEGIN ORIGINAL BYTES --- # ofetch [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] [![JSDocs][jsdocs-src]][jsdocs-href] A better fetch API. Works on node, browser, and workers.
Spoiler
## 🚀 Quick Start Install: ```bash # npm npm i ofetch # yarn yarn add ofetch ``` Import: ```js // ESM / Typescript import { ofetch } from "ofetch"; // CommonJS const { ofetch } = require("ofetch"); ``` ## ✔️ Works with Node.js We use [conditional exports](https://nodejs.org/api/packages.html#packages_conditional_exports) to detect Node.js and automatically use [unjs/node-fetch-native](https://github.com/unjs/node-fetch-native). If `globalThis.fetch` is available, will be used instead. To leverage Node.js 17.5.0 experimental native fetch API use [`--experimental-fetch` flag](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch). ## ✔️ Parsing Response `ofetch` will smartly parse JSON and native values using [destr](https://github.com/unjs/destr), falling back to the text if it fails to parse. ```js const { users } = await ofetch("/api/users"); ``` For binary content types, `ofetch` will instead return a `Blob` object. You can optionally provide a different parser than `destr`, or specify `blob`, `arrayBuffer`, `text` or `stream` to force parsing the body with the respective `FetchResponse` method. ```js // Use JSON.parse await ofetch("/movie?lang=en", { parseResponse: JSON.parse }); // Return text as is await ofetch("/movie?lang=en", { parseResponse: (txt) => txt }); // Get the blob version of the response await ofetch("/api/generate-image", { responseType: "blob" }); // Get the stream version of the response await ofetch("/api/generate-image", { responseType: "stream" }); ``` ## ✔️ JSON Body If an object or a class with a `.toJSON()` method is passed to the `body` option, `ofetch` automatically stringifies it. `ofetch` utilizes `JSON.stringify()` to convert the passed object. Classes without a `.toJSON()` method have to be converted into a string value in advance before being passed to the `body` option. For `PUT`, `PATCH`, and `POST` request methods, when a string or object body is set, `ofetch` adds the default `"content-type": "application/json"` and `accept: "application/json"` headers (which you can always override). Additionally, `ofetch` supports binary responses with `Buffer`, `ReadableStream`, `Stream`, and [compatible body types](https://developer.mozilla.org/en-US/docs/Web/API/fetch#body). `ofetch` will automatically set the `duplex: "half"` option for streaming support! **Example:** ```js const { users } = await ofetch("/api/users", { method: "POST", body: { some: "json" }, }); ``` ## ✔️ Handling Errors `ofetch` Automatically throws errors when `response.ok` is `false` with a friendly error message and compact stack (hiding internals). A parsed error body is available with `error.data`. You may also use `FetchError` type. ```ts await ofetch("https://google.com/404"); // FetchError: [GET] "https://google/404": 404 Not Found // at async main (/project/playground.ts:4:3) ``` To catch error response: ```ts await ofetch("/url").catch((error) => error.data); ``` To bypass status error catching you can set `ignoreResponseError` option: ```ts await ofetch("/url", { ignoreResponseError: true }); ``` ## ✔️ Auto Retry `ofetch` Automatically retries the request if an error happens and if the response status code is included in `retryStatusCodes` list: **Retry status codes:** - `408` - Request Timeout - `409` - Conflict - `425` - Too Early ([Experimental](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data)) - `429` - Too Many Requests - `500` - Internal Server Error - `502` - Bad Gateway - `503` - Service Unavailable - `504` - Gateway Timeout You can specify the amount of retry and delay between them using `retry` and `retryDelay` options and also pass a custom array of codes using `retryStatusCodes` option. The default for `retry` is `1` retry, except for `POST`, `PUT`, `PATCH`, and `DELETE` methods where `ofetch` does not retry by default to avoid introducing side effects. If you set a custom value for `retry` it will **always retry** for all requests. The default for `retryDelay` is `0` ms. ```ts await ofetch("http://google.com/404", { retry: 3, retryDelay: 500, // ms retryStatusCodes: [ 404, 500 ], // response status codes to retry }); ``` ## ✔️ Timeout You can specify `timeout` in milliseconds to automatically abort a request after a timeout (default is disabled). ```ts await ofetch("http://google.com/404", { timeout: 3000, // Timeout after 3 seconds }); ``` ## ✔️ Type Friendly The response can be type assisted: ```ts const article = await ofetch
(`/api/article/${id}`); // Auto complete working with article.id ``` ## ✔️ Adding `baseURL` By using `baseURL` option, `ofetch` prepends it for trailing/leading slashes and query search params for baseURL using [ufo](https://github.com/unjs/ufo): ```js await ofetch("/config", { baseURL }); ``` ## ✔️ Adding Query Search Params By using `query` option (or `params` as alias), `ofetch` adds query search params to the URL by preserving the query in the request itself using [ufo](https://github.com/unjs/ufo): ```js await ofetch("/movie?lang=en", { query: { id: 123 } }); ``` ## ✔️ Interceptors Providing async interceptors to hook into lifecycle events of `ofetch` call is possible. You might want to use `ofetch.create` to set shared interceptors. ### `onRequest({ request, options })` `onRequest` is called as soon as `ofetch` is called, allowing you to modify options or do simple logging. ```js await ofetch("/api", { async onRequest({ request, options }) { // Log request console.log("[fetch request]", request, options); // Add `?t=1640125211170` to query search params options.query = options.query || {}; options.query.t = new Date(); }, }); ``` ### `onRequestError({ request, options, error })` `onRequestError` will be called when the fetch request fails. ```js await ofetch("/api", { async onRequestError({ request, options, error }) { // Log error console.log("[fetch request error]", request, error); }, }); ``` ### `onResponse({ request, options, response })` `onResponse` will be called after `fetch` call and parsing body. ```js await ofetch("/api", { async onResponse({ request, response, options }) { // Log response console.log("[fetch response]", request, response.status, response.body); }, }); ``` ### `onResponseError({ request, options, response })` `onResponseError` is the same as `onResponse` but will be called when fetch happens but `response.ok` is not `true`. ```js await ofetch("/api", { async onResponseError({ request, response, options }) { // Log error console.log( "[fetch response error]", request, response.status, response.body ); }, }); ``` ### Passing array of interceptors If necessary, it's also possible to pass an array of function that will be called sequentially. ```js await ofetch("/api", { onRequest: [ () => { /* Do something */ }, () => { /* Do something else */ }, ], }); ``` ## ✔️ Create fetch with default options This utility is useful if you need to use common options across several fetch calls. **Note:** Defaults will be cloned at one level and inherited. Be careful about nested options like `headers`. ```js const apiFetch = ofetch.create({ baseURL: "/api" }); apiFetch("/test"); // Same as ofetch('/test', { baseURL: '/api' }) ``` ## 💡 Adding headers By using `headers` option, `ofetch` adds extra headers in addition to the request default headers: ```js await ofetch("/movies", { headers: { Accept: "application/json", "Cache-Control": "no-cache", }, }); ``` ## 🍣 Access to Raw Response If you need to access raw response (for headers, etc), you can use `ofetch.raw`: ```js const response = await ofetch.raw("/sushi"); // response._data // response.headers // ... ``` ## 🌿 Using Native Fetch As a shortcut, you can use `ofetch.native` that provides native `fetch` API ```js const json = await ofetch.native("/sushi").then((r) => r.json()); ``` ## 📡 SSE **Example:** Handle SSE response: ```js const stream = await ofetch("/sse") const reader = stream.getReader(); const decoder = new TextDecoder() while (true) { const { done, value } = await reader.read(); if (done) break; // Here is the chunked text of the SSE response. const text = decoder.decode(value) } ``` ## 🕵️ Adding HTTP(S) Agent In Node.js (>= 18) environments, you can provide a custom dispatcher to intercept requests and support features such as Proxy and self-signed certificates. This feature is enabled by [undici](https://undici.nodejs.org/) built-in Node.js. [read more](https://undici.nodejs.org/#/docs/api/Dispatcher) about the Dispatcher API. Some available agents: - `ProxyAgent`: A Proxy Agent class that implements the Agent API. It allows the connection through a proxy in a simple way. ([docs](https://undici.nodejs.org/#/docs/api/ProxyAgent)) - `MockAgent`: A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. ([docs](https://undici.nodejs.org/#/docs/api/MockAgent)) - `Agent`: Agent allows dispatching requests against multiple different origins. ([docs](https://undici.nodejs.org/#/docs/api/Agent)) **Example:** Set a proxy agent for one request: ```ts import { ProxyAgent } from "undici"; import { ofetch } from "ofetch"; const proxyAgent = new ProxyAgent("http://localhost:3128"); const data = await ofetch("https://icanhazip.com", { dispatcher: proxyAgent }); ``` **Example:** Create a custom fetch instance that has proxy enabled: ```ts import { ProxyAgent, setGlobalDispatcher } from "undici"; import { ofetch } from "ofetch"; const proxyAgent = new ProxyAgent("http://localhost:3128"); const fetchWithProxy = ofetch.create({ dispatcher: proxyAgent }); const data = await fetchWithProxy("https://icanhazip.com"); ``` **Example:** Set a proxy agent for all requests: ```ts import { ProxyAgent, setGlobalDispatcher } from "undici"; import { ofetch } from "ofetch"; const proxyAgent = new ProxyAgent("http://localhost:3128"); setGlobalDispatcher(proxyAgent); const data = await ofetch("https://icanhazip.com"); ``` **Example:** Allow self-signed certificates (USE AT YOUR OWN RISK!) ```ts import { Agent } from "undici"; import { ofetch } from "ofetch"; // Note: This makes fetch unsecure against MITM attacks. USE AT YOUR OWN RISK! const unsecureAgent = new Agent({ connect: { rejectUnauthorized: false } }); const unsecureFetch = ofetch.create({ dispatcher: unsecureAgent }); const data = await unsecureFetch("https://www.squid-cache.org/"); ``` On older Node.js version (<18), you might also use use `agent`: ```ts import { HttpsProxyAgent } from "https-proxy-agent"; await ofetch("/api", { agent: new HttpsProxyAgent("http://example.com"), }); ``` ### `keepAlive` support (only works for Node < 18) By setting the `FETCH_KEEP_ALIVE` environment variable to `true`, an HTTP/HTTPS agent will be registered that keeps sockets around even when there are no outstanding requests, so they can be used for future requests without having to re-establish a TCP connection. **Note:** This option can potentially introduce memory leaks. Please check [node-fetch/node-fetch#1325](https://github.com/node-fetch/node-fetch/pull/1325). ### 💪 Augment `FetchOptions` interface You can augment the `FetchOptions` interface to add custom properties. ```ts // Place this in any `.ts` or `.d.ts` file. // Ensure it's included in the project's tsconfig.json "files". declare module "ofetch" { interface FetchOptions { // Custom properties requiresAuth?: boolean; } } export {} ``` This lets you pass and use those properties with full type safety throughout `ofetch` calls. ```ts const myFetch = ofetch.create({ onRequest(context) { // ^? { ..., options: {..., requiresAuth?: boolean }} console.log(context.options.requiresAuth); }, }); myFetch("/foo", { requiresAuth: true }) ``` ## 📦 Bundler Notes - All targets are exported with Module and CommonJS format and named exports - No export is transpiled for the sake of modern syntax - You probably need to transpile `ofetch`, `destr`, and `ufo` packages with Babel for ES5 support - You need to polyfill `fetch` global for supporting legacy browsers like using [unfetch](https://github.com/developit/unfetch) ## ❓ FAQ **Why export is called `ofetch` instead of `fetch`?** Using the same name of `fetch` can be confusing since API is different but still, it is a fetch so using the closest possible alternative. You can, however, import `{ fetch }` from `ofetch` which is auto-polyfill for Node.js and using native otherwise. **Why not have default export?** Default exports are always risky to be mixed with CommonJS exports. This also guarantees we can introduce more utils without breaking the package and also encourage using `ofetch` name. **Why not transpiled?** By transpiling libraries, we push the web backward with legacy code which is unneeded for most of the users. If you need to support legacy users, you can optionally transpile the library in your build pipeline. ## License MIT. Made with 💖 [npm-version-src]: https://img.shields.io/npm/v/ofetch?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/ofetch [npm-downloads-src]: https://img.shields.io/npm/dm/ofetch?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/ofetch [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/ofetch/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/ofetch [bundle-src]: https://img.shields.io/bundlephobia/minzip/ofetch?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=ofetch [license-src]: https://img.shields.io/github/license/unjs/ofetch.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/ofetch/blob/main/LICENSE [jsdocs-src]: https://img.shields.io/badge/jsDocs.io-reference-18181B?style=flat&colorA=18181B&colorB=F0DB4F [jsdocs-href]: https://www.jsdocs.io/package/ofetch --- END ORIGINAL BYTES --- ================================================================ ohash@2.0.12 Declared package license: MIT Published archive: https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz Locked integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 7cbabca5e0e68a3ea365e46e579a8764b9abe46d9d75e2c1858c8d5dfcbb5c4f; bytes: 4475 --- BEGIN ORIGINAL BYTES --- # #️ ohash [![npm version](https://img.shields.io/npm/v/ohash)](https://npmjs.com/package/ohash) [![npm downloads](https://img.shields.io/npm/dm/ohash)](https://npm.chart.dev/ohash) [![bundle size](https://img.shields.io/bundlephobia/minzip/ohash)](https://bundlephobia.com/package/ohash) [![codecov](https://img.shields.io/codecov/c/gh/unjs/ohash)](https://codecov.io/gh/unjs/ohash) Simple object hashing, serialization and comparison utils. > [!NOTE] > ohash v2 is the current release. For the previous API, see the [v1 branch](https://github.com/unjs/ohash/tree/v1) and the [v2.0.1 release notes](https://github.com/unjs/ohash/releases/tag/v2.0.1) for migration. ## Usage Install [`ohash`](https://www.npmjs.com/package/ohash): ```sh # ✨ Auto-detect (npm, yarn, pnpm, bun or deno) npx nypm i ohash ``` **Import:** ```js // ESM import import { hash, serialize, digest, isEqual } from "ohash"; import { diff } from "ohash/utils"; // Dynamic import const { hash, serialize, digest, isEqual } = await import("ohash"); const { diff } = await import("ohash/utils"); ```
Import from CDN ```js import { hash, serialize, digest, isEqual } from "https://esm.sh/ohash"; import { diff } from "https://esm.sh/ohash/utils"; // Dynamic import const { hash, serialize, digest, isEqual } = await import( "https://esm.sh/ohash" ); const { diff } = await import("https://esm.sh/ohash/utils"); ```
## `hash(input)` Hashes any JS value into a string. The input is first [serialized](#serializeinput) then it is [hashed](#digeststr). ```js import { hash } from "ohash"; // "g82Nh7Lh3CURFX9zCBhc5xgU0K7L0V1qkoHyRsKNqA4" console.log(hash({ foo: "bar" })); ``` ## `serialize(input)` Serializes any input value into a string for hashing. > [!IMPORTANT] > `serialize` method uses best efforts to generate stable serialized values; however, it is not designed for security purposes. Keep in mind that there is always a chance of intentional collisions caused by user input. ```js import { serialize } from "ohash"; // "{foo:'bar'}" console.log(serialize({ foo: "bar" })); ``` ## `digest(str)` Hashes a string using the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) algorithm and encodes it in [Base64URL](https://base64.guru/standards/base64url) format. ```ts import { digest } from "ohash"; // "f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk" console.log(digest("Hello World!")); ``` ## `isEqual(obj1, obj2)` Compare two objects using `===` and then fallbacks to compare based on their [serialized](#serializeinput) values. ```js import { isEqual } from "ohash"; // true console.log(isEqual({ a: 1, b: 2 }, { b: 2, a: 1 })); ``` ## `diff(obj1, obj2)` Compare two objects with nested [serialization](#serializeinput-options). Returns an array of changes. The returned value is an array of diff entries with `$key`, `$hash`, `$value`, and `$props`. When logging, a string version of the changelog is displayed. ```js import { diff } from "ohash/utils"; const createObject = () => ({ foo: "bar", nested: { y: 123, bar: { baz: "123", }, }, }); const obj1 = createObject(); const obj2 = createObject(); obj2.nested.x = 123; delete obj2.nested.y; obj2.nested.bar.baz = 123; const changes = diff(obj1, obj2); // Removed `nested.y` // Changed `nested.bar.baz` from `"123"` to `123` // Added `nested.x` console.log(changes.join("\n")); ``` ## Contribute - Clone this repository - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run interactive tests using `pnpm dev` ## License Made with 💛 Published under [MIT License](./LICENSE). Object serialization originally based on [puleos/object-hash](https://github.com/puleos/object-hash) by [Scott Puleo](https://github.com/puleos/). sha256 implementation originally based on [brix/crypto-js](https://github.com/brix/crypto-js). ## Migration from v1 | v1 | v2 | | --- | --- | | `objectHash(value)` (stable digest string like `object:1:string:3:foo:...`) | `serialize(value)` for a stable string, or `hash(value)` for a SHA-256 hash | | `hash(value)` | Still `hash(value)` (implementation changed; output format differs) | There is no v2 helper that reproduces the exact v1 `objectHash` string format. Use `serialize` when you need a stable structural string, and `hash` when you need a short digest. --- END ORIGINAL BYTES --- ================================================================ oniguruma-parser@0.12.2 Declared package license: MIT Published archive: https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz Locked integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5fe78c91b36c6147ed0b6ab1631ce731165b7dd5e00482be1f027d46d12a8082; bytes: 1077 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2025-2026 Steven Levithan 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: c8f25ff16cb06007846879d2341e48f2f38167740a115057fb2f5a9dc6a85a25; bytes: 14703 --- BEGIN ORIGINAL BYTES --- # oniguruma-parser 🌿 [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] A TypeScript library for parsing, validating, traversing, transforming, and optimizing [Oniguruma](https://github.com/kkos/oniguruma) regular expressions. > [!NOTE] > Oniguruma is a regular expression engine written in C that's used in Ruby (via a fork named Onigmo), PHP (`mb_ereg`, etc.), TextMate grammars (used by VS Code, [Shiki](https://shiki.style/), etc.), and many other tools. This library has been battle-tested by [Oniguruma-To-ES](https://github.com/slevithan/oniguruma-to-es) and [tm-grammars](https://github.com/shikijs/textmate-grammars-themes), which are used by Shiki to process tens of thousands of real-world Oniguruma regexes. ## 📜 Contents - [Install and use](#️-install-and-use) - [Convert a pattern to an AST](#-convert-a-pattern-to-an-ast) - [Traverse and transform an AST](#-traverse-and-transform-an-ast) - [Convert an AST to a pattern](#️-convert-an-ast-to-a-pattern) - [Optimize regexes](#-optimize-regexes) - [Known differences](#-known-differences) - [Oniguruma version](#-oniguruma-version) ## 🕹️ Install and use ```sh npm install oniguruma-parser ``` ```js import {toOnigurumaAst} from 'oniguruma-parser'; const ast = toOnigurumaAst('^.*'); ```
Using CommonJS require ```js const {toOnigurumaAst} = require('oniguruma-parser-cjs'); ``` > **Note:** [oniguruma-parser-cjs](https://github.com/RedCMD/oniguruma-parser-cjs) is a third-party CommonJS wrapper for this library. It might not always be up to date with the latest version.
Using a CDN and global name ```html ``` > **Note:** This bundle includes a subset of all available exports. See [`src/bundle.ts`](https://github.com/slevithan/oniguruma-parser/blob/main/src/bundle.ts).
### Additional modules The following modules are available in addition to the root `'oniguruma-parser'` export: - [Parser](https://github.com/slevithan/oniguruma-parser/blob/main/src/parser/README.md): Includes numerous functions and types for constructing and working with `OnigurumaAst` nodes. Also includes the core `parse` function that's wrapped by `toOnigurumaAst`. - [Traverser](https://github.com/slevithan/oniguruma-parser/blob/main/src/traverser/README.md): Traverse and transform an `OnigurumaAst`. - [Generator](https://github.com/slevithan/oniguruma-parser/blob/main/src/generator/README.md): Convert an `OnigurumaAst` to pattern and flags strings. - [Optimizer](https://github.com/slevithan/oniguruma-parser/blob/main/src/optimizer/README.md): Minify and improve the performance of Oniguruma regexes. ## 🌲 Convert a pattern to an AST Call `toOnigurumaAst` to parse an Oniguruma pattern (with optional flags and compile-time options) and return an AST. It uses the following type definition: ```ts function toOnigurumaAst( pattern: string, options?: { flags?: string; rules?: { captureGroup?: boolean; singleline?: boolean; }; } ): OnigurumaAst; ``` For example: ```js import {toOnigurumaAst} from 'oniguruma-parser'; const ast = toOnigurumaAst('^.*'); console.log(ast); /* → { type: 'Regex', body: [ { type: 'Alternative', body: [ { type: 'Assertion', kind: 'line_start', }, { type: 'Quantifier', kind: 'greedy', min: 0, max: Infinity, body: { type: 'CharacterSet', kind: 'dot', }, }, ], }, ], flags: { type: 'Flags', ignoreCase: false, dotAll: false, extended: false, digitIsAscii: false, posixIsAscii: false, spaceIsAscii: false, wordIsAscii: false, textSegmentMode: null, }, } */ ``` An error is thrown if the provided pattern or flags aren't valid in Oniguruma. > **Note:** `toOnigurumaAst` is a wrapper around the [parser module](https://github.com/slevithan/oniguruma-parser/blob/main/src/parser/README.md)'s `parse` function that automatically provides the appropriate Unicode property validation data. ## 🌀 Traverse and transform an AST See details and examples in the [traverser module](https://github.com/slevithan/oniguruma-parser/blob/main/src/traverser/README.md)'s readme. ## ↩️ Convert an AST to a pattern See details and examples in the [generator module](https://github.com/slevithan/oniguruma-parser/blob/main/src/generator/README.md)'s readme. ## 🪄 Optimize regexes This library includes one of the few implementations (for any regex flavor) of a "regex optimizer" that can minify and improve the performance and readability of regexes prior to use. Example: ``` (?x) (?:\!{1,}) (\b(?:ark|arm|art)\b) [[^0-9A-Fa-f]\P{^Nd}\p{ Letter }] ``` Becomes: ``` !+\b(ar[kmt])\b[\H\d\p{L}] ``` Optimized regexes always match exactly the same strings. See more details and examples in the [optimizer module](https://github.com/slevithan/oniguruma-parser/blob/main/src/optimizer/README.md)'s readme. > [!TIP] > 🧪 Try the [optimizer demo](https://slevithan.github.io/oniguruma-parser/demo/). ## 🆚 Known differences Known differences will be resolved in future versions. ### Unsupported features The following rarely-used features throw errors since they aren't yet supported: - Rarely-used character specifiers: Non-A-Za-z with `\cx` `\C-x`, meta `\M-x` `\M-\C-x`, octal code points `\o{…}`, and octal encoded bytes ≥ `\200`. - Code point sequences: `\x{H H …}` `\o{O O …}`. - Absence expressions `(?~|…|…)`, stoppers `(?~|…)`, and clearers `(?~|)`. - Conditionals: `(?(…)…)`, etc. - Non-built-in callouts: `(?{…})`, etc. - Numbered *forward* backreferences (incl. relative `\k<+N>`) and backreferences with recursion level (`\k`, etc.). - Flags `D` `P` `S` `W` `y{g}` `y{w}` within pattern modifiers, and whole-pattern flags `C` `I` `L` ([#26](https://github.com/slevithan/oniguruma-parser/issues/26)). Despite these gaps, more than 99.99% of real-world Oniguruma regexes are supported, based on a sample of ~55k regexes used in TextMate grammars (conditionals were used in three regexes, and other unsupported features weren't used at all). Some of the Oniguruma features above are so exotic that they aren't used in *any* public code on GitHub.
More details about numbered forward backreferences This library currently treats it as an error if a numbered backreference comes before its referenced group. This is a rare issue because: - Most such placements are mistakes and can never match, due to Oniguruma's behavior for backreferences to nonparticipating groups. - Erroring matches the correct behavior of named backreferences. - For unenclosed backreferences, this only affects `\1`–`\9` since it's not a backreference in the first place if using `\10` or higher and not as many capturing groups are defined to the left (it's an octal or identity escape).
Unsupported validation errors The following don't yet throw errors, but should: - Special characters that are invalid in backreference names even when referencing a valid group with that name. - Named backreferences should use a more limited set of allowed characters than named groups and subroutines. - Note that an error is already correctly thrown for any backreference name that includes `-` or `+` (which is separate from how these symbols are used in relative *numbered* backreferences). - Subroutines used in ways that resemble infinite recursion ([#5](https://github.com/slevithan/oniguruma-parser/issues/5)). - Such subroutines error at compile time in Oniguruma.
Future AST node types Support for most of the currently unsupported features above will be added to the `OnigurumaAst` structure using existing node types (`Character`, `AbsenceFunction`, `Backreference`, etc.). However, the following node types will be added when their corresponding features are supported: - `CharacterSequence`: New node type for code point sequences; will contain two or more `Character` nodes. - `Conditional`: New node type for all conditional kinds. - `Callout`: New node type for unnamed callouts.
### Behavior differences #### Unenclosed four-digit backreferences Although any number of digits are supported for enclosed `\k<…>`/`\k'…'` backreferences (assuming the backreference refers to a valid capturing group), unenclosed backreferences currently support only up to three digits (`\999`). In other words, `\1000` is handled as `\100` followed by `0` even if 1,000+ captures appear to the left. > **Note:** An apparent bug in vscode-oniguruma (v2.0.1 tested) prevents any regex with more than 999 captures from working. They fail to match anything, with no error. #### Erroring on patterns that trigger Oniguruma bugs This library intentionally doesn't reproduce bugs, and it currently throws errors for several edge cases that trigger Oniguruma bugs and undefined behavior.
Nested absence functions Although nested absence functions like `(?~(?~…))` don't throw an error in Oniguruma, they produce self-described "strange" results, and Oniguruma's docs state that "nested absent functions are not supported and the behavior is undefined". In this library, nested absence functions throw an error. In future versions, parsing of nested absence functions will follow Oniguruma and no longer error.
Bare \x as a NUL character In Oniguruma, `\x` is an escape for the `NUL` character (equivalent to `\0`, `\x00`, etc.) if it's not followed by `{` or a hexadecimal digit. In this library, bare `\x` throws an error. Additional behavior details for `\x` in Oniguruma: - `\x` is an error if followed by a `{` that's followed by a hexadecimal digit but doesn't form a valid `\x{…}` code point escape. Ex: `\x{F` and `\x{0,2}` are errors. - `\x` matches a literal `x` if followed by a `{` that isn't followed by a hexadecimal digit. Ex: `\x{` matches `x{`, `\x{G` matches `x{G`, and `\x{,2}` matches 0–2 `x` characters, since `{,2}` is a quantifier with an implicit 0 min. - In Oniguruma 6.9.10 and earlier ([report](https://github.com/kkos/oniguruma/issues/343)), `\x` matches a literal `x` if it appears at the very end of a pattern. *This is a bug.* In future versions, parsing of `\x` will follow the Oniguruma rules above (excluding bugs), removing some cases where it currently errors.
Pattern-terminating bare \u Normally, any incomplete `\uHHHH` (including bare `\u`) throws an error. However, in Oniguruma 6.9.10 and earlier ([report](https://github.com/kkos/oniguruma/issues/343)), bare `\u` matches a literal `u` if it appears at the very end of a pattern. *This is a bug.* In this library, incomplete `\u` is always an error.
Invalid standalone encoded bytes \x80 to \xFF > **Context:** Unlike `\uHHHH` and enclosed `\x{H…}` (which match code points), Oniguruma's unenclosed `\xHH` represents an encoded byte, which means that, unlike in other regex flavors, `\x80` to `\xFF` are treated as fragments of a code unit. Ex: `[\0-\xE2\x82\xAC]` is equivalent to `[\0-\u20AC]`. Invalid standalone encoded bytes should throw an error, but several related bugs are present in Oniguruma 6.9.10 and earlier ([report](https://github.com/kkos/oniguruma/issues/345)). In this library, they always throw an error. Behavior details in Oniguruma: - Standalone `\x80` to `\xF4` throw an error. - Standalone `\xF5` to `\xFF` fail to match anything, but don't throw. *This is a bug.* - When used as the end value of a character class range: - Standalone `\x80` to `\xBF` and `\xF5` to `\xFF` are treated as `\x7F`. *This is a bug.* - If the range is within a negated, non-nested character class (ex: `[^\0-\xFF]`), `\xF5` to `\xFF` are treated as `\x{10FFFF}`. *This is a bug.*
## 🔢 Oniguruma version All versions of this library to date have followed the rules of Oniguruma 6.9.10 (released 2025-01-01), which uses Unicode 16.0.0. At least since Oniguruma 6.0.0 (released 2016-05-09), regex syntax changes in [new versions](https://github.com/kkos/oniguruma/blob/master/HISTORY) have been backward compatible. Some versions added new syntax that was previously an error (such as new Unicode property names), and in a few cases, edge case parsing bugs were fixed. > Oniguruma 6.9.8 (released 2022-04-29) is an important baseline for JavaScript projects, since that's the version used by [vscode-oniguruma](https://github.com/microsoft/vscode-oniguruma) 1.7.0 to the latest 2.0.1. It's therefore used in recent versions of various projects, including VS Code and Shiki. However, the regex syntax differences between Oniguruma 6.9.8 and 6.9.10 are so minor that this is a non-issue. ## 🧩 Contributing Contributions are welcome. See the [guide](https://github.com/slevithan/oniguruma-parser/blob/main/CONTRIBUTING.md) to help you get started. ## 🏷️ About Created by [Steven Levithan](https://github.com/slevithan) and [contributors](https://github.com/slevithan/oniguruma-parser/graphs/contributors). ### Sponsors and backers [](https://github.com/roboflow) ### Past sponsors [](https://github.com/antfu) [](https://github.com/brc-dd) If you want to support this project, I'd love your help by contributing improvements ([guide](https://github.com/slevithan/oniguruma-parser/blob/main/CONTRIBUTING.md)), sharing it with others, or [sponsoring](https://github.com/sponsors/slevithan) ongoing development. © 2025–present. MIT License. [npm-version-src]: https://img.shields.io/npm/v/oniguruma-parser?color=78C372 [npm-version-href]: https://npmjs.com/package/oniguruma-parser [npm-downloads-src]: https://img.shields.io/npm/dm/oniguruma-parser?color=78C372 [npm-downloads-href]: https://npmjs.com/package/oniguruma-parser [bundle-src]: https://img.shields.io/bundlejs/size/oniguruma-parser?color=78C372&label=minzip [bundle-href]: https://bundlejs.com/?q=oniguruma-parser&treeshake=[*] --- END ORIGINAL BYTES --- ================================================================ oniguruma-to-es@4.3.6 Declared package license: MIT Published archive: https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz Locked integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c1a5a1ebc88f3e0f3caa04c0af52bf8f3a5405a467337a09594ae1ad149cec83; bytes: 1077 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024-2026 Steven Levithan 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 12f7bfc36d2a332829f2566f5a968855116f50c6995fbf6d2be2c44eecf1934b; bytes: 44389 --- BEGIN ORIGINAL BYTES --- # Oniguruma (鬼車) to ES “I think \[Oniguruma-To-ES] is very wonderful”
— K. Kosako, creator of Oniguruma [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [Oniguruma](https://github.com/kkos/oniguruma) is a regular expression engine written in C that's used in Ruby (via a fork named Onigmo), PHP (`mb_ereg`, etc.), TextMate grammars (used by VS Code, [Shiki](https://shiki.style/), etc. for syntax highlighting), and many other tools. Oniguruma-To-ES is an advanced **Oniguruma to JavaScript regex translator** that runs in the browser or the server, with support for ~99.99% of Oniguruma regexes (more details below). Use it to: - Take advantage of Oniguruma's many extended regex features in JavaScript. - Run regexes written for Oniguruma from JavaScript. - Share regexes across your Ruby or PHP and JavaScript code. Compared to running the Oniguruma C library via WASM using [vscode-oniguruma](https://github.com/microsoft/vscode-oniguruma), this library is ~4% of the size and its regexes often run much faster (even including transpilation time) since they run as native JavaScript. > [!TIP] > You can further reduce bundle size (and increase run-time performance) by precompiling your regexes. In many cases, that avoids the need for any run-time dependency. Conversions for regexes that use certain advanced features rely on a `RegExp` subclass, in which case the tree-shakable `EmulatedRegExp` (3 kB minzip) is still needed after precompilation. Oniguruma-To-ES deeply understands the hundreds of large and small differences between Oniguruma and JavaScript regex syntax and behavior, across multiple JavaScript version targets. It's *obsessive* about ensuring that the emulated features it supports have exactly the same behavior, even in extreme edge cases. And it's been battle-tested on tens of thousands of real-world Oniguruma regexes used in TextMate grammars. It's built on top of [oniguruma-parser](https://github.com/slevithan/oniguruma-parser) and [Regex+](https://github.com/slevithan/regex), both by the same author as this library. ## 🧪 [Try the demo REPL](https://slevithan.github.io/oniguruma-to-es/demo/) ## 📜 Contents - [Examples](#-examples) - [Install and use](#️-install-and-use) - [API](#-api): [`toRegExp`](#toregexp), [`toRegExpDetails`](#toregexpdetails), [`EmulatedRegExp`](#emulatedregexp) - [Options](#-options): [`accuracy`](#accuracy), [`avoidSubclass`](#avoidsubclass), [`flags`](#flags), [`global`](#global), [`hasIndices`](#hasindices), [`lazyCompileLength`](#lazycompilelength), [`rules`](#rules), [`target`](#target), [`verbose`](#verbose) - [Supported features](#-supported-features) - [Unsupported features](#-unsupported-features) - [Unicode](#-unicode) ## 🪧 Examples ```js import {toRegExp} from 'oniguruma-to-es'; toRegExp(String.raw`(?x) (?\d) (?\p{greek}) \k ([0a-z&&\h]){,2} `); // → /(?\p{Nd})(\p{sc=Greek})(?>\2|\1)(?:[[0a-z]&&\p{AHex}]){0,2}/v ``` Although the example above is fairly straightforward, it shows several kinds of differences being translated: - **New flags:** JavaScript regexes don't support flag `x` for insignificant whitespace and comments. - **New syntax:** JavaScript doesn't include standalone flag modifiers like `(?x)` or the `\h` hex-digit shorthand. *Note: ES2025 added support for flag groups like `(?i:…)`.* - **Different syntax rules:** JavaScript doesn't allow duplicate group names in the same alternation path, requires a prefix and specific casing for Unicode scripts like `Greek`, requires nested character classes for intersection of union and ranges, and doesn't allow an implicit `0` min for `{…}` quantifiers. - **Different behavior:** Oniguruma's `\d` is Unicode based by default, backreferences to duplicate group names match the captured value of any of the groups, and `(…)` groups are noncapturing by default if named groups are present. Many advanced features are supported that would produce more complicated transformations. > [!NOTE] > The `(?>…)` atomic group shown in the result was a simplification for readability. Since JavaScript doesn't support atomic groups, the actual result uses `(?=(\2|\1))\3` for the same effect, and then uses a `RegExp` subclass to automatically remove the added capturing group from reported matches. This next example shows support for Unicode case folding with mixed case-sensitivity. Notice that code points `ſ` ([U+017F](https://codepoints.net/U+017F)) and `K` ([U+212A](https://codepoints.net/U+212A)) are added to the second, case-insensitive range if using a `target` prior to `ES2025`, and that modern JavaScript regex features (like flag groups) are used if supported by the `target`. ```js toRegExp('[a-z](?i)[a-z]', {target: 'ES2018'}); // → /[a-z][a-zA-ZſK]/u toRegExp('[a-z](?i)[a-z]', {target: 'ES2025'}); // → /[a-z](?i:[a-z])/v ``` ## 🕹️ Install and use ```sh npm install oniguruma-to-es ``` ```js import {toRegExp} from 'oniguruma-to-es'; const str = '…'; const pattern = '…'; // Works with all string/regexp methods since it returns a native regexp str.match(toRegExp(pattern)); ```
Using a CDN and global name ```html ```
## 🔑 API ### `toRegExp` Accepts an Oniguruma pattern and returns an equivalent JavaScript `RegExp`. > [!TIP] > Try it in the [demo REPL](https://slevithan.github.io/oniguruma-to-es/demo/). ```ts function toRegExp( pattern: string, options?: ToRegExpOptions ): RegExp | EmulatedRegExp; ``` #### Type `ToRegExpOptions` ```ts type ToRegExpOptions = { accuracy?: 'default' | 'strict'; avoidSubclass?: boolean; flags?: string; global?: boolean; hasIndices?: boolean; lazyCompileLength?: number; rules?: { allowOrphanBackrefs?: boolean; asciiWordBoundaries?: boolean; captureGroup?: boolean; recursionLimit?: number; singleline?: boolean; }; target?: 'auto' | 'ES2025' | 'ES2024' | 'ES2018'; verbose?: boolean; }; ``` See [Options](#-options) for more details. ### `toRegExpDetails` Accepts an Oniguruma pattern and returns the details needed to construct an equivalent JavaScript `RegExp`. ```ts function toRegExpDetails( pattern: string, options?: ToRegExpOptions ): { pattern: string; flags: string; options?: EmulatedRegExpOptions; }; ``` Note that the returned `flags` might also be different than those provided, as a result of the emulation process. The returned `pattern`, `flags`, and `options` properties can be provided as arguments to the `EmulatedRegExp` constructor to produce the same result as `toRegExp`. If the only keys returned are `pattern` and `flags`, they can optionally be provided to JavaScript's `RegExp` constructor instead. Setting option `avoidSubclass` to `true` ensures that this is always the case (resulting in an error for any patterns that require `EmulatedRegExp`'s additional handling). ### `EmulatedRegExp` Works the same as JavaScript's native `RegExp` constructor in all contexts, but can be given results from `toRegExpDetails` to produce the same result as `toRegExp`. ```ts class EmulatedRegExp extends RegExp { constructor(pattern: string, flags?: string, options?: EmulatedRegExpOptions); constructor(pattern: EmulatedRegExp, flags?: string); rawOptions: EmulatedRegExpOptions; } ``` The `rawOptions` property of `EmulatedRegExp` instances can be used for serialization. #### Type `EmulatedRegExpOptions` ```ts type EmulatedRegExpOptions = { hiddenCaptures?: Array; lazyCompile?: boolean; strategy?: string | null; transfers?: Array<[number, Array]>; }; ``` ## 🔩 Options The following options are shared by functions [`toRegExp`](#toregexp) and [`toRegExpDetails`](#toregexpdetails). ### `accuracy` One of `'default'` *(default)* or `'strict'`. Sets the level of emulation rigor/strictness. - **Default:** Permits a few close approximations in order to support additional features. - **Strict:** Error if the pattern can't be emulated with identical behavior (even in rare edge cases) for the given `target`.
More details Using default `accuracy` adds support for the following features, depending on `target`: - All targets (`ES2025` and earlier): - Enables use of `\X` using a close approximation of a Unicode extended grapheme cluster. - Enables combining lookbehind with uncommon uses of `\G` that rely on subclass-based emulation. - `ES2024` and earlier: - Enables use of case-insensitive backreferences to case-sensitive groups. - `ES2018`: - Enables use of POSIX classes `[:graph:]` and `[:print:]` using ASCII versions rather than the Unicode versions available for `ES2024` and later. Other POSIX classes are always Unicode based.
### `avoidSubclass` *Default: `false`.* Disables advanced emulation that relies on returning a `RegExp` subclass. In cases when a subclass would otherwise have been used, this results in one of the following: - An error is thrown for patterns that are not emulatable without a subclass. - Some patterns can still be emulated accurately without a subclass, but in this case *subpattern* match details might differ from Oniguruma. - This is only relevant if you access the subpattern details of match results in your code (via subpattern array indices, `groups`, and `indices`). ### `flags` Oniguruma flags; a string with `i`, `m`, `x`, `D`, `S`, `W`, `y{g}` in any order (all optional). Flags `i`, `m`, `x` can also be specified via modifiers in the pattern. > [!IMPORTANT] > Oniguruma and JavaScript both have an `m` flag but with different meanings. Oniguruma's `m` is equivalent to JavaScript's `s` (`dotAll`). ### `global` *Default: `false`.* Include JavaScript flag `g` (`global`) in the result. ### `hasIndices` *Default: `false`.* Include JavaScript flag `d` (`hasIndices`) in the result. ### `lazyCompileLength` *Default: `Infinity`. In other words, lazy compilation is off by default.* Delay regex construction until first use if the transpiled pattern is at least this length. Although regex construction in JavaScript is fast, it can sometimes be helpful to defer the cost for extremely long patterns. Lazy compilation defers the time JavaScript spends inside the `RegExp` constructor (building the transpiled pattern into a regex object) until the first time the regex is used in a search. The regex object is outwardly identical before and after deferred compilation. Lazy compilation relies on the `EmulatedRegExp` class. ### `rules` Advanced options that override standard behavior, error checking, and flags when enabled. - `allowOrphanBackrefs`: Useful with TextMate grammars that merge backreferences across patterns. - `asciiWordBoundaries`: Use ASCII `\b` and `\B`, which increases search performance of generated regexes. - `captureGroup`: Allow unnamed captures and numbered calls (backreferences and subroutines) when using named capture. - This is Oniguruma option `ONIG_OPTION_CAPTURE_GROUP`; on by default in `vscode-oniguruma`. - `recursionLimit`: Change the recursion depth limit from Oniguruma's `20` to an integer `2`–`20`. - `singleline`: `^` as `\A`; `$` as `\Z`. Improves search performance of generated regexes without changing the meaning if searching line by line. - This is Oniguruma option `ONIG_OPTION_SINGLELINE`. ### `target` One of `'auto'` *(default)*, `'ES2025'`, `'ES2024'`, or `'ES2018'`. JavaScript version used for generated regexes. Using `auto` detects the best value for your environment. Later targets enable faster transpilation, simpler generated source, and support for additional features.
More details - `ES2018`: Uses JS flag `u`. - Emulation restrictions: Character class intersection and some uses of nested, negated character classes aren't supported. - Generated regexes might use ES2018 features that require Node.js 10 or a browser version released during 2018 to 2023 (in Safari's case). Minimum requirement for any regex is Node.js 6 or a 2016-era browser. - `ES2024`: Uses JS flag `v`. - No emulation restrictions. - Generated regexes require Node.js 20 or any 2023-era browser ([compat table](https://caniuse.com/mdn-javascript_builtins_regexp_unicodesets)). - `ES2025`: Uses JS flag `v` and allows use of flag groups. - Benefits: Faster transpilation, simpler generated source. - Generated regexes might use features that require Node.js 23 or a browser version released during 2024 to 2025 (in Safari's case).
### `verbose` *Default: `false`.* Disables minifications that simplify the pattern without changing the meaning. Example: By default, unneeded noncapturing groups might be removed during transpilation. Setting this option to `true` disables such changes. > [!TIP] > The [oniguruma-parser](https://github.com/slevithan/oniguruma-parser) library includes a [regex optimizer](https://github.com/slevithan/oniguruma-parser/blob/main/src/optimizer/README.md) that goes far beyond the basic, built-in minifications. If desired, you can call the optimizer first, and then use its result for transpilation. That isn't appropropriate in all cases (since it adds performance overhead and increases bundle size), but the benefits of optimization do pass through to the transpiled, JavaScript version of a regex. ## ✅ Supported features Following are the supported features by target. The official Oniguruma [syntax doc](https://github.com/kkos/oniguruma/blob/master/doc/RE) doesn't cover many of the finer details described here. > [!NOTE] > Targets `ES2024` and `ES2025` have the same emulation capabilities. Resulting regexes might have different source and flags, but they match the same strings. See [`target`](#target). 🆕 = Syntax not available in JavaScript.
🆚 = JavaScript uses slightly different syntax for the same concept; ex: `\x{…}` → `\u{…}`. Even for features not marked with one of the above symbols, notice that nearly every feature below has at least subtle differences from JavaScript. Unsupported features throw an error.
Feature Example ES2018 ES2024+ Subfeatures & JS differences
Characters Literal E, ! ✅ ✅ ✔ Code point based matching (same as JS with flag u, v)
✔ Standalone ], {, } don't require escaping
Identity escape \E, \! ✅ ✅ ✔ Different set than JS
✔ Allows multibyte chars
Escaped metachar \\, \. ✅ ✅ ✔ Same as JS
Control code escape \t ✅ ✅ ✔ The JS set plus \a, \e
\xNN \x7F ✅ ✅ ✔ Allows 1 hex digit
✔ Above 7F, is UTF-8 encoded byte (≠ JS)
✔ Error for invalid encoded bytes
\uNNNN \uFFFF ✅ ✅ ✔ Same as JS with flag u, v
🆚 \x{…} \x{A} ✅ ✅ ✔ Allows leading 0s up to 8 total hex digits
Escaped num \20 ✅ ✅ ✔ Can be backref, error, null, octal, identity escape, or any of these combined with literal digits, based on complex rules that differ from JS
✔ Always handles escaped single digit 1-9 outside char class as backref
✔ Allows null with 1-3 0s
✔ Error for octal ≥ 200
Caret notation \cA,
🆚 \C-A
✅ ✅ ✔ With A-Za-z (JS: only \c form)
Character sets Digit \d, \D ✅ ✅ ✔ Unicode by default (≠ JS)
Word \w, \W ✅ ✅ ✔ Unicode by default (≠ JS)
Whitespace \s, \S ✅ ✅ ✔ Unicode by default
✔ No JS adjustments to Unicode set (−\uFEFF, +\x85)
🆕 Hex digit \h, \H ✅ ✅ ✔ ASCII
Dot . ✅ ✅ ✔ Excludes only \n (≠ JS)
🆕 Any \O ✅ ✅ ✔ Any char (with any flags)
✔ Identity escape in char class
🆕 Not \n \N ✅ ✅ ✔ Identity escape in char class
🆕 Newline \R ✅ ✅ ✔ Matched atomically
✔ Identity escape in char class
🆕 Grapheme \X ☑️ ☑️ ● Uses a close approximation
✔ Matched atomically
✔ Identity escape in char class
Unicode property \p{L},
\P{L}
✅ ✅ ✔ Binary properties
✔ Categories
✔ Scripts
✔ Aliases
✔ POSIX properties
✔ Invert with \p{^…}, \P{^…}
✔ Insignificant spaces, hyphens, underscores, and casing in names
✔ \p, \P without { is an identity escape
✔ Error for key prefixes
✔ Error for props of strings
❌ Blocks (wontfix[1])
Character classes Base […], [^…] ✅ ✅ ✔ Unescaped - outside of range is literal in some contexts (different than JS rules in any mode)
✔ Leading unescaped ] is literal
✔ Fewer chars require escaping than JS
Range [a-z] ✅ ✅ ✔ Same as JS with flag u, v
✔ Allows \x{…} above 10FFFF at end of range to mean last valid code point
🆕 POSIX class [[:word:]],
[[:^word:]]
☑️[2] ✅ ✔ All use Unicode definitions
Nested class […[…]] ☑️[3] ✅ ✔ Same as JS with flag v
Intersection […&&…] ❌ ✅ ✔ Doesn't require nested classes for intersection of union and ranges
✔ Allows empty segments
Assertions Line start, end ^, $ ✅ ✅ ✔ Always "multiline"
✔ Only \n as newline
✔ ^ doesn't match after string-terminating \n
🆕 String start, end \A, \z ✅ ✅ ✔ Same as JS ^ $ without JS flag m
🆕 String end or before terminating newline \Z ✅ ✅ ✔ Only \n as newline
🆕 Search start \G ✅ ✅ ✔ Matches at start of match attempt (not end of prev match; advances after 0-length match)
Word boundary \b, \B ✅ ✅ ✔ Unicode based (≠ JS)
Lookaround (?=…),
(?!…),
(?<=…),
(?<!…)
✅ ✅ ✔ Allows variable-length quantifiers and alternation within lookbehind
✔ Lookahead invalid within lookbehind
✔ Capturing groups invalid within negative lookbehind
✔ Negative lookbehind invalid within positive lookbehind
Quantifiers Greedy, lazy *, +?, {2,}, etc. ✅ ✅ ✔ Includes all JS forms
✔ Adds {,n} for min 0
✔ Explicit bounds have upper limit of 100,000 (unlimited in JS)
✔ Error with assertions (same as JS with flag u, v) and directives
🆕 Possessive ?+, *+, ++, {3,2} ✅ ✅ ✔ + suffix doesn't make {…} quantifiers possessive (creates a quantifier chain)
✔ Reversed {…} ranges are possessive
🆕 Chained **, ??+*, {2,3}+, etc. ✅ ✅ ✔ Further repeats the preceding repetition
Groups Noncapturing (?:…) ✅ ✅ ✔ Same as JS
🆕 Atomic (?>…) ✅ ✅ ✔ Supported
Capturing (…) ✅ ✅ ✔ Is noncapturing if named capture present
Named capturing (?<a>…),
🆚 (?'a'…)
✅ ✅ ✔ Duplicate names allowed (including within the same alternation path) unless directly referenced by a subroutine
✔ Error for names invalid in Oniguruma (more permissive than JS)
Backreferences Numbered \1 ✅ ✅ ✔ Error if named capture used
✔ Refs the most recent of a capture/subroutine set
🆕 Enclosed numbered, relative \k<1>,
\k'1',
\k<-1>,
\k'-1'
✅ ✅ ✔ Error if named capture used
✔ Allows leading 0s
✔ Refs the most recent of a capture/subroutine set
✔ \k without < or ' is an identity escape
Named \k<a>,
🆚 \k'a'
✅ ✅ ✔ For duplicate group names, rematch any of their matches (multiplex), atomically
✔ Refs the most recent of a capture/subroutine set (no multiplex)
✔ Combination of multiplex and most recent of capture/subroutine set if duplicate name is indirectly created by a subroutine
✔ Error for backref to valid group name that includes -/+
To nonparticipating groups ☑️ ☑️ ✔ Error if group to the right[4]
✔ Duplicate names (and subroutines) to the right not included in multiplex
✔ Fail to match (or don't include in multiplex) ancestor groups and groups in preceding alternation paths
❌ Some rare cases are indeterminable at compile time and use the JS behavior of matching an empty string
Subroutines 🆕 Numbered, relative \g<1>,
\g'1',
\g<-1>,
\g'-1',
\g<+1>,
\g'+1'
✅ ✅ ✔ Error if named capture used
✔ Allows leading 0s

All subroutines (incl. named):
✔ Allowed before reffed group
✔ Can be nested (any depth)
✔ Reuses flags from the reffed group (ignores local flags)
✔ Replaces most recent captured values (for backrefs)
✔ \g without < or ' is an identity escape
🆕 Named \g<a>,
\g'a'
✅ ✅ ● Same behavior as numbered
✔ Error if reffed group uses duplicate name
Recursion 🆕 Full pattern \g<0>,
\g'0'
☑️[5] ☑️[5] ✔ 20-level depth limit
🆕 Numbered, relative, named (…\g<1>?…),
(…\g<-1>?…),
(?<a>…\g<a>?…), etc.
☑️[5] ☑️[5] ✔ 20-level depth limit
Other Alternation …|… ✅ ✅ ✔ Same as JS
🆕 Absence repeater[6] (?~…) ✅ ✅ ✔ Supported
🆕 Comment group (?#…) ✅ ✅ ✔ Allows escaping \), \\
✔ Comments allowed between a token and its quantifier
✔ Comments between a quantifier and the ?/+ that makes it lazy/possessive changes it to a quantifier chain
🆕 Fail[7] (*FAIL) ✅ ✅ ✔ Supported
🆕 Keep \K ☑️ ☑️ ● Supported at top level if no top-level alternation is used
JS features unknown to Oniguruma are handled using Oniguruma syntax rules ✅ ✅ ✔ \u{…} is an error
✔ [], [^] are errors
✔ [\q{…}] matches q, etc.
✔ [a--b] includes the invalid reversed range a to -
Invalid Oniguruma syntax ✅ ✅ ✔ Error
Flags Supported in top-level flags and flag modifiers
Ignore case i ✅ ✅ ✔ Unicode case folding (same as JS with flag u, v)[8]
🆚 Dot all m ✅ ✅ ✔ Equivalent to JS flag s
🆕 Extended x ✅ ✅ ✔ Unicode whitespace ignored
✔ Line comments with #
✔ Whitespace/comments allowed between a token and its quantifier
✔ Whitespace/comments between a quantifier and the ?/+ that makes it lazy/possessive changes it to a quantifier chain
✔ Whitespace/comments separate tokens (ex: \1 0)
✔ Whitespace and # not ignored in char classes
Currently supported only in top-level flags
🆕 Digit is ASCII D ✅ ✅ ✔ ASCII \d, \p{Digit}, etc.
🆕 Space is ASCII S ✅ ✅ ✔ ASCII \s, \p{Space}, etc.
🆕 Word is ASCII[9] W ✅ ✅ ✔ ASCII \w, \p{Word}, \b, etc.
🆕 Text segment mode is grapheme y{g} ✅ ✅ ✔ Grapheme based \X, \y
Flag modifiers Group (?im-x:…) ✅ ✅ ✔ Unicode case folding for i
✔ Allows enabling and disabling the same flag (priority: disable)
✔ Allows lone or multiple -
🆕 Directive (?im-x) ✅ ✅ ✔ Continues until end of pattern or group (spanning alternatives)
Compile-time options ONIG_OPTION_CAPTURE_GROUP ✅ ✅ ✔ Unnamed captures and numbered calls allowed when using named capture
ONIG_OPTION_SINGLELINE ✅ ✅ ✔ ^ → \A
✔ $ → \Z
The table above doesn't include all aspects that Oniguruma-To-ES emulates (including error handling, subpattern details on match results, most aspects that work the same as in JavaScript, and many aspects of non-JavaScript features that work the same in the other regex flavors that support them). Where applicable, Oniguruma-To-ES follows the latest version of Oniguruma (6.9.10). ### Footnotes 1. Unicode blocks (which in Oniguruma are specified with an `In` prefix) are easily emulatable but their character data would significantly increase library weight. They're also rarely used, fundamentally flawed, and arguably unuseful given the availability of Unicode scripts and other properties. 2. With target `ES2018`, the specific POSIX classes `[:graph:]` and `[:print:]` use ASCII versions rather than the Unicode versions available for target `ES2024` and later, and they result in an error if using strict `accuracy`. 3. Target `ES2018` has limited support for nested, negated character classes. 4. It's not an error for *numbered* backreferences to come before their referenced group in Oniguruma, but an error is the best path for Oniguruma-To-ES because ① most placements are mistakes and can never match (based on the Oniguruma behavior for backreferences to nonparticipating groups), ② erroring matches the behavior of named backreferences, and ③ the edge cases where they're matchable rely on rules for backreference resetting within quantified groups that are different in JavaScript and aren't emulatable. Note that it's not a backreference in the first place if using `\10` or higher and not as many capturing groups are defined to the left (it's an octal or identity escape). 5. Oniguruma's recursion depth limit is `20`. Oniguruma-To-ES uses the same limit by default but allows customizing it via the `rules.recursionLimit` option. Two rare uses of recursion aren't yet supported: overlapping recursions, and use of backreferences when a recursed subpattern contains captures. Patterns that would trigger an infinite recursion error in Oniguruma might find a match in Oniguruma-To-ES (since recursion is bounded), but future versions will detect this and error at transpilation time. 6. Other absence function types aren't yet supported. They start with `(?~|` and are extremely rare. Note that absence functions behave differently in Oniguruma and Onigmo. 7. Other named callouts aren't yet supported. They use the syntax `(*…)` and are extremely rare. 8. When using flag `i`, in rare cases Oniguruma can change the length of certain matches based on Unicode case conversion rules. That behavior isn't reproduced in this library because ① the rules are applied inconsistently ([report](https://github.com/kkos/oniguruma/issues/351)) and ② Oniguruma planned to disable case conversion length changes by default in future versions. 9. Combining flags `W` and `i` can result in edge case Oniguruma bugs ([report](https://github.com/kkos/oniguruma/issues/349)) that aren't reproduced in this library. ## ❌ Unsupported features The following throw errors since they aren't yet supported. They're all extremely rare. - Supportable: - Rarely-used character specifiers: Non-A-Za-z with `\cx` `\C-x`, meta `\M-x` `\M-\C-x`, octal code points `\o{…}`, and octal encoded bytes ≥ `\200`. - Code point sequences: `\x{H H …}` `\o{O O …}`. - Flags `P` (POSIX is ASCII) and `y{w}` (text segment mode is word), and whole-pattern flag `C` (don't capture group). - Supportable for some uses: - Conditionals: `(?(…)…)`, etc. - Whole-pattern flags `I` (ignore-case is ASCII) and `L` (find longest). - Named callout `(*SKIP)`. - Not supportable: - Text segment boundaries: `\y` `\Y`. - Callouts via `(?{…})`, and most named callouts. See also the [supported features](#-supported-features) table (above), which describes some additional, rarely-used sub-features that aren't yet supported. Despite these gaps, ~99.99% of real-world Oniguruma regexes are supported, based on a sample of ~55k regexes used in TextMate grammars. Conditionals were used in three regexes, *overlapping* recursions in three regexes, and other unsupported features weren't used at all. Some Oniguruma features are so exotic that they aren't used in *any* public code on GitHub. ## 🌏 Unicode Oniguruma-To-ES fully supports mixed case-sensitivity (ex: `(?i)a(?-i)a`) and handles the Unicode edge cases regardless of JavaScript [target](#target). Oniguruma-To-ES focuses on being lightweight to make it better for use in browsers. This is partly achieved by not including heavyweight Unicode character data, which imposes a few minor/rare restrictions: - Character class intersection and some uses of nested, negated character classes are unsupported with target `ES2018`. Use target `ES2024` (supported by Node.js 20 and 2023-era browsers) or later if you need support for these features. - With targets before `ES2025`, a handful of Unicode properties that target a specific character case (ex: `\p{Lower}`) can't be used case-insensitively in patterns that contain other characters with a specific case that are used case-sensitively. - In other words, almost every usage is fine, including `A\p{Lower}`, `(?i)A\p{Lower}`, `(?i:A)\p{Lower}`, `(?i)A(?-i)\p{Lower}`, and `\w(?i)\p{Lower}`, but not `A(?i)\p{Lower}`. - Using these properties case-insensitively is basically never done intentionally, so you're unlikely to encounter this error unless it's catching a mistake. - Oniguruma-To-ES uses the version of Unicode supported natively by your JavaScript environment. Using Unicode properties via `\p{…}` that were added in a later version of Unicode than the environment supports results in a runtime error. This is an extreme edge case since modern JavaScript environments support recent versions of Unicode. ## 🧩 Contributing Contributions are welcome. See the [guide](https://github.com/slevithan/oniguruma-to-es/blob/main/CONTRIBUTING.md) to help you get started. ## 👀 Similar projects [JsRegex](https://github.com/jaynetics/js_regex) transpiles Ruby regexes to JavaScript. Ruby uses Onigmo, a fork of Oniguruma. Although JsRegex and this library have important differences, JsRegex might be a better fit for some Ruby projects.
Some high-level differences - Although Oniguruma and Onigmo are quite similar, there are a variety of syntax and behavior differences. Where they differ, Oniguruma typically offers the superior capabilities (for example, more flexible lookbehind). - JsRegex is written in Ruby, so regexes must be pre-transpiled on the server to use them in JavaScript. - JsRegex is somewhat less rigorous in its translations. It doesn't always translate edge case behavior differences, include the same level of support for advanced features, or accurately reproduce subpattern results. Sometimes these are bugs that can be fixed, but in other cases it results from more fundamental limitations such as its lack of support for subclass-based emulation. - JsRegex isn't designed for use with TextMate grammars, so it doesn't include features that would be needed to handle them accurately.
## 🏷️ About Oniguruma-To-ES was created by [Steven Levithan](https://github.com/slevithan) and [contributors](https://github.com/slevithan/oniguruma-to-es/graphs/contributors). ### Sponsors and backers [](https://github.com/roboflow) ### Past sponsors [](https://github.com/antfu) [](https://github.com/brc-dd) ### Special thanks - [Anthony Fu](https://github.com/antfu) for inspiring the project and adopting it in Shiki. - [RedCMD](https://github.com/RedCMD) and [tonco-miyazawa](https://github.com/tonco-miyazawa) for their deep Oniguruma expertise and frequent advice. - [K. Kosako](https://github.com/kkos) for creating Oniguruma and maintaining it for 23 years. If you use or want to support this project, I'd love your help by contributing improvements ([guide](https://github.com/slevithan/oniguruma-to-es/blob/main/CONTRIBUTING.md)), sharing it with others, or [sponsoring](https://github.com/sponsors/slevithan) maintenance and development. MIT License. [npm-version-src]: https://img.shields.io/npm/v/oniguruma-to-es?color=78C372 [npm-version-href]: https://npmjs.com/package/oniguruma-to-es [npm-downloads-src]: https://img.shields.io/npm/dm/oniguruma-to-es?color=78C372 [npm-downloads-href]: https://npmjs.com/package/oniguruma-to-es [bundle-src]: https://img.shields.io/bundlejs/size/oniguruma-to-es?color=78C372&label=minzip [bundle-href]: https://bundlejs.com/?q=oniguruma-to-es&treeshake=[*] --- END ORIGINAL BYTES --- ================================================================ p-limit@7.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/p-limit/-/p-limit-7.3.3.tgz Locked integrity: sha512-SKgVvDU5TNIxQ4r30U75BNLC6a+6GOEjngrk/ysM5+Zu3oJuk1SC5ApzIzY/7PjCEjoVPMWJ0zho/4QUiEB7TQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ p-queue@9.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/p-queue/-/p-queue-9.3.3.tgz Locked integrity: sha512-NXAOdnEe5FsZJfT4oK84lE1Y5cFFdWlRuOo5tww8DyNMxyRXwn39fIkUtNLKppcPC+UYU/bXujNCUGDv01y7CA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ p-timeout@7.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.2.tgz Locked integrity: sha512-prbX4Z3YszrFNgH+MW5Zoeq3baXrMtP/MQnFeET90UB/GtGcGDQ5Usg9OCy6ETjTTntOw1SL2z9fMPUppN3Guw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ package-manager-detector@1.8.0 Declared package license: MIT Published archive: https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.8.0.tgz Locked integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 05c365176db3cc00e951c44b921c809c75b8e99d2d724f7daf00381e26fb0850; bytes: 1102 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2020-PRESENT Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 46ae01aaf4dd281da4485c4fd7a458cb79d529958c572462c121a8ea94a12f88; bytes: 4500 --- BEGIN ORIGINAL BYTES --- # package-manager-detector [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![JSDocs][jsdocs-src]][jsdocs-href] [![License][license-src]][license-href] Package manager detector is based on lock files, the `package.json` `packageManager` field, and installation metadata to detect the package manager used in a project. It supports `npm`, `yarn`, `pnpm`, `deno`, `bun`, `nub`, and `aube`. ## Install ```sh # pnpm pnpm add package-manager-detector # npm npm i package-manager-detector # yarn yarn add package-manager-detector ``` ## Usage To check the file system for which package manager is used: ```js import { detect } from 'package-manager-detector/detect' ``` or to get the currently running package manager: ```js import { getUserAgent } from 'package-manager-detector/detect' ``` ## Customize Detection Strategy By default, the `detect` API searches through the current directory for lock files, and if none exists, it looks for the `packageManager` field in `package.json`. If that also doesn't exist, it will check the `devEngines.packageManager` field in `package.json`. If all strategies couldn't detect the package manager, it'll crawl upwards to the parent directory and repeat the detection process until it reaches the root directory. The strategies can be configured through `detect`'s `strategies` option with the following accepted strategies: - `'lockfile'`: Look up for lock files. - `'packageManager-field'`: Look up for the `packageManager` field in package.json. - `'devEngines-field'`: Look up for the `devEngines.packageManager` field in package.json. - `'install-metadata'`: Look up for installation metadata added by package managers. The order of the strategies can also be changed to prioritize one strategy over another. For example, if you prefer to detect the package manager used for installation: ```js import { detect } from 'package-manager-detector/detect' const pm = await detect({ strategies: ['install-metadata', 'lockfile', 'packageManager-field', 'devEngines-field'] }) ``` ## Agents and Commands This package includes package manager agents and their corresponding commands for: - `'agent'` - run the package manager with no arguments - `'install'` - install dependencies - `'frozen'` - install dependencies using frozen lockfile - `'add'` - add dependencies - `'uninstall'` - remove dependencies - `'global'` - install global packages - `'global_uninstall'` - remove global packages - `'upgrade'` - upgrade dependencies - `'upgrade-interactive'` - upgrade dependencies interactively: not available for `npm` - `'dedupe'` - deduplicate dependencies with overlapping ranges: not available for `deno` and `bun` - `'execute'` - download & execute binary scripts - `'execute-local'` - execute binary scripts (from package locally installed) - `'run'` - run `package.json` scripts ### Using Agents and Commands A `resolveCommand` function is provided to resolve the command for a specific agent. ```ts import { resolveCommand } from 'package-manager-detector/commands' import { detect } from 'package-manager-detector/detect' const pm = await detect() if (!pm) throw new Error('Could not detect package manager') const { command, args } = resolveCommand(pm.agent, 'add', ['@antfu/ni']) // { command: 'pnpm', args: ['add', '@antfu/ni'] } console.log(`Detected the ${pm.agent} package manager. You can run a install with ${command} ${args.join(' ')}`) ``` You can check the source code or the [JSDocs](https://www.jsdocs.io/package/package-manager-detector) for more information. ## License [MIT](./LICENSE) License © 2020-PRESENT [Anthony Fu](https://github.com/antfu) [npm-version-src]: https://img.shields.io/npm/v/package-manager-detector?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/package-manager-detector [npm-downloads-src]: https://img.shields.io/npm/dm/package-manager-detector?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/package-manager-detector [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=18181B&colorB=F0DB4F [jsdocs-href]: https://www.jsdocs.io/package/package-manager-detector [license-src]: https://img.shields.io/github/license/antfu-collective/package-manager-detector.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/antfu-collective/package-manager-detector/blob/main/LICENSE --- END ORIGINAL BYTES --- ================================================================ pako@0.2.9 Declared package license: MIT Published archive: https://registry.npmjs.org/pako/-/pako-0.2.9.tgz Locked integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3bc404ffa7888053253eedcc5a667619aa08dc1be0bea400e5ff28c51602180f; bytes: 1084 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (C) 2014-2016 by Vitaly Puzrin 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 349bcf2b6c3154e68885370c4bc5b4d8082765e0ed1440d79af9ad8e94c2f618; bytes: 5340 --- BEGIN ORIGINAL BYTES --- pako - zlib port to javascript, very fast! ========================================== [![Build Status](https://travis-ci.org/nodeca/pako.svg?branch=master)](https://travis-ci.org/nodeca/pako) [![NPM version](https://img.shields.io/npm/v/pako.svg)](https://www.npmjs.org/package/pako) __Why pako is cool:__ - Almost as fast in modern JS engines as C implementation (see benchmarks). - Works in browsers, you can browserify any separate component. - Chunking support for big blobs. - Results are binary equal to well known [zlib](http://www.zlib.net/) (now v1.2.8 ported). This project was done to understand how fast JS can be and is it necessary to develop native C modules for CPU-intensive tasks. Enjoy the result! __Famous projects, using pako:__ - [browserify](http://browserify.org/) (via [browserify-zlib](https://github.com/devongovett/browserify-zlib)) - [JSZip](http://stuk.github.io/jszip/) - [mincer](https://github.com/nodeca/mincer) - [JS-Git](https://github.com/creationix/js-git) and [Tedit](https://chrome.google.com/webstore/detail/tedit-development-environ/ooekdijbnbbjdfjocaiflnjgoohnblgf) by [@creatronix](https://github.com/creationix) __Benchmarks:__ ``` node v0.10.26, 1mb sample: deflate-dankogai x 4.73 ops/sec ±0.82% (15 runs sampled) deflate-gildas x 4.58 ops/sec ±2.33% (15 runs sampled) deflate-imaya x 3.22 ops/sec ±3.95% (12 runs sampled) ! deflate-pako x 6.99 ops/sec ±0.51% (21 runs sampled) deflate-pako-string x 5.89 ops/sec ±0.77% (18 runs sampled) deflate-pako-untyped x 4.39 ops/sec ±1.58% (14 runs sampled) * deflate-zlib x 14.71 ops/sec ±4.23% (59 runs sampled) inflate-dankogai x 32.16 ops/sec ±0.13% (56 runs sampled) inflate-imaya x 30.35 ops/sec ±0.92% (53 runs sampled) ! inflate-pako x 69.89 ops/sec ±1.46% (71 runs sampled) inflate-pako-string x 19.22 ops/sec ±1.86% (49 runs sampled) inflate-pako-untyped x 17.19 ops/sec ±0.85% (32 runs sampled) * inflate-zlib x 70.03 ops/sec ±1.64% (81 runs sampled) node v0.11.12, 1mb sample: deflate-dankogai x 5.60 ops/sec ±0.49% (17 runs sampled) deflate-gildas x 5.06 ops/sec ±6.00% (16 runs sampled) deflate-imaya x 3.52 ops/sec ±3.71% (13 runs sampled) ! deflate-pako x 11.52 ops/sec ±0.22% (32 runs sampled) deflate-pako-string x 9.53 ops/sec ±1.12% (27 runs sampled) deflate-pako-untyped x 5.44 ops/sec ±0.72% (17 runs sampled) * deflate-zlib x 14.05 ops/sec ±3.34% (63 runs sampled) inflate-dankogai x 42.19 ops/sec ±0.09% (56 runs sampled) inflate-imaya x 79.68 ops/sec ±1.07% (68 runs sampled) ! inflate-pako x 97.52 ops/sec ±0.83% (80 runs sampled) inflate-pako-string x 45.19 ops/sec ±1.69% (57 runs sampled) inflate-pako-untyped x 24.35 ops/sec ±2.59% (40 runs sampled) * inflate-zlib x 60.32 ops/sec ±1.36% (69 runs sampled) ``` zlib's test is partialy afferted by marshling (that make sense for inflate only). You can change deflate level to 0 in benchmark source, to investigate details. For deflate level 6 results can be considered as correct. __Install:__ node.js: ``` npm install pako ``` browser: ``` bower install pako ``` Example & API ------------- Full docs - http://nodeca.github.io/pako/ ```javascript var pako = require('pako'); // Deflate // var input = new Uint8Array(); //... fill input data here var output = pako.deflate(input); // Inflate (simple wrapper can throw exception on broken stream) // var compressed = new Uint8Array(); //... fill data to uncompress here try { var result = pako.inflate(compressed); } catch (err) { console.log(err); } // // Alternate interface for chunking & without exceptions // var inflator = new pako.Inflate(); inflator.push(chunk1, false); inflator.push(chunk2, false); ... inflator.push(chunkN, true); // true -> last chunk if (inflator.err) { console.log(inflator.msg); } var output = inflator.result; ``` Sometime you can wish to work with strings. For example, to send big objects as json to server. Pako detects input data type. You can force output to be string with option `{ to: 'string' }`. ```javascript var pako = require('pako'); var test = { my: 'super', puper: [456, 567], awesome: 'pako' }; var binaryString = pako.deflate(JSON.stringify(test), { to: 'string' }); // // Here you can do base64 encode, make xhr requests and so on. // var restored = JSON.parse(pako.inflate(binaryString, { to: 'string' })); ``` Notes ----- Pako does not contain some specific zlib functions: - __deflate__ - methods `deflateCopy`, `deflateBound`, `deflateParams`, `deflatePending`, `deflatePrime`, `deflateTune`. - __inflate__ - methods `inflateCopy`, `inflateMark`, `inflatePrime`, `inflateGetDictionary`, `inflateSync`, `inflateSyncPoint`, `inflateUndermine`. - High level inflate/deflate wrappers (classes) may not support some flush modes. Those should work: Z_NO_FLUSH, Z_FINISH, Z_SYNC_FLUSH. Authors ------- - Andrey Tupitsin [@anrd83](https://github.com/andr83) - Vitaly Puzrin [@puzrin](https://github.com/puzrin) Personal thanks to: - Vyacheslav Egorov ([@mraleph](https://github.com/mraleph)) for his awesome tutorials about optimising JS code for v8, [IRHydra](http://mrale.ph/irhydra/) tool and his advices. - David Duponchel ([@dduponchel](https://github.com/dduponchel)) for help with testing. License ------- MIT --- END ORIGINAL BYTES --- ================================================================ parse-css-color@0.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/parse-css-color/-/parse-css-color-0.2.1.tgz Locked integrity: sha512-bwS/GGIFV3b6KS4uwpzCFj4w297Yl3uqnSgIPsoQkx7GMLROXfMnWvxfNkL0oh8HVhZA4hvJoEoEIqonfJ3BWg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3c8c000c81035fa1f6dceeb5eced4b60cb91811e6e1e749ab01dc8b34dea34bd; bytes: 1110 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) Noel Delgado (pixelia.me) 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 0280c625ac571db1f70b7ed694e8c98fbac3dd30e963b81f848f62afe1027817; bytes: 3830 --- BEGIN ORIGINAL BYTES --- # parse-css-color [![NPM Version][npm-image]][npm-url] ![](https://img.badgesize.io/noeldelgado/parse-css-color/master/src/index.js.svg?compression=gzip) [![License][license-img]][license-url] [![Known Vulnerabilities][snyk-img]][snyk-url] [![Libraries.io dependency status for latest release][librariesio-img]][librariesio-url] [![Total alerts][lgtm-image]][lgtm-url] [![Language grade: JavaScript][lgtm-grade-image]][lgtm-grade-url] Parse a CSS color string. ### Supports * \ * Hexadecimal RGB value: #RGB #RRGGBB * #RGBA #RRGGBBAA (4 and 8-digit hexadecimal RGBA notation) * RGB/A color module level 3 and 4 (number, percentage) * HSL/A color module level 3 and 4 (number, deg, rad, turn) * \ * One of the [pre-defined color keywords](https://www.w3.org/wiki/CSS/Properties/color/keywords). * transparent * Shorthand for transparent black, rgba(0,0,0,0). ### Does not support * currentColor * inherit ## Installation **NPM** ```sh npm i parse-css-color ``` Or as a ` ``` **jsDelivr CDN** ```html ``` ## Usage ```js import parse from 'parse-css-color' // HEX/A parse('#00f') //> { type: 'rgb', values: [0, 0, 255], alpha: 1 } parse('#00f8') //> { type: 'rgb', values: [0, 0, 255], alpha: 0.5333333333333333 } parse('#0000FF80') //> { type: 'rgb', values: [0, 0, 255], alpha: 0.5019607843137255 } parse('#00g') //> null // HSL/A parse('hsl(270deg 60% 70% / 25%)') //> { type: 'hsl', values: [270, 60, 70], alpha: 0.25 } parse('hsl(4.71239rad 260% -70% / 0.5)') // clipped to //> { type: 'hsl', values: [270, 100, 0], alpha: 0.5 } parse('hsla(.75turn, 60%, 70%, 50%)') //> { type: 'hsl', values: [270, 60, 70], alpha: 0.5 } parse('hsla(100deg 0 0 / 0)') // error: missing percetanges //> null // RGB/A parse('rgb(255 0 0 / 0.5)') //> { type: 'rgb', values: [255, 0, 0], alpha: 0.5 } parse('rgb(500 -100 0 / 200%)') // clipped to //> { type: 'rgb', values: [255, 0, 0], alpha: 1 } parse('rgba(255, 0, 255, 20%)') //> { type: 'rgb', values: [255, 0, 255], alpha: 0.2 } parse('rgba(100% 255 100% / 0)') // error: mixed percetange with integer //> null ``` See [tests](https://github.com/noeldelgado/parse-css-color/tree/master/test) for more cases. ## Dev ```sh npm install # install dependencies npm test # run the tests (append `-- -w`) to watch npm run dev # watch for changes and rebuild ``` ## Related - [mix-css-color](https://github.com/noeldelgado/mix-css-color) - Mix two CSS colors together in variable proportion. Opacity is included in the calculations. - [values.js](https://github.com/noeldelgado/values.js) - Get the tints and shades of a CSS color. ## License MIT © [Noel Delgado](http://pixelia.me/) [npm-image]: https://img.shields.io/npm/v/parse-css-color.svg?logo=npm&label=NPM [npm-url]: https://www.npmjs.com/package/parse-css-color [license-img]: https://img.shields.io/npm/l/parse-css-color [license-url]: https://github.com/noeldelgado/parse-css-color/blob/master/LICENSE [snyk-img]: https://snyk.io/test/npm/parse-css-color/badge.svg [snyk-url]: https://snyk.io/test/npm/parse-css-color [librariesio-img]: https://img.shields.io/librariesio/release/npm/parse-css-color.svg?logo=librariesdotio [librariesio-url]: https://libraries.io/npm/parse-css-color [lgtm-image]: https://img.shields.io/lgtm/alerts/g/noeldelgado/parse-css-color.svg?logo=lgtm&logoWidth=18 [lgtm-url]: https://lgtm.com/projects/g/noeldelgado/parse-css-color/alerts/ [lgtm-grade-image]: https://img.shields.io/lgtm/grade/javascript/g/noeldelgado/parse-css-color.svg?logo=lgtm&logoWidth=18 [lgtm-grade-url]: https://lgtm.com/projects/g/noeldelgado/parse-css-color/context:javascript --- END ORIGINAL BYTES --- ================================================================ piccolore@0.1.3 Declared package license: ISC Published archive: https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz Locked integrity: sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier ISC. ================================================================ picocolors@1.1.1 Declared package license: ISC Published archive: https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz Locked integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 6582629e2979466878f6014313dcc2f3756c9616148682227ce3063dde310750; bytes: 787 --- BEGIN ORIGINAL BYTES --- ISC License Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ picomatch@2.3.2 Declared package license: MIT Published archive: https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz Locked integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: d0cd141b0c322fded5dfad1d4645bb2fedfc05b7321fe1009469638190d59ef9; bytes: 1091 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2017-present, Jon Schlinkert. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: f4653b68a1883a32f852083c1b93381ce87f44c6855ce1f01854d39d0563c98c; bytes: 27999 --- BEGIN ORIGINAL BYTES ---

Picomatch

version test status coverage status downloads



Blazing fast and accurate glob matcher written in JavaScript.
No dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.



## Why picomatch? * **Lightweight** - No dependencies * **Minimal** - Tiny API surface. Main export is a function that takes a glob pattern and returns a matcher function. * **Fast** - Loads in about 2ms (that's several times faster than a [single frame of a HD movie](http://www.endmemo.com/sconvert/framespersecondframespermillisecond.php) at 60fps) * **Performant** - Use the returned matcher function to speed up repeat matching (like when watching files) * **Accurate matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories, [advanced globbing](#advanced-globbing) with extglobs, braces, and POSIX brackets, and support for escaping special characters with `\` or quotes. * **Well tested** - Thousands of unit tests See the [library comparison](#library-comparisons) to other libraries.

## Table of Contents
Click to expand - [Install](#install) - [Usage](#usage) - [API](#api) * [picomatch](#picomatch) * [.test](#test) * [.matchBase](#matchbase) * [.isMatch](#ismatch) * [.parse](#parse) * [.scan](#scan) * [.compileRe](#compilere) * [.makeRe](#makere) * [.toRegex](#toregex) - [Options](#options) * [Picomatch options](#picomatch-options) * [Scan Options](#scan-options) * [Options Examples](#options-examples) - [Globbing features](#globbing-features) * [Basic globbing](#basic-globbing) * [Advanced globbing](#advanced-globbing) * [Braces](#braces) * [Matching special characters as literals](#matching-special-characters-as-literals) - [Library Comparisons](#library-comparisons) - [Benchmarks](#benchmarks) - [Philosophies](#philosophies) - [About](#about) * [Author](#author) * [License](#license) _(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_


## Install Install with [npm](https://www.npmjs.com/): ```sh npm install --save picomatch ```
## Usage The main export is a function that takes a glob pattern and an options object and returns a function for matching strings. ```js const pm = require('picomatch'); const isMatch = pm('*.js'); console.log(isMatch('abcd')); //=> false console.log(isMatch('a.js')); //=> true console.log(isMatch('a.md')); //=> false console.log(isMatch('a/b.js')); //=> false ```
## API ### [picomatch](lib/picomatch.js#L32) Creates a matcher function from one or more glob patterns. The returned function takes a string to match as its first argument, and returns true if the string is a match. The returned matcher function also takes a boolean as the second argument that, when true, returns an object with additional information. **Params** * `globs` **{String|Array}**: One or more glob patterns. * `options` **{Object=}** * `returns` **{Function=}**: Returns a matcher function. **Example** ```js const picomatch = require('picomatch'); // picomatch(glob[, options]); const isMatch = picomatch('*.!(*a)'); console.log(isMatch('a.a')); //=> false console.log(isMatch('a.b')); //=> true ``` ### [.test](lib/picomatch.js#L117) Test `input` with the given `regex`. This is used by the main `picomatch()` function to test the input string. **Params** * `input` **{String}**: String to test. * `regex` **{RegExp}** * `returns` **{Object}**: Returns an object with matching info. **Example** ```js const picomatch = require('picomatch'); // picomatch.test(input, regex[, options]); console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/)); // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' } ``` ### [.matchBase](lib/picomatch.js#L161) Match the basename of a filepath. **Params** * `input` **{String}**: String to test. * `glob` **{RegExp|String}**: Glob pattern or regex created by [.makeRe](#makeRe). * `returns` **{Boolean}** **Example** ```js const picomatch = require('picomatch'); // picomatch.matchBase(input, glob[, options]); console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true ``` ### [.isMatch](lib/picomatch.js#L183) Returns true if **any** of the given glob `patterns` match the specified `string`. **Params** * **{String|Array}**: str The string to test. * **{String|Array}**: patterns One or more glob patterns to use for matching. * **{Object}**: See available [options](#options). * `returns` **{Boolean}**: Returns true if any patterns match `str` **Example** ```js const picomatch = require('picomatch'); // picomatch.isMatch(string, patterns[, options]); console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true console.log(picomatch.isMatch('a.a', 'b.*')); //=> false ``` ### [.parse](lib/picomatch.js#L199) Parse a glob pattern to create the source string for a regular expression. **Params** * `pattern` **{String}** * `options` **{Object}** * `returns` **{Object}**: Returns an object with useful properties and output to be used as a regex source string. **Example** ```js const picomatch = require('picomatch'); const result = picomatch.parse(pattern[, options]); ``` ### [.scan](lib/picomatch.js#L231) Scan a glob pattern to separate the pattern into segments. **Params** * `input` **{String}**: Glob pattern to scan. * `options` **{Object}** * `returns` **{Object}**: Returns an object with **Example** ```js const picomatch = require('picomatch'); // picomatch.scan(input[, options]); const result = picomatch.scan('!./foo/*.js'); console.log(result); { prefix: '!./', input: '!./foo/*.js', start: 3, base: 'foo', glob: '*.js', isBrace: false, isBracket: false, isGlob: true, isExtglob: false, isGlobstar: false, negated: true } ``` ### [.compileRe](lib/picomatch.js#L245) Compile a regular expression from the `state` object returned by the [parse()](#parse) method. **Params** * `state` **{Object}** * `options` **{Object}** * `returnOutput` **{Boolean}**: Intended for implementors, this argument allows you to return the raw output from the parser. * `returnState` **{Boolean}**: Adds the state to a `state` property on the returned regex. Useful for implementors and debugging. * `returns` **{RegExp}** ### [.makeRe](lib/picomatch.js#L286) Create a regular expression from a parsed glob pattern. **Params** * `state` **{String}**: The object returned from the `.parse` method. * `options` **{Object}** * `returnOutput` **{Boolean}**: Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result. * `returnState` **{Boolean}**: Implementors may use this argument to return the state from the parsed glob with the returned regular expression. * `returns` **{RegExp}**: Returns a regex created from the given pattern. **Example** ```js const picomatch = require('picomatch'); const state = picomatch.parse('*.js'); // picomatch.compileRe(state[, options]); console.log(picomatch.compileRe(state)); //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ ``` ### [.toRegex](lib/picomatch.js#L321) Create a regular expression from the given regex source string. **Params** * `source` **{String}**: Regular expression source string. * `options` **{Object}** * `returns` **{RegExp}** **Example** ```js const picomatch = require('picomatch'); // picomatch.toRegex(source[, options]); const { output } = picomatch.parse('*.js'); console.log(picomatch.toRegex(output)); //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ ```
## Options ### Picomatch options The following options may be used with the main `picomatch()` function or any of the methods on the picomatch API. | **Option** | **Type** | **Default value** | **Description** | | --- | --- | --- | --- | | `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. | | `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). | | `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. | | `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). | | `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` | | `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. | | `dot` | `boolean` | `false` | Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true | | `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. | | `failglob` | `boolean` | `false` | Throws an error if no matches are found. Based on the bash option of the same name. | | `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. | | `flags` | `string` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. | | [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. | | `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. | | `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. | | `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. | | `matchBase` | `boolean` | `false` | Alias for `basename` | | `maxLength` | `number` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. | | `maxExtglobRecursion` | `number\|boolean` | `0` | Limit nested quantified extglobs and other risky repeated extglob forms. When the limit is exceeded, the extglob is treated as a literal string instead of being compiled to regex. Set to `false` to disable this safeguard. | | `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | | `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. | | `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. | | `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. | | `noext` | `boolean` | `false` | Alias for `noextglob` | | `noextglob` | `boolean` | `false` | Disable support for matching with extglobs (like `+(a\|b)`) | | `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) | | `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` | | `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. | | [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. | | [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. | | [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. | | `posix` | `boolean` | `false` | Support POSIX character classes ("posix brackets"). | | `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself | | `prepend` | `boolean` | `undefined` | String to prepend to the generated regex used for matching. | | `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). | | `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. | | `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. | | `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. | | `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatibility. | picomatch has automatic detection for regex positive and negative lookbehinds. If the pattern contains a negative lookbehind, you must be using Node.js >= 8.10 or else picomatch will throw an error. ### Scan Options In addition to the main [picomatch options](#picomatch-options), the following options may also be used with the [.scan](#scan) method. | **Option** | **Type** | **Default value** | **Description** | | --- | --- | --- | --- | | `tokens` | `boolean` | `false` | When `true`, the returned object will include an array of tokens (objects), representing each path "segment" in the scanned glob pattern | | `parts` | `boolean` | `false` | When `true`, the returned object will include an array of strings representing each path "segment" in the scanned glob pattern. This is automatically enabled when `options.tokens` is true | **Example** ```js const picomatch = require('picomatch'); const result = picomatch.scan('!./foo/*.js', { tokens: true }); console.log(result); // { // prefix: '!./', // input: '!./foo/*.js', // start: 3, // base: 'foo', // glob: '*.js', // isBrace: false, // isBracket: false, // isGlob: true, // isExtglob: false, // isGlobstar: false, // negated: true, // maxDepth: 2, // tokens: [ // { value: '!./', depth: 0, isGlob: false, negated: true, isPrefix: true }, // { value: 'foo', depth: 1, isGlob: false }, // { value: '*.js', depth: 1, isGlob: true } // ], // slashes: [ 2, 6 ], // parts: [ 'foo', '*.js' ] // } ```
### Options Examples #### options.expandRange **Type**: `function` **Default**: `undefined` Custom function for expanding ranges in brace patterns. The [fill-range](https://github.com/jonschlinkert/fill-range) library is ideal for this purpose, or you can use custom code to do whatever you need. **Example** The following example shows how to create a glob that matches a folder ```js const fill = require('fill-range'); const regex = pm.makeRe('foo/{01..25}/bar', { expandRange(a, b) { return `(${fill(a, b, { toRegex: true })})`; } }); console.log(regex); //=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/ console.log(regex.test('foo/00/bar')) // false console.log(regex.test('foo/01/bar')) // true console.log(regex.test('foo/10/bar')) // true console.log(regex.test('foo/22/bar')) // true console.log(regex.test('foo/25/bar')) // true console.log(regex.test('foo/26/bar')) // false ``` #### options.format **Type**: `function` **Default**: `undefined` Custom function for formatting strings before they're matched. **Example** ```js // strip leading './' from strings const format = str => str.replace(/^\.\//, ''); const isMatch = picomatch('foo/*.js', { format }); console.log(isMatch('./foo/bar.js')); //=> true ``` #### options.onMatch ```js const onMatch = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onMatch }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ``` #### options.onIgnore ```js const onIgnore = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onIgnore, ignore: 'f*' }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ``` #### options.onResult ```js const onResult = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onResult, ignore: 'f*' }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ```

## Globbing features * [Basic globbing](#basic-globbing) (Wildcard matching) * [Advanced globbing](#advanced-globbing) (extglobs, posix brackets, brace matching) ### Basic globbing | **Character** | **Description** | | --- | --- | | `*` | Matches any character zero or more times, excluding path separators. Does _not match_ path separators or hidden files or directories ("dotfiles"), unless explicitly enabled by setting the `dot` option to `true`. | | `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` on Windows) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. | | `?` | Matches any character excluding path separators one time. Does _not match_ path separators or leading dots. | | `[abc]` | Matches any characters inside the brackets. For example, `[abc]` would match the characters `a`, `b` or `c`, and nothing else. | #### Matching behavior vs. Bash Picomatch's matching features and expected results in unit tests are based on Bash's unit tests and the Bash 4.3 specification, with the following exceptions: * Bash will match `foo/bar/baz` with `*`. Picomatch only matches nested directories with `**`. * Bash greedily matches with negated extglobs. For example, Bash 4.3 says that `!(foo)*` should match `foo` and `foobar`, since the trailing `*` bracktracks to match the preceding pattern. This is very memory-inefficient, and IMHO, also incorrect. Picomatch would return `false` for both `foo` and `foobar`.
### Advanced globbing * [extglobs](#extglobs) * [POSIX brackets](#posix-brackets) * [Braces](#brace-expansion) #### Extglobs | **Pattern** | **Description** | | --- | --- | | `@(pattern)` | Match _only one_ consecutive occurrence of `pattern` | | `*(pattern)` | Match _zero or more_ consecutive occurrences of `pattern` | | `+(pattern)` | Match _one or more_ consecutive occurrences of `pattern` | | `?(pattern)` | Match _zero or **one**_ consecutive occurrences of `pattern` | | `!(pattern)` | Match _anything but_ `pattern` | **Examples** ```js const pm = require('picomatch'); // *(pattern) matches ZERO or more of "pattern" console.log(pm.isMatch('a', 'a*(z)')); // true console.log(pm.isMatch('az', 'a*(z)')); // true console.log(pm.isMatch('azzz', 'a*(z)')); // true // +(pattern) matches ONE or more of "pattern" console.log(pm.isMatch('a', 'a*(z)')); // true console.log(pm.isMatch('az', 'a*(z)')); // true console.log(pm.isMatch('azzz', 'a*(z)')); // true // supports multiple extglobs console.log(pm.isMatch('foo.bar', '!(foo).!(bar)')); // false // supports nested extglobs console.log(pm.isMatch('foo.bar', '!(!(foo)).!(!(bar))')); // true // risky quantified extglobs are treated literally by default console.log(pm.makeRe('+(a|aa)')); //=> /^(?:\+\(a\|aa\))$/ // increase the limit to allow a small amount of nested quantified extglobs console.log(pm.isMatch('aaa', '+(+(a))', { maxExtglobRecursion: 1 })); // true ``` #### POSIX brackets POSIX classes are disabled by default. Enable this feature by setting the `posix` option to true. **Enable POSIX bracket support** ```js console.log(pm.makeRe('[[:word:]]+', { posix: true })); //=> /^(?:(?=.)[A-Za-z0-9_]+\/?)$/ ``` **Supported POSIX classes** The following named POSIX bracket expressions are supported: * `[:alnum:]` - Alphanumeric characters, equ `[a-zA-Z0-9]` * `[:alpha:]` - Alphabetical characters, equivalent to `[a-zA-Z]`. * `[:ascii:]` - ASCII characters, equivalent to `[\\x00-\\x7F]`. * `[:blank:]` - Space and tab characters, equivalent to `[ \\t]`. * `[:cntrl:]` - Control characters, equivalent to `[\\x00-\\x1F\\x7F]`. * `[:digit:]` - Numerical digits, equivalent to `[0-9]`. * `[:graph:]` - Graph characters, equivalent to `[\\x21-\\x7E]`. * `[:lower:]` - Lowercase letters, equivalent to `[a-z]`. * `[:print:]` - Print characters, equivalent to `[\\x20-\\x7E ]`. * `[:punct:]` - Punctuation and symbols, equivalent to `[\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~]`. * `[:space:]` - Extended space characters, equivalent to `[ \\t\\r\\n\\v\\f]`. * `[:upper:]` - Uppercase letters, equivalent to `[A-Z]`. * `[:word:]` - Word characters (letters, numbers and underscores), equivalent to `[A-Za-z0-9_]`. * `[:xdigit:]` - Hexadecimal digits, equivalent to `[A-Fa-f0-9]`. See the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) for more information. ### Braces Picomatch does not do brace expansion. For [brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) and advanced matching with braces, use [micromatch](https://github.com/micromatch/micromatch) instead. Picomatch has very basic support for braces. ### Matching special characters as literals If you wish to match the following special characters in a filepath, and you want to use these characters in your glob pattern, they must be escaped with backslashes or quotes: **Special Characters** Some characters that are used for matching in regular expressions are also regarded as valid file path characters on some platforms. To match any of the following characters as literals: `$^*+?()[] Examples: ```js console.log(pm.makeRe('foo/bar \\(1\\)')); console.log(pm.makeRe('foo/bar \\(1\\)')); ```

## Library Comparisons The following table shows which features are supported by [minimatch](https://github.com/isaacs/minimatch), [micromatch](https://github.com/micromatch/micromatch), [picomatch](https://github.com/micromatch/picomatch), [nanomatch](https://github.com/micromatch/nanomatch), [extglob](https://github.com/micromatch/extglob), [braces](https://github.com/micromatch/braces), and [expand-brackets](https://github.com/micromatch/expand-brackets). | **Feature** | `minimatch` | `micromatch` | `picomatch` | `nanomatch` | `extglob` | `braces` | `expand-brackets` | | --- | --- | --- | --- | --- | --- | --- | --- | | Wildcard matching (`*?+`) | ✔ | ✔ | ✔ | ✔ | - | - | - | | Advancing globbing | ✔ | ✔ | ✔ | - | - | - | - | | Brace _matching_ | ✔ | ✔ | ✔ | - | - | ✔ | - | | Brace _expansion_ | ✔ | ✔ | - | - | - | ✔ | - | | Extglobs | partial | ✔ | ✔ | - | ✔ | - | - | | Posix brackets | - | ✔ | ✔ | - | - | - | ✔ | | Regular expression syntax | - | ✔ | ✔ | ✔ | ✔ | - | ✔ | | File system operations | - | - | - | - | - | - | - |

## Benchmarks Performance comparison of picomatch and minimatch. ``` # .makeRe star picomatch x 1,993,050 ops/sec ±0.51% (91 runs sampled) minimatch x 627,206 ops/sec ±1.96% (87 runs sampled)) # .makeRe star; dot=true picomatch x 1,436,640 ops/sec ±0.62% (91 runs sampled) minimatch x 525,876 ops/sec ±0.60% (88 runs sampled) # .makeRe globstar picomatch x 1,592,742 ops/sec ±0.42% (90 runs sampled) minimatch x 962,043 ops/sec ±1.76% (91 runs sampled)d) # .makeRe globstars picomatch x 1,615,199 ops/sec ±0.35% (94 runs sampled) minimatch x 477,179 ops/sec ±1.33% (91 runs sampled) # .makeRe with leading star picomatch x 1,220,856 ops/sec ±0.40% (92 runs sampled) minimatch x 453,564 ops/sec ±1.43% (94 runs sampled) # .makeRe - basic braces picomatch x 392,067 ops/sec ±0.70% (90 runs sampled) minimatch x 99,532 ops/sec ±2.03% (87 runs sampled)) ```

## Philosophies The goal of this library is to be blazing fast, without compromising on accuracy. **Accuracy** The number one of goal of this library is accuracy. However, it's not unusual for different glob implementations to have different rules for matching behavior, even with simple wildcard matching. It gets increasingly more complicated when combinations of different features are combined, like when extglobs are combined with globstars, braces, slashes, and so on: `!(**/{a,b,*/c})`. Thus, given that there is no canonical glob specification to use as a single source of truth when differences of opinion arise regarding behavior, sometimes we have to implement our best judgement and rely on feedback from users to make improvements. **Performance** Although this library performs well in benchmarks, and in most cases it's faster than other popular libraries we benchmarked against, we will always choose accuracy over performance. It's not helpful to anyone if our library is faster at returning the wrong answer.

## About
Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.
Running Tests Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: ```sh npm install && npm test ```
Building docs _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ To generate the readme, run the following command: ```sh npm install -g verbose/verb#dev verb-generate-readme && verb ```
### Author **Jon Schlinkert** * [GitHub Profile](https://github.com/jonschlinkert) * [Twitter Profile](https://twitter.com/jonschlinkert) * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) ### License Copyright © 2017-present, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT License](LICENSE). --- END ORIGINAL BYTES --- ================================================================ picomatch@4.0.7 Declared package license: MIT Published archive: https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz Locked integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: d0cd141b0c322fded5dfad1d4645bb2fedfc05b7321fe1009469638190d59ef9; bytes: 1091 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2017-present, Jon Schlinkert. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: a69b87120fe2b9cb8f9057eaef6b9f9887f803e02185ca2f431e8162f6312220; bytes: 28319 --- BEGIN ORIGINAL BYTES ---

Picomatch

version test status coverage status downloads



Blazing fast and accurate glob matcher written in JavaScript.
No dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.



## Why picomatch? * **Lightweight** - No dependencies * **Minimal** - Tiny API surface. Main export is a function that takes a glob pattern and returns a matcher function. * **Fast** - Loads in about 2ms (that's several times faster than a [single frame of a HD movie](http://www.endmemo.com/sconvert/framespersecondframespermillisecond.php) at 60fps) * **Performant** - Use the returned matcher function to speed up repeat matching (like when watching files) * **Accurate matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories, [advanced globbing](#advanced-globbing) with extglobs, braces, and POSIX brackets, and support for escaping special characters with `\` or quotes. * **Well tested** - Thousands of unit tests See the [library comparison](#library-comparisons) to other libraries.

## Table of Contents
Click to expand - [Install](#install) - [Usage](#usage) - [API](#api) * [picomatch](#picomatch) * [.test](#test) * [.matchBase](#matchbase) * [.isMatch](#ismatch) * [.parse](#parse) * [.scan](#scan) * [.compileRe](#compilere) * [.makeRe](#makere) * [.toRegex](#toregex) - [Options](#options) * [Picomatch options](#picomatch-options) * [Scan Options](#scan-options) * [Options Examples](#options-examples) - [Globbing features](#globbing-features) * [Basic globbing](#basic-globbing) * [Advanced globbing](#advanced-globbing) * [Braces](#braces) * [Matching special characters as literals](#matching-special-characters-as-literals) - [Library Comparisons](#library-comparisons) - [Benchmarks](#benchmarks) - [Philosophies](#philosophies) - [About](#about) * [Author](#author) * [License](#license) _(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_


## Install Install with [npm](https://www.npmjs.com/): ```sh npm install --save picomatch ```
## Usage The main export is a function that takes a glob pattern and an options object and returns a function for matching strings. ```js const pm = require('picomatch'); const isMatch = pm('*.js'); console.log(isMatch('abcd')); //=> false console.log(isMatch('a.js')); //=> true console.log(isMatch('a.md')); //=> false console.log(isMatch('a/b.js')); //=> false ```
## API ### [picomatch](lib/picomatch.js#L43) Creates a matcher function from one or more glob patterns. The returned function takes a string to match as its first argument, and returns true if the string is a match. The returned matcher function also takes a boolean as the second argument that, when true, returns an object with additional information. **Params** * `globs` **{String|Array}**: One or more glob patterns. * `options` **{Object=}** * `returns` **{Function=}**: Returns a matcher function. **Example** ```js const picomatch = require('picomatch'); // picomatch(glob[, options]); const isMatch = picomatch('*.!(*a)'); console.log(isMatch('a.a')); //=> false console.log(isMatch('a.b')); //=> true // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection. const picomatch = require('picomatch/posix'); // the same API, defaulting to posix paths const isMatch = picomatch('a/*'); console.log(isMatch('a\\b')); //=> false console.log(isMatch('a/b')); //=> true // you can still configure the matcher function to accept windows paths const isMatch = picomatch('a/*', { options: windows }); console.log(isMatch('a\\b')); //=> true console.log(isMatch('a/b')); //=> true ``` ### [.test](lib/picomatch.js#L128) Test `input` with the given `regex`. This is used by the main `picomatch()` function to test the input string. **Params** * `input` **{String}**: String to test. * `regex` **{RegExp}** * `returns` **{Object}**: Returns an object with matching info. **Example** ```js const picomatch = require('picomatch'); // picomatch.test(input, regex[, options]); console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/)); // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' } ``` ### [.matchBase](lib/picomatch.js#L172) Match the basename of a filepath. **Params** * `input` **{String}**: String to test. * `glob` **{RegExp|String}**: Glob pattern or regex created by [.makeRe](#makeRe). * `returns` **{Boolean}** **Example** ```js const picomatch = require('picomatch'); // picomatch.matchBase(input, glob[, options]); console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true ``` ### [.isMatch](lib/picomatch.js#L194) Returns true if **any** of the given glob `patterns` match the specified `string`. **Params** * **{String|Array}**: str The string to test. * **{String|Array}**: patterns One or more glob patterns to use for matching. * **{Object}**: See available [options](#options). * `returns` **{Boolean}**: Returns true if any patterns match `str` **Example** ```js const picomatch = require('picomatch'); // picomatch.isMatch(string, patterns[, options]); console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true console.log(picomatch.isMatch('a.a', 'b.*')); //=> false ``` ### [.parse](lib/picomatch.js#L210) Parse a glob pattern to create the source string for a regular expression. **Params** * `pattern` **{String}** * `options` **{Object}** * `returns` **{Object}**: Returns an object with useful properties and output to be used as a regex source string. **Example** ```js const picomatch = require('picomatch'); const result = picomatch.parse(pattern[, options]); ``` ### [.scan](lib/picomatch.js#L242) Scan a glob pattern to separate the pattern into segments. **Params** * `input` **{String}**: Glob pattern to scan. * `options` **{Object}** * `returns` **{Object}**: Returns an object with **Example** ```js const picomatch = require('picomatch'); // picomatch.scan(input[, options]); const result = picomatch.scan('!./foo/*.js'); console.log(result); { prefix: '!./', input: '!./foo/*.js', start: 3, base: 'foo', glob: '*.js', isBrace: false, isBracket: false, isGlob: true, isExtglob: false, isGlobstar: false, negated: true } ``` ### [.compileRe](lib/picomatch.js#L264) Compile a regular expression from the `state` object returned by the [parse()](#parse) method. **Params** * `state` **{Object}** * `options` **{Object}** * `returnOutput` **{Boolean}**: Intended for implementors, this argument allows you to return the raw output from the parser. * `returnState` **{Boolean}**: Adds the state to a `state` property on the returned regex. Useful for implementors and debugging. * `returns` **{RegExp}** **Example** ```js const picomatch = require('picomatch'); const state = picomatch.parse('*.js'); // picomatch.compileRe(state[, options]); console.log(picomatch.compileRe(state)); //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ ``` ### [.makeRe](lib/picomatch.js#L305) Create a regular expression from a parsed glob pattern. **Params** * `state` **{String}**: The object returned from the `.parse` method. * `options` **{Object}** * `returnOutput` **{Boolean}**: Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result. * `returnState` **{Boolean}**: Implementors may use this argument to return the state from the parsed glob with the returned regular expression. * `returns` **{RegExp}**: Returns a regex created from the given pattern. **Example** ```js const picomatch = require('picomatch'); // picomatch.makeRe(state[, options]); const result = picomatch.makeRe('*.js'); console.log(result); //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ ``` ### [.toRegex](lib/picomatch.js#L340) Create a regular expression from the given regex source string. **Params** * `source` **{String}**: Regular expression source string. * `options` **{Object}** * `returns` **{RegExp}** **Example** ```js const picomatch = require('picomatch'); // picomatch.toRegex(source[, options]); const { output } = picomatch.parse('*.js'); console.log(picomatch.toRegex(output)); //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ ```
## Options ### Picomatch options The following options may be used with the main `picomatch()` function or any of the methods on the picomatch API. | **Option** | **Type** | **Default value** | **Description** | | --- | --- | --- | --- | | `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. | | `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). | | `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. | | `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). | | `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. | | `dot` | `boolean` | `false` | Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true | | `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. | | `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. | | `flags` | `string` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. | | [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. | | `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. | | `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. | | `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. | | `matchBase` | `boolean` | `false` | Alias for `basename` | | `maxLength` | `number` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. | | `maxExtglobRecursion` | `number\|boolean` | `0` | Limit nested quantified extglobs and other risky repeated extglob forms. When the limit is exceeded, the extglob is treated as a literal string instead of being compiled to regex. Set to `false` to disable this safeguard. | | `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | | `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. | | `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. | | `noext` | `boolean` | `false` | Alias for `noextglob` | | `noextglob` | `boolean` | `false` | Disable support for matching with extglobs (like `+(a\|b)`) | | `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) | | `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` | | [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. | | [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. | | [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. | | `posix` | `boolean` | `false` | Support POSIX character classes ("posix brackets"). | | `prepend` | `boolean` | `undefined` | String to prepend to the generated regex used for matching. | | `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). | | `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. | | `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. | | `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. | | `windows` | `boolean` | `false` | Also accept backslashes as the path separator. | ### Scan Options In addition to the main [picomatch options](#picomatch-options), the following options may also be used with the [.scan](#scan) method. | **Option** | **Type** | **Default value** | **Description** | | --- | --- | --- | --- | | `tokens` | `boolean` | `false` | When `true`, the returned object will include an array of tokens (objects), representing each path "segment" in the scanned glob pattern | | `parts` | `boolean` | `false` | When `true`, the returned object will include an array of strings representing each path "segment" in the scanned glob pattern. This is automatically enabled when `options.tokens` is true | **Example** ```js const picomatch = require('picomatch'); const result = picomatch.scan('!./foo/*.js', { tokens: true }); console.log(result); // { // prefix: '!./', // input: '!./foo/*.js', // start: 3, // base: 'foo', // glob: '*.js', // isBrace: false, // isBracket: false, // isGlob: true, // isExtglob: false, // isGlobstar: false, // negated: true, // maxDepth: 2, // tokens: [ // { value: '!./', depth: 0, isGlob: false, negated: true, isPrefix: true }, // { value: 'foo', depth: 1, isGlob: false }, // { value: '*.js', depth: 1, isGlob: true } // ], // slashes: [ 2, 6 ], // parts: [ 'foo', '*.js' ] // } ```
### Options Examples #### options.expandRange **Type**: `function` **Default**: `undefined` Custom function for expanding ranges in brace patterns. The [fill-range](https://github.com/jonschlinkert/fill-range) library is ideal for this purpose, or you can use custom code to do whatever you need. **Example** The following example shows how to create a glob that matches a folder ```js const fill = require('fill-range'); const regex = pm.makeRe('foo/{01..25}/bar', { expandRange(a, b) { return `(${fill(a, b, { toRegex: true })})`; } }); console.log(regex); //=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/ console.log(regex.test('foo/00/bar')) // false console.log(regex.test('foo/01/bar')) // true console.log(regex.test('foo/10/bar')) // true console.log(regex.test('foo/22/bar')) // true console.log(regex.test('foo/25/bar')) // true console.log(regex.test('foo/26/bar')) // false ``` #### options.format **Type**: `function` **Default**: `undefined` Custom function for formatting strings before they're matched. **Example** ```js // strip leading './' from strings const format = str => str.replace(/^\.\//, ''); const isMatch = picomatch('foo/*.js', { format }); console.log(isMatch('./foo/bar.js')); //=> true ``` #### options.onMatch ```js const onMatch = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onMatch }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ``` #### options.onIgnore ```js const onIgnore = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onIgnore, ignore: 'f*' }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ``` #### options.onResult ```js const onResult = ({ glob, regex, input, output }) => { console.log({ glob, regex, input, output }); }; const isMatch = picomatch('*', { onResult, ignore: 'f*' }); isMatch('foo'); isMatch('bar'); isMatch('baz'); ```

## Globbing features * [Basic globbing](#basic-globbing) (Wildcard matching) * [Advanced globbing](#advanced-globbing) (extglobs, posix brackets, brace matching) ### Basic globbing | **Character** | **Description** | | --- | --- | | `*` | Matches any character zero or more times, excluding path separators. Does _not match_ path separators or hidden files or directories ("dotfiles"), unless explicitly enabled by setting the `dot` option to `true`. | | `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` with the `windows` option) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. | | `?` | Matches any character excluding path separators one time. Does _not match_ path separators or leading dots. | | `[abc]` | Matches any characters inside the brackets. For example, `[abc]` would match the characters `a`, `b` or `c`, and nothing else. | #### Matching behavior vs. Bash Picomatch's matching features and expected results in unit tests are based on Bash's unit tests and the Bash 4.3 specification, with the following exceptions: * Bash will match `foo/bar/baz` with `*`. Picomatch only matches nested directories with `**`. * Bash greedily matches with negated extglobs. For example, Bash 4.3 says that `!(foo)*` should match `foo` and `foobar`, since the trailing `*` bracktracks to match the preceding pattern. This is very memory-inefficient, and IMHO, also incorrect. Picomatch would return `false` for both `foo` and `foobar`.
### Advanced globbing * [extglobs](#extglobs) * [POSIX brackets](#posix-brackets) * [Braces](#brace-expansion) #### Extglobs | **Pattern** | **Description** | | --- | --- | | `@(pattern)` | Match _only one_ consecutive occurrence of `pattern` | | `*(pattern)` | Match _zero or more_ consecutive occurrences of `pattern` | | `+(pattern)` | Match _one or more_ consecutive occurrences of `pattern` | | `?(pattern)` | Match _zero or **one**_ consecutive occurrences of `pattern` | | `!(pattern)` | Match _anything but_ `pattern` | **Examples** ```js const pm = require('picomatch'); // *(pattern) matches ZERO or more of "pattern" console.log(pm.isMatch('a', 'a*(z)')); // true console.log(pm.isMatch('az', 'a*(z)')); // true console.log(pm.isMatch('azzz', 'a*(z)')); // true // +(pattern) matches ONE or more of "pattern" console.log(pm.isMatch('a', 'a+(z)')); // false console.log(pm.isMatch('az', 'a+(z)')); // true console.log(pm.isMatch('azzz', 'a+(z)')); // true // supports multiple extglobs console.log(pm.isMatch('foo.bar', '!(foo).!(bar)')); // false // supports nested extglobs console.log(pm.isMatch('foo.bar', '!(!(foo)).!(!(bar))')); // true // risky quantified extglobs are treated literally by default console.log(pm.makeRe('+(a|aa)')); //=> /^(?:\+\(a\|aa\))$/ // increase the limit to allow a small amount of nested quantified extglobs console.log(pm.isMatch('aaa', '+(+(a))', { maxExtglobRecursion: 1 })); // true ``` #### POSIX brackets POSIX classes are disabled by default. Enable this feature by setting the `posix` option to true. **Enable POSIX bracket support** ```js console.log(pm.makeRe('[[:word:]]+', { posix: true })); //=> /^(?:(?=.)[A-Za-z0-9_]+\/?)$/ ``` **Supported POSIX classes** The following named POSIX bracket expressions are supported: * `[:alnum:]` - Alphanumeric characters, equ `[a-zA-Z0-9]` * `[:alpha:]` - Alphabetical characters, equivalent to `[a-zA-Z]`. * `[:ascii:]` - ASCII characters, equivalent to `[\\x00-\\x7F]`. * `[:blank:]` - Space and tab characters, equivalent to `[ \\t]`. * `[:cntrl:]` - Control characters, equivalent to `[\\x00-\\x1F\\x7F]`. * `[:digit:]` - Numerical digits, equivalent to `[0-9]`. * `[:graph:]` - Graph characters, equivalent to `[\\x21-\\x7E]`. * `[:lower:]` - Lowercase letters, equivalent to `[a-z]`. * `[:print:]` - Print characters, equivalent to `[\\x20-\\x7E ]`. * `[:punct:]` - Punctuation and symbols, equivalent to `[\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~]`. * `[:space:]` - Extended space characters, equivalent to `[ \\t\\r\\n\\v\\f]`. * `[:upper:]` - Uppercase letters, equivalent to `[A-Z]`. * `[:word:]` - Word characters (letters, numbers and underscores), equivalent to `[A-Za-z0-9_]`. * `[:xdigit:]` - Hexadecimal digits, equivalent to `[A-Fa-f0-9]`. See the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) for more information. ### Braces Picomatch only does [brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) of comma-delimited lists (e.g. `a/{b,c}/d`). For advanced matching with braces, use [micromatch](https://github.com/micromatch/micromatch), which supports advanced syntax such as ranges (e.g. `{01..03}`) and increments (e.g. `{2..10..2}`). ### Matching special characters as literals If you wish to match the following special characters in a filepath, and you want to use these characters in your glob pattern, they must be escaped with backslashes or quotes: **Special Characters** Some characters that are used for matching in regular expressions are also regarded as valid file path characters on some platforms. To match any of the following characters as literals: `$^*+?()[] Examples: ```js console.log(pm.makeRe('foo/bar \\(1\\)')); console.log(pm.makeRe('foo/bar \\(1\\)')); ```

## Library Comparisons The following table shows which features are supported by [minimatch](https://github.com/isaacs/minimatch), [micromatch](https://github.com/micromatch/micromatch), [picomatch](https://github.com/micromatch/picomatch), [nanomatch](https://github.com/micromatch/nanomatch), [extglob](https://github.com/micromatch/extglob), [braces](https://github.com/micromatch/braces), and [expand-brackets](https://github.com/micromatch/expand-brackets). | **Feature** | `minimatch` | `micromatch` | `picomatch` | `nanomatch` | `extglob` | `braces` | `expand-brackets` | | --- | --- | --- | --- | --- | --- | --- | --- | | Wildcard matching (`*?+`) | ✔ | ✔ | ✔ | ✔ | - | - | - | | Advancing globbing | ✔ | ✔ | ✔ | - | - | - | - | | Brace _matching_ | ✔ | ✔ | ✔ | - | - | ✔ | - | | Brace _expansion_ | ✔ | ✔ | - | - | - | ✔ | - | | Extglobs | partial | ✔ | ✔ | - | ✔ | - | - | | Posix brackets | - | ✔ | ✔ | - | - | - | ✔ | | Regular expression syntax | - | ✔ | ✔ | ✔ | ✔ | - | ✔ | | File system operations | - | - | - | - | - | - | - |

## Benchmarks Performance comparison of picomatch and minimatch. ``` # .makeRe star (*) picomatch x 3,251,247 ops/sec ±0.25% (95 runs sampled) minimatch x 497,224 ops/sec ±0.11% (100 runs sampled) # .makeRe star; dot=true (*) picomatch x 2,624,035 ops/sec ±0.16% (98 runs sampled) minimatch x 446,244 ops/sec ±0.63% (99 runs sampled) # .makeRe globstar (**) picomatch x 2,524,465 ops/sec ±0.13% (99 runs sampled) minimatch x 1,396,257 ops/sec ±0.58% (96 runs sampled) # .makeRe globstars (**/**/**) picomatch x 2,545,674 ops/sec ±0.10% (99 runs sampled) minimatch x 1,196,835 ops/sec ±0.63% (98 runs sampled) # .makeRe with leading star (*.txt) picomatch x 2,537,708 ops/sec ±0.11% (100 runs sampled) minimatch x 345,284 ops/sec ±0.64% (96 runs sampled) # .makeRe - basic braces ({a,b,c}*.txt) picomatch x 505,430 ops/sec ±1.04% (94 runs sampled) minimatch x 107,991 ops/sec ±0.54% (99 runs sampled) # .makeRe - short ranges ({a..z}*.txt) picomatch x 371,179 ops/sec ±2.91% (77 runs sampled) minimatch x 14,104 ops/sec ±0.61% (99 runs sampled) # .makeRe - medium ranges ({1..100000}*.txt) picomatch x 384,958 ops/sec ±1.70% (82 runs sampled) minimatch x 2.55 ops/sec ±3.22% (11 runs sampled) # .makeRe - long ranges ({1..10000000}*.txt) picomatch x 382,552 ops/sec ±1.52% (71 runs sampled) minimatch x 0.83 ops/sec ±5.67% (7 runs sampled)) ```

## Philosophies The goal of this library is to be blazing fast, without compromising on accuracy. **Accuracy** The number one of goal of this library is accuracy. However, it's not unusual for different glob implementations to have different rules for matching behavior, even with simple wildcard matching. It gets increasingly more complicated when combinations of different features are combined, like when extglobs are combined with globstars, braces, slashes, and so on: `!(**/{a,b,*/c})`. Thus, given that there is no canonical glob specification to use as a single source of truth when differences of opinion arise regarding behavior, sometimes we have to implement our best judgement and rely on feedback from users to make improvements. **Performance** Although this library performs well in benchmarks, and in most cases it's faster than other popular libraries we benchmarked against, we will always choose accuracy over performance. It's not helpful to anyone if our library is faster at returning the wrong answer.

## About
Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.
Running Tests Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: ```sh npm install && npm test ```
Building docs _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ To generate the readme, run the following command: ```sh npm install -g verbose/verb#dev verb-generate-readme && verb ```
### Author **Jon Schlinkert** * [GitHub Profile](https://github.com/jonschlinkert) * [Twitter Profile](https://twitter.com/jonschlinkert) * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) ### License Copyright © 2017-present, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT License](LICENSE). --- END ORIGINAL BYTES --- ================================================================ postcss@8.5.32 Declared package license: MIT Published archive: https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz Locked integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5be1f3465bba68a626777f984878814aaf35e7ef8e9fd314d469bcf887050fb8; bytes: 1095 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright 2013 Andrey Sitnik 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. --- END ORIGINAL BYTES --- ================================================================ postcss-value-parser@4.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz Locked integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3687447039151857a6ba378db062172c7f33d4aa70a615c87a43a9c50e990485; bytes: 1074 --- BEGIN ORIGINAL BYTES --- Copyright (c) Bogdan Chadkin 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 7b183e14c4853ed481ef03b5b4c924a7fbe70635ff2e2decd3cea5329eb9b2d6; bytes: 7683 --- BEGIN ORIGINAL BYTES --- # postcss-value-parser [![Travis CI](https://travis-ci.org/TrySound/postcss-value-parser.svg)](https://travis-ci.org/TrySound/postcss-value-parser) Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API. ## Usage ```js var valueParser = require('postcss-value-parser'); var cssBackgroundValue = 'url(foo.png) no-repeat 40px 73%'; var parsedValue = valueParser(cssBackgroundValue); // parsedValue exposes an API described below, // e.g. parsedValue.walk(..), parsedValue.toString(), etc. ``` For example, parsing the value `rgba(233, 45, 66, .5)` will return the following: ```js { nodes: [ { type: 'function', value: 'rgba', before: '', after: '', nodes: [ { type: 'word', value: '233' }, { type: 'div', value: ',', before: '', after: ' ' }, { type: 'word', value: '45' }, { type: 'div', value: ',', before: '', after: ' ' }, { type: 'word', value: '66' }, { type: 'div', value: ',', before: ' ', after: '' }, { type: 'word', value: '.5' } ] } ] } ``` If you wanted to convert each `rgba()` value in `sourceCSS` to a hex value, you could do so like this: ```js var valueParser = require('postcss-value-parser'); var parsed = valueParser(sourceCSS); // walk() will visit all the of the nodes in the tree, // invoking the callback for each. parsed.walk(function (node) { // Since we only want to transform rgba() values, // we can ignore anything else. if (node.type !== 'function' && node.value !== 'rgba') return; // We can make an array of the rgba() arguments to feed to a // convertToHex() function var color = node.nodes.filter(function (node) { return node.type === 'word'; }).map(function (node) { return Number(node.value); }); // [233, 45, 66, .5] // Now we will transform the existing rgba() function node // into a word node with the hex value node.type = 'word'; node.value = convertToHex(color); }) parsed.toString(); // #E92D42 ``` ## Nodes Each node is an object with these common properties: - **type**: The type of node (`word`, `string`, `div`, `space`, `comment`, or `function`). Each type is documented below. - **value**: Each node has a `value` property; but what exactly `value` means is specific to the node type. Details are documented for each type below. - **sourceIndex**: The starting index of the node within the original source string. For example, given the source string `10px 20px`, the `word` node whose value is `20px` will have a `sourceIndex` of `5`. ### word The catch-all node type that includes keywords (e.g. `no-repeat`), quantities (e.g. `20px`, `75%`, `1.5`), and hex colors (e.g. `#e6e6e6`). Node-specific properties: - **value**: The "word" itself. ### string A quoted string value, e.g. `"something"` in `content: "something";`. Node-specific properties: - **value**: The text content of the string. - **quote**: The quotation mark surrounding the string, either `"` or `'`. - **unclosed**: `true` if the string was not closed properly. e.g. `"unclosed string `. ### div A divider, for example - `,` in `animation-duration: 1s, 2s, 3s` - `/` in `border-radius: 10px / 23px` - `:` in `(min-width: 700px)` Node-specific properties: - **value**: The divider character. Either `,`, `/`, or `:` (see examples above). - **before**: Whitespace before the divider. - **after**: Whitespace after the divider. ### space Whitespace used as a separator, e.g. ` ` occurring twice in `border: 1px solid black;`. Node-specific properties: - **value**: The whitespace itself. ### comment A CSS comment starts with `/*` and ends with `*/` Node-specific properties: - **value**: The comment value without `/*` and `*/` - **unclosed**: `true` if the comment was not closed properly. e.g. `/* comment without an end `. ### function A CSS function, e.g. `rgb(0,0,0)` or `url(foo.bar)`. Function nodes have nodes nested within them: the function arguments. Additional properties: - **value**: The name of the function, e.g. `rgb` in `rgb(0,0,0)`. - **before**: Whitespace after the opening parenthesis and before the first argument, e.g. ` ` in `rgb( 0,0,0)`. - **after**: Whitespace before the closing parenthesis and after the last argument, e.g. ` ` in `rgb(0,0,0 )`. - **nodes**: More nodes representing the arguments to the function. - **unclosed**: `true` if the parentheses was not closed properly. e.g. `( unclosed-function `. Media features surrounded by parentheses are considered functions with an empty value. For example, `(min-width: 700px)` parses to these nodes: ```js [ { type: 'function', value: '', before: '', after: '', nodes: [ { type: 'word', value: 'min-width' }, { type: 'div', value: ':', before: '', after: ' ' }, { type: 'word', value: '700px' } ] } ] ``` `url()` functions can be parsed a little bit differently depending on whether the first character in the argument is a quotation mark. `url( /gfx/img/bg.jpg )` parses to: ```js { type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ { type: 'word', sourceIndex: 5, value: '/gfx/img/bg.jpg' } ] } ``` `url( "/gfx/img/bg.jpg" )`, on the other hand, parses to: ```js { type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ type: 'string', sourceIndex: 5, quote: '"', value: '/gfx/img/bg.jpg' }, ] } ``` ### unicode-range The unicode-range CSS descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for use on the current page (`unicode-range: U+0025-00FF`). Node-specific properties: - **value**: The "unicode-range" itself. ## API ``` var valueParser = require('postcss-value-parser'); ``` ### valueParser.unit(quantity) Parses `quantity`, distinguishing the number from the unit. Returns an object like the following: ```js // Given 2rem { number: '2', unit: 'rem' } ``` If the `quantity` argument cannot be parsed as a number, returns `false`. *This function does not parse complete values*: you cannot pass it `1px solid black` and expect `px` as the unit. Instead, you should pass it single quantities only. Parse `1px solid black`, then pass it the stringified `1px` node (a `word` node) to parse the number and unit. ### valueParser.stringify(nodes[, custom]) Stringifies a node or array of nodes. The `custom` function is called for each `node`; return a string to override the default behaviour. ### valueParser.walk(nodes, callback[, bubble]) Walks each provided node, recursively walking all descendent nodes within functions. Returning `false` in the `callback` will prevent traversal of descendent nodes (within functions). You can use this feature to for shallow iteration, walking over only the *immediate* children. *Note: This only applies if `bubble` is `false` (which is the default).* By default, the tree is walked from the outermost node inwards. To reverse the direction, pass `true` for the `bubble` argument. The `callback` is invoked with three arguments: `callback(node, index, nodes)`. - `node`: The current node. - `index`: The index of the current node. - `nodes`: The complete nodes array passed to `walk()`. Returns the `valueParser` instance. ### var parsed = valueParser(value) Returns the parsed node tree. ### parsed.nodes The array of nodes. ### parsed.toString() Stringifies the node tree. ### parsed.walk(callback[, bubble]) Walks each node inside `parsed.nodes`. See the documentation for `valueParser.walk()` above. # License MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru) --- END ORIGINAL BYTES --- ================================================================ prismjs@1.30.0 Declared package license: MIT Published archive: https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz Locked integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 2b947f0901a7ffcf08a89957da9783c0e9c6e72cb6ce8e959f501ab5409e4d2b; bytes: 1066 --- BEGIN ORIGINAL BYTES --- MIT LICENSE Copyright (c) 2012 Lea Verou 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. --- END ORIGINAL BYTES --- ================================================================ process-ancestry@0.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/process-ancestry/-/process-ancestry-0.1.0.tgz Locked integrity: sha512-tGqJW/UnclpYASFcM6Xh8D8l/BMtaQ9+CSG0vlJSJTcdMM4lDRv4c6H0Pdcsfted+bVczdYSfk2fdukg2gQkZg== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. --- Original licensing-readme: package/README.md SHA-256: 39c3a43f0b4282f2f36cb53096b5e58a93c5d48468d4db6a5331cb97d0669871; bytes: 2112 --- BEGIN ORIGINAL BYTES --- # process-ancestry A cross-platform Node.js library for retrieving process ancestry information. Get the parent process chain for any process ID on Unix/Linux, macOS, and Windows systems. ## Features - **Cross-platform**: Works on Unix/Linux/macOS (using `ps`) and Windows (using `wmic`) - **Robust**: Includes timeout handling, cycle detection, and comprehensive error handling - **TypeScript**: Full TypeScript support with type definitions - **Zero dependencies**: No external dependencies beyond Node.js built-ins - **ESM**: Native ES module support ## Installation ```bash npm install process-ancestry ``` ## Usage ### Basic Usage ```javascript import { getProcessAncestry } from "process-ancestry"; // Get ancestry for current process const ancestry = getProcessAncestry(); console.log(ancestry); // Get ancestry for specific PID const ancestry = getProcessAncestry(1234); console.log(ancestry); ``` ### Example Output ```javascript [ { pid: 1234, ppid: 5678, command: "node script.js", }, { pid: 5678, ppid: 1, command: "bash", }, ]; ``` ## API Reference ### `getProcessAncestry(pid?: number): ProcessInfo[]` Retrieves the process ancestry chain for a given process ID. #### Parameters - `pid` (optional): Process ID to get ancestry for. Defaults to `process.pid` (current process). #### Returns An array of `ProcessInfo` objects representing the process ancestry chain, ordered from the given process up to the root. #### Throws - `Error`: If `pid` is not a positive integer ### `ProcessInfo` ```typescript interface ProcessInfo { /** Process ID */ pid: number; /** Parent Process ID */ ppid: number; /** Command line or executable name */ command?: string; } ``` ## Platform Support - **Unix/Linux/macOS**: Uses `ps -p -o pid=,ppid=,command=` - **Windows**: Uses `wmic process where (ProcessId=) get ProcessId,ParentProcessId,CommandLine /format:csv` ## Development ```bash # Install dependencies pnpm install # Run tests pnpm test # Build pnpm build # Run checks pnpm check ``` ## License MIT ## Author Matt Kane --- END ORIGINAL BYTES --- ================================================================ property-information@7.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz Locked integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5d0698266086f217bb11ea0499d33453e401fe479fb9126ad04e625e63d3557b; bytes: 1101 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: ae5a696545d4dd254bd9ef5bcd023eda4c06839607dbe9d3657f2f39b09a64b8; bytes: 69906 --- BEGIN ORIGINAL BYTES --- # property-information [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] Info on the properties and attributes of the web platform (HTML, SVG, ARIA, XML, XMLNS, XLink). ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`Info`](#info) * [`Schema`](#schema) * [`Space`](#space) * [`find(schema, name)`](#findschema-name) * [`hastToReact`](#hasttoreact) * [`html`](#html) * [`normalize(name)`](#normalizename) * [`svg`](#svg) * [Compatibility](#compatibility) * [Support](#support) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package contains lots of info on all the properties and attributes found on the web platform. It includes data on HTML, SVG, ARIA, XML, XMLNS, and XLink. The names of the properties follow [hast][github-hast-property-name]’s sensible naming scheme. It includes info on what data types attributes hold, such as whether they’re booleans or contain lists of space separated numbers. ## When should I use this? You can use this package if you’re working with hast, which is an AST for HTML, or have goals related to ASTs, such as figuring out which properties or attributes are valid, or what data types they hold. ## Install This package is [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npmjs-install]: ```sh npm install property-information ``` In Deno with [`esm.sh`][esmsh]: ```js import * as propertyInformation from 'https://esm.sh/property-information@7' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {find, html, svg} from 'property-information' console.log(find(html, 'className')) // Or: find(html, 'class') console.log(find(svg, 'horiz-adv-x')) // Or: find(svg, 'horizAdvX') console.log(find(svg, 'xlink:arcrole')) // Or: find(svg, 'xLinkArcRole') console.log(find(html, 'xmlLang')) // Or: find(html, 'xml:lang') console.log(find(html, 'ariaValueNow')) // Or: find(html, 'aria-valuenow') ``` Yields: ```js {attribute: 'class', property: 'className', spaceSeparated: true, space: 'html'} {attribute: 'horiz-adv-x', number: true, property: 'horizAdvX', space: 'svg'} {attribute: 'xlink:arcrole', property: 'xLinkArcRole', space: 'xlink'} {attribute: 'xml:lang', property: 'xmlLang', space: 'xml'} {attribute: 'aria-valuenow', number: true, property: 'ariaValueNow'} ``` ## API This package exports the identifiers [`find`][api-find], [`hastToReact`][api-hast-to-react], [`html`][api-html], [`normalize`][api-normalize], and [`svg`][api-svg]. There is no default export. It exports the [TypeScript][] types [`Info`][api-info], [`Schema`][api-schema], and [`Space`][api-space]. ### `Info` Info on a property (TypeScript type). ###### Fields * `attribute` (`string`) — attribute name for the property that could be used in markup (such as `'aria-describedby'`, `'allowfullscreen'`, `'xml:lang'`, `'for'`, or `'charoff'`) * `booleanish` (`boolean`) — the property is *like* a `boolean` (such as `draggable`); these properties have both an on and off state when defined, *and* another state when not defined * `boolean` (`boolean`) — the property is a `boolean` (such as `hidden`); these properties have an on state when defined and an off state when not defined * `commaOrSpaceSeparated` (`boolean`) — the property is a list separated by spaces or commas (such as `strokeDashArray`) * `commaSeparated` (`boolean`) — the property is a list separated by commas (such as `coords`) * `defined` (`boolean`) — the property is [defined by a space][section-support]; this is the case for values in HTML (including [data][mozilla-dataset] and ARIA), SVG, XML, XMLNS, and XLink; not defined properties can only be found through `find` * `mustUseProperty` (`boolean`) — when working with the DOM, this property has to be changed as a field on the element, instead of through `setAttribute` (this is true only for `'checked'`, `'multiple'`, `'muted'`, and `'selected'`) * `number` (`boolean`) — the property is a `number` (such as `height`) * `overloadedBoolean` (`boolean`) — the property is *like* a `boolean` (such as `download`); these properties have an on state *and* more states when defined and an off state when not defined * `property` (`string`) — JavaScript-style camel-cased name; based on the DOM but sometimes different (such as `'ariaDescribedBy'`, `'allowFullScreen'`, `'xmlLang'`, `'htmlFor'`, `'charOff'`) * `spaceSeparated` (`boolean`) — the property is a list separated by spaces (such as `className`) * `space` ([`Space`][api-space] or `undefined`) — [space][github-web-namespaces] of the property ### `Schema` Schema for a primary space (TypeScript type). ###### Fields * `normal` (`Record`) — object mapping normalized attributes and properties to properly cased properties * `property` ([`Record`][api-info]) — object mapping properties to info * `space` (`'html'` or `'svg'`) — primary space of the schema ### `Space` Space of a property (TypeScript type). ###### Type ```ts type Space = 'html' | 'svg' | 'xlink' | 'xmlns' | 'xml' ``` ### `find(schema, name)` Look up info on a property. In most cases the given `schema` contains info on the property. All standard, most legacy, and some non-standard properties are supported. For these cases, the returned [`Info`][api-info] has hints about the value of the property. `name` can also be a [valid data attribute or property][mozilla-dataset], in which case an [`Info`][api-info] object with the correctly cased `attribute` and `property` is returned. `name` can be an unknown attribute, in which case an [`Info`][api-info] object with `attribute` and `property` set to the given name is returned. It is not recommended to provide unsupported legacy or recently specced properties. ###### Parameters * `schema` ([`Schema`][api-schema]) — schema; either the `html` or `svg` export * `name` (`string`) — an attribute-like or property-like name; it will be passed through [`normalize`][api-normalize] to hopefully find the correct info ###### Returns [`Info`][api-info]. ###### Example Aside from the aforementioned example, which shows known HTML, SVG, XML, XLink, and ARIA support, data properties and attributes are also supported: ```js console.log(find(html, 'data-date-of-birth')) // Or: find(html, 'dataDateOfBirth') // => {attribute: 'data-date-of-birth', property: 'dataDateOfBirth'} ``` Unknown values are passed through untouched: ```js console.log(find(html, 'un-Known')) // => {attribute: 'un-Known', property: 'un-Known'} ``` ### `hastToReact` Special cases for React (`Record`). [`hast`][github-hast] is close to [`React`][github-react] but differs in a couple of cases. To get a React property from a hast property, check if it is in `hastToReact`. If it is, use the corresponding value. ### `html` [`Schema`][api-schema] for HTML, with info on properties from HTML itself and related embedded spaces (ARIA, XML, XMLNS, XLink). ###### Example ```js console.log(html.property.htmlFor) // => {attribute: 'for', property: 'htmlFor', spaceSeparated: true, space: 'html'} console.log(html.property.unknown) // => undefined ``` ### `normalize(name)` Get the cleaned case insensitive form of an attribute or property. ###### Parameters * `name` (`string`) — an attribute-like or property-like name ###### Returns Value (`string`) that can be used to look up the properly cased property on a [`Schema`][api-schema]. ###### Example ```js html.normal[normalize('for')] // => 'htmlFor' svg.normal[normalize('VIEWBOX')] // => 'viewBox' html.normal[normalize('unknown')] // => undefined html.normal[normalize('accept-charset')] // => 'acceptCharset' ``` ### `svg` [`Schema`][api-schema] for SVG, with info on properties from SVG itself and related embedded spaces (ARIA, XML, XMLNS, XLink). ###### Example ```js console.log(svg.property.viewBox) // => {attribute: 'viewBox', property: 'viewBox', space: 'svg'} console.log(svg.property.unknown) // => undefined ``` ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 16+. It also works in Deno and modern browsers. ## Support | Property | Attribute | Space | | --------------------------------- | --------------------------------- | ------------- | | `aLink` | `alink` | `html` | | `abbr` | `abbr` | `html` | | `about` | `about` | `svg` | | `accentHeight` | `accent-height` | `svg` | | `accept` | `accept` | `html` | | `acceptCharset` | `accept-charset` | `html` | | `accessKey` | `accesskey` | `html` | | `accumulate` | `accumulate` | `svg` | | `action` | `action` | `html` | | `additive` | `additive` | `svg` | | `align` | `align` | `html` | | `alignmentBaseline` | `alignment-baseline` | `svg` | | `allow` | `allow` | `html` | | `allowFullScreen` | `allowfullscreen` | `html` | | `allowPaymentRequest` | `allowpaymentrequest` | `html` | | `allowTransparency` | `allowtransparency` | `html` | | `allowUserMedia` | `allowusermedia` | `html` | | `alpha` | `alpha` | `html` | | `alphabetic` | `alphabetic` | `svg` | | `alt` | `alt` | `html` | | `amplitude` | `amplitude` | `svg` | | `arabicForm` | `arabic-form` | `svg` | | `archive` | `archive` | `html` | | `ariaActiveDescendant` | `aria-activedescendant` | | | `ariaAtomic` | `aria-atomic` | | | `ariaAutoComplete` | `aria-autocomplete` | | | `ariaBusy` | `aria-busy` | | | `ariaChecked` | `aria-checked` | | | `ariaColCount` | `aria-colcount` | | | `ariaColIndex` | `aria-colindex` | | | `ariaColSpan` | `aria-colspan` | | | `ariaControls` | `aria-controls` | | | `ariaCurrent` | `aria-current` | | | `ariaDescribedBy` | `aria-describedby` | | | `ariaDetails` | `aria-details` | | | `ariaDisabled` | `aria-disabled` | | | `ariaDropEffect` | `aria-dropeffect` | | | `ariaErrorMessage` | `aria-errormessage` | | | `ariaExpanded` | `aria-expanded` | | | `ariaFlowTo` | `aria-flowto` | | | `ariaGrabbed` | `aria-grabbed` | | | `ariaHasPopup` | `aria-haspopup` | | | `ariaHidden` | `aria-hidden` | | | `ariaInvalid` | `aria-invalid` | | | `ariaKeyShortcuts` | `aria-keyshortcuts` | | | `ariaLabel` | `aria-label` | | | `ariaLabelledBy` | `aria-labelledby` | | | `ariaLevel` | `aria-level` | | | `ariaLive` | `aria-live` | | | `ariaModal` | `aria-modal` | | | `ariaMultiLine` | `aria-multiline` | | | `ariaMultiSelectable` | `aria-multiselectable` | | | `ariaOrientation` | `aria-orientation` | | | `ariaOwns` | `aria-owns` | | | `ariaPlaceholder` | `aria-placeholder` | | | `ariaPosInSet` | `aria-posinset` | | | `ariaPressed` | `aria-pressed` | | | `ariaReadOnly` | `aria-readonly` | | | `ariaRelevant` | `aria-relevant` | | | `ariaRequired` | `aria-required` | | | `ariaRoleDescription` | `aria-roledescription` | | | `ariaRowCount` | `aria-rowcount` | | | `ariaRowIndex` | `aria-rowindex` | | | `ariaRowSpan` | `aria-rowspan` | | | `ariaSelected` | `aria-selected` | | | `ariaSetSize` | `aria-setsize` | | | `ariaSort` | `aria-sort` | | | `ariaValueMax` | `aria-valuemax` | | | `ariaValueMin` | `aria-valuemin` | | | `ariaValueNow` | `aria-valuenow` | | | `ariaValueText` | `aria-valuetext` | | | `as` | `as` | `html` | | `ascent` | `ascent` | `svg` | | `async` | `async` | `html` | | `attributeName` | `attributeName` | `svg` | | `attributeType` | `attributeType` | `svg` | | `autoCapitalize` | `autocapitalize` | `html` | | `autoComplete` | `autocomplete` | `html` | | `autoCorrect` | `autocorrect` | `html` | | `autoFocus` | `autofocus` | `html` | | `autoPlay` | `autoplay` | `html` | | `autoSave` | `autosave` | `html` | | `axis` | `axis` | `html` | | `azimuth` | `azimuth` | `svg` | | `background` | `background` | `html` | | `bandwidth` | `bandwidth` | `svg` | | `baseFrequency` | `baseFrequency` | `svg` | | `baseProfile` | `baseProfile` | `svg` | | `baselineShift` | `baseline-shift` | `svg` | | `bbox` | `bbox` | `svg` | | `begin` | `begin` | `svg` | | `bgColor` | `bgcolor` | `html` | | `bias` | `bias` | `svg` | | `blocking` | `blocking` | `html` | | `border` | `border` | `html` | | `borderColor` | `bordercolor` | `html` | | `bottomMargin` | `bottommargin` | `html` | | `by` | `by` | `svg` | | `calcMode` | `calcMode` | `svg` | | `capHeight` | `cap-height` | `svg` | | `capture` | `capture` | `html` | | `cellPadding` | `cellpadding` | `html` | | `cellSpacing` | `cellspacing` | `html` | | `char` | `char` | `html` | | `charOff` | `charoff` | `html` | | `charSet` | `charset` | `html` | | `checked` | `checked` | `html` | | `cite` | `cite` | `html` | | `classId` | `classid` | `html` | | `className` | `class` | `svg`, `html` | | `clear` | `clear` | `html` | | `clip` | `clip` | `svg` | | `clipPath` | `clip-path` | `svg` | | `clipPathUnits` | `clipPathUnits` | `svg` | | `clipRule` | `clip-rule` | `svg` | | `closedBy` | `closedby` | `html` | | `code` | `code` | `html` | | `codeBase` | `codebase` | `html` | | `codeType` | `codetype` | `html` | | `colSpan` | `colspan` | `html` | | `color` | `color` | `svg`, `html` | | `colorInterpolation` | `color-interpolation` | `svg` | | `colorInterpolationFilters` | `color-interpolation-filters` | `svg` | | `colorProfile` | `color-profile` | `svg` | | `colorRendering` | `color-rendering` | `svg` | | `colorSpace` | `colorspace` | `html` | | `cols` | `cols` | `html` | | `command` | `command` | `html` | | `commandFor` | `commandfor` | `html` | | `compact` | `compact` | `html` | | `content` | `content` | `svg`, `html` | | `contentEditable` | `contenteditable` | `html` | | `contentScriptType` | `contentScriptType` | `svg` | | `contentStyleType` | `contentStyleType` | `svg` | | `controls` | `controls` | `html` | | `controlsList` | `controlslist` | `html` | | `coords` | `coords` | `html` | | `credentialless` | `credentialless` | `html` | | `crossOrigin` | `crossorigin` | `svg`, `html` | | `cursor` | `cursor` | `svg` | | `cx` | `cx` | `svg` | | `cy` | `cy` | `svg` | | `d` | `d` | `svg` | | `data` | `data` | `html` | | `dataType` | `datatype` | `svg` | | `dateTime` | `datetime` | `html` | | `declare` | `declare` | `html` | | `decoding` | `decoding` | `html` | | `default` | `default` | `html` | | `defaultAction` | `defaultAction` | `svg` | | `defer` | `defer` | `html` | | `descent` | `descent` | `svg` | | `diffuseConstant` | `diffuseConstant` | `svg` | | `dir` | `dir` | `html` | | `dirName` | `dirname` | `html` | | `direction` | `direction` | `svg` | | `disablePictureInPicture` | `disablepictureinpicture` | `html` | | `disableRemotePlayback` | `disableremoteplayback` | `html` | | `disabled` | `disabled` | `html` | | `display` | `display` | `svg` | | `divisor` | `divisor` | `svg` | | `dominantBaseline` | `dominant-baseline` | `svg` | | `download` | `download` | `svg`, `html` | | `draggable` | `draggable` | `html` | | `dur` | `dur` | `svg` | | `dx` | `dx` | `svg` | | `dy` | `dy` | `svg` | | `edgeMode` | `edgeMode` | `svg` | | `editable` | `editable` | `svg` | | `elevation` | `elevation` | `svg` | | `enableBackground` | `enable-background` | `svg` | | `encType` | `enctype` | `html` | | `end` | `end` | `svg` | | `enterKeyHint` | `enterkeyhint` | `html` | | `event` | `event` | `svg`, `html` | | `exponent` | `exponent` | `svg` | | `exportParts` | `exportparts` | `html` | | `externalResourcesRequired` | `externalResourcesRequired` | `svg` | | `face` | `face` | `html` | | `fetchPriority` | `fetchpriority` | `html` | | `fill` | `fill` | `svg` | | `fillOpacity` | `fill-opacity` | `svg` | | `fillRule` | `fill-rule` | `svg` | | `filter` | `filter` | `svg` | | `filterRes` | `filterRes` | `svg` | | `filterUnits` | `filterUnits` | `svg` | | `floodColor` | `flood-color` | `svg` | | `floodOpacity` | `flood-opacity` | `svg` | | `focusHighlight` | `focusHighlight` | `svg` | | `focusable` | `focusable` | `svg` | | `fontFamily` | `font-family` | `svg` | | `fontSize` | `font-size` | `svg` | | `fontSizeAdjust` | `font-size-adjust` | `svg` | | `fontStretch` | `font-stretch` | `svg` | | `fontStyle` | `font-style` | `svg` | | `fontVariant` | `font-variant` | `svg` | | `fontWeight` | `font-weight` | `svg` | | `form` | `form` | `html` | | `formAction` | `formaction` | `html` | | `formEncType` | `formenctype` | `html` | | `formMethod` | `formmethod` | `html` | | `formNoValidate` | `formnovalidate` | `html` | | `formTarget` | `formtarget` | `html` | | `format` | `format` | `svg` | | `fr` | `fr` | `svg` | | `frame` | `frame` | `html` | | `frameBorder` | `frameborder` | `html` | | `from` | `from` | `svg` | | `fx` | `fx` | `svg` | | `fy` | `fy` | `svg` | | `g1` | `g1` | `svg` | | `g2` | `g2` | `svg` | | `glyphName` | `glyph-name` | `svg` | | `glyphOrientationHorizontal` | `glyph-orientation-horizontal` | `svg` | | `glyphOrientationVertical` | `glyph-orientation-vertical` | `svg` | | `glyphRef` | `glyphRef` | `svg` | | `gradientTransform` | `gradientTransform` | `svg` | | `gradientUnits` | `gradientUnits` | `svg` | | `hSpace` | `hspace` | `html` | | `handler` | `handler` | `svg` | | `hanging` | `hanging` | `svg` | | `hatchContentUnits` | `hatchContentUnits` | `svg` | | `hatchUnits` | `hatchUnits` | `svg` | | `headers` | `headers` | `html` | | `height` | `height` | `svg`, `html` | | `hidden` | `hidden` | `html` | | `high` | `high` | `html` | | `horizAdvX` | `horiz-adv-x` | `svg` | | `horizOriginX` | `horiz-origin-x` | `svg` | | `horizOriginY` | `horiz-origin-y` | `svg` | | `href` | `href` | `svg`, `html` | | `hrefLang` | `hreflang` | `svg`, `html` | | `htmlFor` | `for` | `html` | | `httpEquiv` | `http-equiv` | `html` | | `id` | `id` | `svg`, `html` | | `ideographic` | `ideographic` | `svg` | | `imageRendering` | `image-rendering` | `svg` | | `imageSizes` | `imagesizes` | `html` | | `imageSrcSet` | `imagesrcset` | `html` | | `in` | `in` | `svg` | | `in2` | `in2` | `svg` | | `inert` | `inert` | `html` | | `initialVisibility` | `initialVisibility` | `svg` | | `inputMode` | `inputmode` | `html` | | `integrity` | `integrity` | `html` | | `intercept` | `intercept` | `svg` | | `is` | `is` | `html` | | `isMap` | `ismap` | `html` | | `itemId` | `itemid` | `html` | | `itemProp` | `itemprop` | `html` | | `itemRef` | `itemref` | `html` | | `itemScope` | `itemscope` | `html` | | `itemType` | `itemtype` | `html` | | `k` | `k` | `svg` | | `k1` | `k1` | `svg` | | `k2` | `k2` | `svg` | | `k3` | `k3` | `svg` | | `k4` | `k4` | `svg` | | `kernelMatrix` | `kernelMatrix` | `svg` | | `kernelUnitLength` | `kernelUnitLength` | `svg` | | `kerning` | `kerning` | `svg` | | `keyPoints` | `keyPoints` | `svg` | | `keySplines` | `keySplines` | `svg` | | `keyTimes` | `keyTimes` | `svg` | | `kind` | `kind` | `html` | | `label` | `label` | `html` | | `lang` | `lang` | `svg`, `html` | | `language` | `language` | `html` | | `leftMargin` | `leftmargin` | `html` | | `lengthAdjust` | `lengthAdjust` | `svg` | | `letterSpacing` | `letter-spacing` | `svg` | | `lightingColor` | `lighting-color` | `svg` | | `limitingConeAngle` | `limitingConeAngle` | `svg` | | `link` | `link` | `html` | | `list` | `list` | `html` | | `loading` | `loading` | `html` | | `local` | `local` | `svg` | | `longDesc` | `longdesc` | `html` | | `loop` | `loop` | `html` | | `low` | `low` | `html` | | `lowSrc` | `lowsrc` | `html` | | `manifest` | `manifest` | `html` | | `marginHeight` | `marginheight` | `html` | | `marginWidth` | `marginwidth` | `html` | | `markerEnd` | `marker-end` | `svg` | | `markerHeight` | `markerHeight` | `svg` | | `markerMid` | `marker-mid` | `svg` | | `markerStart` | `marker-start` | `svg` | | `markerUnits` | `markerUnits` | `svg` | | `markerWidth` | `markerWidth` | `svg` | | `mask` | `mask` | `svg` | | `maskContentUnits` | `maskContentUnits` | `svg` | | `maskType` | `mask-type` | `svg` | | `maskUnits` | `maskUnits` | `svg` | | `mathematical` | `mathematical` | `svg` | | `max` | `max` | `svg`, `html` | | `maxLength` | `maxlength` | `html` | | `media` | `media` | `svg`, `html` | | `mediaCharacterEncoding` | `mediaCharacterEncoding` | `svg` | | `mediaContentEncodings` | `mediaContentEncodings` | `svg` | | `mediaSize` | `mediaSize` | `svg` | | `mediaTime` | `mediaTime` | `svg` | | `method` | `method` | `svg`, `html` | | `min` | `min` | `svg`, `html` | | `minLength` | `minlength` | `html` | | `mode` | `mode` | `svg` | | `multiple` | `multiple` | `html` | | `muted` | `muted` | `html` | | `name` | `name` | `svg`, `html` | | `navDown` | `nav-down` | `svg` | | `navDownLeft` | `nav-down-left` | `svg` | | `navDownRight` | `nav-down-right` | `svg` | | `navLeft` | `nav-left` | `svg` | | `navNext` | `nav-next` | `svg` | | `navPrev` | `nav-prev` | `svg` | | `navRight` | `nav-right` | `svg` | | `navUp` | `nav-up` | `svg` | | `navUpLeft` | `nav-up-left` | `svg` | | `navUpRight` | `nav-up-right` | `svg` | | `noHref` | `nohref` | `html` | | `noModule` | `nomodule` | `html` | | `noResize` | `noresize` | `html` | | `noShade` | `noshade` | `html` | | `noValidate` | `novalidate` | `html` | | `noWrap` | `nowrap` | `html` | | `nonce` | `nonce` | `html` | | `numOctaves` | `numOctaves` | `svg` | | `object` | `object` | `html` | | `observer` | `observer` | `svg` | | `offset` | `offset` | `svg` | | `onAbort` | `onabort` | `svg`, `html` | | `onActivate` | `onactivate` | `svg` | | `onAfterPrint` | `onafterprint` | `svg`, `html` | | `onAuxClick` | `onauxclick` | `html` | | `onBeforeMatch` | `onbeforematch` | `html` | | `onBeforePrint` | `onbeforeprint` | `svg`, `html` | | `onBeforeToggle` | `onbeforetoggle` | `html` | | `onBeforeUnload` | `onbeforeunload` | `html` | | `onBegin` | `onbegin` | `svg` | | `onBlur` | `onblur` | `html` | | `onCanPlay` | `oncanplay` | `svg`, `html` | | `onCanPlayThrough` | `oncanplaythrough` | `svg`, `html` | | `onCancel` | `oncancel` | `svg`, `html` | | `onChange` | `onchange` | `svg`, `html` | | `onClick` | `onclick` | `svg`, `html` | | `onClose` | `onclose` | `svg`, `html` | | `onContextLost` | `oncontextlost` | `html` | | `onContextMenu` | `oncontextmenu` | `html` | | `onContextRestored` | `oncontextrestored` | `html` | | `onCopy` | `oncopy` | `svg`, `html` | | `onCueChange` | `oncuechange` | `svg`, `html` | | `onCut` | `oncut` | `svg`, `html` | | `onDblClick` | `ondblclick` | `svg`, `html` | | `onDrag` | `ondrag` | `svg`, `html` | | `onDragEnd` | `ondragend` | `svg`, `html` | | `onDragEnter` | `ondragenter` | `svg`, `html` | | `onDragExit` | `ondragexit` | `svg`, `html` | | `onDragLeave` | `ondragleave` | `svg`, `html` | | `onDragOver` | `ondragover` | `svg`, `html` | | `onDragStart` | `ondragstart` | `svg`, `html` | | `onDrop` | `ondrop` | `svg`, `html` | | `onDurationChange` | `ondurationchange` | `svg`, `html` | | `onEmptied` | `onemptied` | `svg`, `html` | | `onEnd` | `onend` | `svg` | | `onEnded` | `onended` | `svg`, `html` | | `onError` | `onerror` | `svg`, `html` | | `onFocus` | `onfocus` | `svg`, `html` | | `onFocusIn` | `onfocusin` | `svg` | | `onFocusOut` | `onfocusout` | `svg` | | `onFormData` | `onformdata` | `html` | | `onHashChange` | `onhashchange` | `svg`, `html` | | `onInput` | `oninput` | `svg`, `html` | | `onInvalid` | `oninvalid` | `svg`, `html` | | `onKeyDown` | `onkeydown` | `svg`, `html` | | `onKeyPress` | `onkeypress` | `svg`, `html` | | `onKeyUp` | `onkeyup` | `svg`, `html` | | `onLanguageChange` | `onlanguagechange` | `html` | | `onLoad` | `onload` | `svg`, `html` | | `onLoadEnd` | `onloadend` | `html` | | `onLoadStart` | `onloadstart` | `svg`, `html` | | `onLoadedData` | `onloadeddata` | `svg`, `html` | | `onLoadedMetadata` | `onloadedmetadata` | `svg`, `html` | | `onMessage` | `onmessage` | `svg`, `html` | | `onMessageError` | `onmessageerror` | `html` | | `onMouseDown` | `onmousedown` | `svg`, `html` | | `onMouseEnter` | `onmouseenter` | `svg`, `html` | | `onMouseLeave` | `onmouseleave` | `svg`, `html` | | `onMouseMove` | `onmousemove` | `svg`, `html` | | `onMouseOut` | `onmouseout` | `svg`, `html` | | `onMouseOver` | `onmouseover` | `svg`, `html` | | `onMouseUp` | `onmouseup` | `svg`, `html` | | `onMouseWheel` | `onmousewheel` | `svg` | | `onOffline` | `onoffline` | `svg`, `html` | | `onOnline` | `ononline` | `svg`, `html` | | `onPageHide` | `onpagehide` | `svg`, `html` | | `onPageShow` | `onpageshow` | `svg`, `html` | | `onPaste` | `onpaste` | `svg`, `html` | | `onPause` | `onpause` | `svg`, `html` | | `onPlay` | `onplay` | `svg`, `html` | | `onPlaying` | `onplaying` | `svg`, `html` | | `onPopState` | `onpopstate` | `svg`, `html` | | `onProgress` | `onprogress` | `svg`, `html` | | `onRateChange` | `onratechange` | `svg`, `html` | | `onRejectionHandled` | `onrejectionhandled` | `html` | | `onRepeat` | `onrepeat` | `svg` | | `onReset` | `onreset` | `svg`, `html` | | `onResize` | `onresize` | `svg`, `html` | | `onScroll` | `onscroll` | `svg`, `html` | | `onScrollEnd` | `onscrollend` | `html` | | `onSecurityPolicyViolation` | `onsecuritypolicyviolation` | `html` | | `onSeeked` | `onseeked` | `svg`, `html` | | `onSeeking` | `onseeking` | `svg`, `html` | | `onSelect` | `onselect` | `svg`, `html` | | `onShow` | `onshow` | `svg` | | `onSlotChange` | `onslotchange` | `html` | | `onStalled` | `onstalled` | `svg`, `html` | | `onStorage` | `onstorage` | `svg`, `html` | | `onSubmit` | `onsubmit` | `svg`, `html` | | `onSuspend` | `onsuspend` | `svg`, `html` | | `onTimeUpdate` | `ontimeupdate` | `svg`, `html` | | `onToggle` | `ontoggle` | `svg`, `html` | | `onUnhandledRejection` | `onunhandledrejection` | `html` | | `onUnload` | `onunload` | `svg`, `html` | | `onVolumeChange` | `onvolumechange` | `svg`, `html` | | `onWaiting` | `onwaiting` | `svg`, `html` | | `onWheel` | `onwheel` | `html` | | `onZoom` | `onzoom` | `svg` | | `opacity` | `opacity` | `svg` | | `open` | `open` | `html` | | `operator` | `operator` | `svg` | | `optimum` | `optimum` | `html` | | `order` | `order` | `svg` | | `orient` | `orient` | `svg` | | `orientation` | `orientation` | `svg` | | `origin` | `origin` | `svg` | | `overflow` | `overflow` | `svg` | | `overlay` | `overlay` | `svg` | | `overlinePosition` | `overline-position` | `svg` | | `overlineThickness` | `overline-thickness` | `svg` | | `paintOrder` | `paint-order` | `svg` | | `panose1` | `panose-1` | `svg` | | `part` | `part` | `html` | | `path` | `path` | `svg` | | `pathLength` | `pathLength` | `svg` | | `pattern` | `pattern` | `html` | | `patternContentUnits` | `patternContentUnits` | `svg` | | `patternTransform` | `patternTransform` | `svg` | | `patternUnits` | `patternUnits` | `svg` | | `phase` | `phase` | `svg` | | `ping` | `ping` | `svg`, `html` | | `pitch` | `pitch` | `svg` | | `placeholder` | `placeholder` | `html` | | `playbackOrder` | `playbackorder` | `svg` | | `playsInline` | `playsinline` | `html` | | `pointerEvents` | `pointer-events` | `svg` | | `points` | `points` | `svg` | | `pointsAtX` | `pointsAtX` | `svg` | | `pointsAtY` | `pointsAtY` | `svg` | | `pointsAtZ` | `pointsAtZ` | `svg` | | `popover` | `popover` | `html` | | `popoverTarget` | `popovertarget` | `html` | | `popoverTargetAction` | `popovertargetaction` | `html` | | `poster` | `poster` | `html` | | `prefix` | `prefix` | `html` | | `preload` | `preload` | `html` | | `preserveAlpha` | `preserveAlpha` | `svg` | | `preserveAspectRatio` | `preserveAspectRatio` | `svg` | | `primitiveUnits` | `primitiveUnits` | `svg` | | `profile` | `profile` | `html` | | `prompt` | `prompt` | `html` | | `propagate` | `propagate` | `svg` | | `property` | `property` | `svg`, `html` | | `r` | `r` | `svg` | | `radius` | `radius` | `svg` | | `readOnly` | `readonly` | `html` | | `refX` | `refX` | `svg` | | `refY` | `refY` | `svg` | | `referrerPolicy` | `referrerpolicy` | `svg`, `html` | | `rel` | `rel` | `svg`, `html` | | `renderingIntent` | `rendering-intent` | `svg` | | `repeatCount` | `repeatCount` | `svg` | | `repeatDur` | `repeatDur` | `svg` | | `required` | `required` | `html` | | `requiredExtensions` | `requiredExtensions` | `svg` | | `requiredFeatures` | `requiredFeatures` | `svg` | | `requiredFonts` | `requiredFonts` | `svg` | | `requiredFormats` | `requiredFormats` | `svg` | | `resource` | `resource` | `svg` | | `restart` | `restart` | `svg` | | `result` | `result` | `svg` | | `results` | `results` | `html` | | `rev` | `rev` | `svg`, `html` | | `reversed` | `reversed` | `html` | | `rightMargin` | `rightmargin` | `html` | | `role` | `role` | | | `rotate` | `rotate` | `svg` | | `rowSpan` | `rowspan` | `html` | | `rows` | `rows` | `html` | | `rules` | `rules` | `html` | | `rx` | `rx` | `svg` | | `ry` | `ry` | `svg` | | `sandbox` | `sandbox` | `html` | | `scale` | `scale` | `svg` | | `scheme` | `scheme` | `html` | | `scope` | `scope` | `html` | | `scoped` | `scoped` | `html` | | `scrolling` | `scrolling` | `html` | | `seamless` | `seamless` | `html` | | `security` | `security` | `html` | | `seed` | `seed` | `svg` | | `selected` | `selected` | `html` | | `shadowRootClonable` | `shadowrootclonable` | `html` | | `shadowRootCustomElementRegistry` | `shadowrootcustomelementregistry` | `html` | | `shadowRootDelegatesFocus` | `shadowrootdelegatesfocus` | `html` | | `shadowRootMode` | `shadowrootmode` | `html` | | `shadowRootSerializable` | `shadowrootserializable` | `html` | | `shape` | `shape` | `html` | | `shapeRendering` | `shape-rendering` | `svg` | | `side` | `side` | `svg` | | `size` | `size` | `html` | | `sizes` | `sizes` | `html` | | `slope` | `slope` | `svg` | | `slot` | `slot` | `html` | | `snapshotTime` | `snapshotTime` | `svg` | | `spacing` | `spacing` | `svg` | | `span` | `span` | `html` | | `specularConstant` | `specularConstant` | `svg` | | `specularExponent` | `specularExponent` | `svg` | | `spellCheck` | `spellcheck` | `html` | | `spreadMethod` | `spreadMethod` | `svg` | | `src` | `src` | `html` | | `srcDoc` | `srcdoc` | `html` | | `srcLang` | `srclang` | `html` | | `srcSet` | `srcset` | `html` | | `standby` | `standby` | `html` | | `start` | `start` | `html` | | `startOffset` | `startOffset` | `svg` | | `stdDeviation` | `stdDeviation` | `svg` | | `stemh` | `stemh` | `svg` | | `stemv` | `stemv` | `svg` | | `step` | `step` | `html` | | `stitchTiles` | `stitchTiles` | `svg` | | `stopColor` | `stop-color` | `svg` | | `stopOpacity` | `stop-opacity` | `svg` | | `strikethroughPosition` | `strikethrough-position` | `svg` | | `strikethroughThickness` | `strikethrough-thickness` | `svg` | | `string` | `string` | `svg` | | `stroke` | `stroke` | `svg` | | `strokeDashArray` | `stroke-dasharray` | `svg` | | `strokeDashOffset` | `stroke-dashoffset` | `svg` | | `strokeLineCap` | `stroke-linecap` | `svg` | | `strokeLineJoin` | `stroke-linejoin` | `svg` | | `strokeMiterLimit` | `stroke-miterlimit` | `svg` | | `strokeOpacity` | `stroke-opacity` | `svg` | | `strokeWidth` | `stroke-width` | `svg` | | `style` | `style` | `svg`, `html` | | `summary` | `summary` | `html` | | `surfaceScale` | `surfaceScale` | `svg` | | `syncBehavior` | `syncBehavior` | `svg` | | `syncBehaviorDefault` | `syncBehaviorDefault` | `svg` | | `syncMaster` | `syncMaster` | `svg` | | `syncTolerance` | `syncTolerance` | `svg` | | `syncToleranceDefault` | `syncToleranceDefault` | `svg` | | `systemLanguage` | `systemLanguage` | `svg` | | `tabIndex` | `tabindex` | `svg`, `html` | | `tableValues` | `tableValues` | `svg` | | `target` | `target` | `svg`, `html` | | `targetX` | `targetX` | `svg` | | `targetY` | `targetY` | `svg` | | `text` | `text` | `html` | | `textAnchor` | `text-anchor` | `svg` | | `textDecoration` | `text-decoration` | `svg` | | `textLength` | `textLength` | `svg` | | `textRendering` | `text-rendering` | `svg` | | `timelineBegin` | `timelinebegin` | `svg` | | `title` | `title` | `svg`, `html` | | `to` | `to` | `svg` | | `topMargin` | `topmargin` | `html` | | `transform` | `transform` | `svg` | | `transformBehavior` | `transformBehavior` | `svg` | | `transformOrigin` | `transform-origin` | `svg` | | `translate` | `translate` | `html` | | `type` | `type` | `svg`, `html` | | `typeMustMatch` | `typemustmatch` | `html` | | `typeOf` | `typeof` | `svg` | | `u1` | `u1` | `svg` | | `u2` | `u2` | `svg` | | `underlinePosition` | `underline-position` | `svg` | | `underlineThickness` | `underline-thickness` | `svg` | | `unicode` | `unicode` | `svg` | | `unicodeBidi` | `unicode-bidi` | `svg` | | `unicodeRange` | `unicode-range` | `svg` | | `unitsPerEm` | `units-per-em` | `svg` | | `unselectable` | `unselectable` | `html` | | `useMap` | `usemap` | `html` | | `vAlign` | `valign` | `html` | | `vAlphabetic` | `v-alphabetic` | `svg` | | `vHanging` | `v-hanging` | `svg` | | `vIdeographic` | `v-ideographic` | `svg` | | `vLink` | `vlink` | `html` | | `vMathematical` | `v-mathematical` | `svg` | | `vSpace` | `vspace` | `html` | | `value` | `value` | `html` | | `valueType` | `valuetype` | `html` | | `values` | `values` | `svg` | | `vectorEffect` | `vector-effect` | `svg` | | `version` | `version` | `svg`, `html` | | `vertAdvY` | `vert-adv-y` | `svg` | | `vertOriginX` | `vert-origin-x` | `svg` | | `vertOriginY` | `vert-origin-y` | `svg` | | `viewBox` | `viewBox` | `svg` | | `viewTarget` | `viewTarget` | `svg` | | `visibility` | `visibility` | `svg` | | `width` | `width` | `svg`, `html` | | `widths` | `widths` | `svg` | | `wordSpacing` | `word-spacing` | `svg` | | `wrap` | `wrap` | `html` | | `writingMode` | `writing-mode` | `svg` | | `writingSuggestions` | `writingsuggestions` | `html` | | `x` | `x` | `svg` | | `x1` | `x1` | `svg` | | `x2` | `x2` | `svg` | | `xChannelSelector` | `xChannelSelector` | `svg` | | `xHeight` | `x-height` | `svg` | | `xLinkActuate` | `xlink:actuate` | `xlink` | | `xLinkArcRole` | `xlink:arcrole` | `xlink` | | `xLinkHref` | `xlink:href` | `xlink` | | `xLinkRole` | `xlink:role` | `xlink` | | `xLinkShow` | `xlink:show` | `xlink` | | `xLinkTitle` | `xlink:title` | `xlink` | | `xLinkType` | `xlink:type` | `xlink` | | `xmlBase` | `xml:base` | `xml` | | `xmlLang` | `xml:lang` | `xml` | | `xmlSpace` | `xml:space` | `xml` | | `xmlns` | `xmlns` | `xmlns` | | `xmlnsXLink` | `xmlns:xlink` | `xmlns` | | `y` | `y` | `svg` | | `y1` | `y1` | `svg` | | `y2` | `y2` | `svg` | | `yChannelSelector` | `yChannelSelector` | `svg` | | `z` | `z` | `svg` | | `zoomAndPan` | `zoomAndPan` | `svg` | ## Security This package is safe. ## Related * [`wooorm/web-namespaces`][github-web-namespaces] — list of web namespaces * [`wooorm/space-separated-tokens`](https://github.com/wooorm/space-separated-tokens) — parse/stringify space separated tokens * [`wooorm/comma-separated-tokens`](https://github.com/wooorm/comma-separated-tokens) — parse/stringify comma separated tokens * [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names) — list of HTML tag names * [`wooorm/mathml-tag-names`](https://github.com/wooorm/mathml-tag-names) — list of MathML tag names * [`wooorm/svg-tag-names`](https://github.com/wooorm/svg-tag-names) — list of SVG tag names * [`wooorm/html-void-elements`](https://github.com/wooorm/html-void-elements) — list of void HTML tag names * [`wooorm/svg-element-attributes`](https://github.com/wooorm/svg-element-attributes) — map of SVG elements to allowed attributes * [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes) — map of HTML elements to allowed attributes * [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes) — list of ARIA attributes ## Contribute Yes please! See [*How to Contribute to Open Source*][opensource-guide]. ## License [MIT][file-license] © [Titus Wormer][wooorm] Derivative work based on [React][github-react-source] licensed under [MIT][github-react-source-license] © Facebook, Inc. [api-find]: #findschema-name [api-hast-to-react]: #hasttoreact [api-html]: #html [api-info]: #info [api-normalize]: #normalizename [api-schema]: #schema [api-space]: #space [api-svg]: #svg [badge-build-image]: https://github.com/wooorm/property-information/workflows/main/badge.svg [badge-build-url]: https://github.com/wooorm/property-information/actions [badge-coverage-image]: https://img.shields.io/codecov/c/github/wooorm/property-information.svg [badge-coverage-url]: https://codecov.io/github/wooorm/property-information [badge-downloads-image]: https://img.shields.io/npm/dm/property-information.svg [badge-downloads-url]: https://www.npmjs.com/package/property-information [badge-size-image]: https://img.shields.io/bundlejs/size/property-information [badge-size-url]: https://bundlejs.com/?q=property-information [esmsh]: https://esm.sh [file-license]: license [github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [github-hast]: https://github.com/syntax-tree/hast [github-hast-property-name]: https://github.com/syntax-tree/hast#propertyname [github-react]: https://github.com/facebook/react [github-react-source]: https://github.com/facebook/react/blob/4632e36/packages/react-dom-bindings/src/shared/possibleStandardNames.js [github-react-source-license]: https://github.com/facebook/react/blob/4632e36/LICENSE [github-web-namespaces]: https://github.com/wooorm/web-namespaces [mozilla-dataset]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset [npmjs-install]: https://docs.npmjs.com/cli/install [opensource-guide]: https://opensource.guide/how-to-contribute/ [section-support]: #support [typescript]: https://www.typescriptlang.org [wooorm]: https://wooorm.com --- END ORIGINAL BYTES --- ================================================================ radix3@1.1.2 Declared package license: MIT Published archive: https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz Locked integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 1915f8cf96b0dba1fd5c949fad74e2f7135dc7e4a8f414f084f39d43a485faa2; bytes: 4531 --- BEGIN ORIGINAL BYTES --- # 🌳 radix3 [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] [![JSDocs][jsdocs-src]][jsdocs-href] Lightweight and fast router for JavaScript based on [Radix Tree](https://en.wikipedia.org/wiki/Radix_tree). ## Usage **Install package:** ```sh # npm npm i radix3 # yarn yarn add radix3 # pnpm pnpm i radix3 ``` **Import:** ```js // ESM import { createRouter } from "radix3"; // CJS const { createRouter } = require("radix3"); ``` **Create a router instance and insert routes:** ```js const router = createRouter(/* options */); router.insert("/path", { payload: "this path" }); router.insert("/path/:name", { payload: "named route" }); router.insert("/path/foo/**", { payload: "wildcard route" }); router.insert("/path/foo/**:name", { payload: "named wildcard route" }); ``` **Match route to access matched data:** ```js router.lookup("/path"); // { payload: 'this path' } router.lookup("/path/fooval"); // { payload: 'named route', params: { name: 'fooval' } } router.lookup("/path/foo/bar/baz"); // { payload: 'wildcard route' } router.lookup("/"); // null (no route matched for/) ``` ## Methods ### `router.insert(path, data)` `path` can be static or using `:placeholder` or `**` for wildcard paths. The `data` object will be returned on matching params. It should be an object like `{ handler }` and not containing reserved keyword `params`. ### `router.lookup(path)` Returns matched data for `path` with optional `params` key if mached route using placeholders. ### `router.remove(path)` Remove route matching `path`. ## Options You can initialize router instance with options: ```ts const router = createRouter({ strictTrailingSlash: true, routes: { "/foo": {}, }, }); ``` - `routes`: An object specifying initial routes to add - `strictTrailingSlash`: By default router ignored trailing slash for matching and adding routes. When set to `true`, matching with trailing slash is different. ### Route Matcher Creates a multi matcher from router tree that can match **all routes** matching path: ```ts import { createRouter, toRouteMatcher } from "radix3"; const router = createRouter({ routes: { "/foo": { m: "foo" }, // Matches /foo only "/foo/**": { m: "foo/**" }, // Matches /foo/ "/foo/bar": { m: "foo/bar" }, // Matches /foo/bar only "/foo/bar/baz": { m: "foo/bar/baz" }, // Matches /foo/bar/baz only "/foo/*/baz": { m: "foo/*/baz" }, // Matches /foo//baz }, }); const matcher = toRouteMatcher(router); const matches = matcher.matchAll("/foo/bar/baz"); // [ // { // "m": "foo/**", // }, // { // "m": "foo/*/baz", // }, // { // "m": "foo/bar/baz", // }, // ] ``` ### Route Matcher Export It is also possible to export and then rehydrate a matcher from pre-compiled rules. ```ts import { exportMatcher, createMatcherFromExport } from "radix3"; // Assuming you already have a matcher // you can export this to a JSON-type object const json = exportMatcher(matcher); // and then rehydrate this later const newMatcher = createMatcherFromExport(json); const matches = newMatcher.matchAll("/foo/bar/baz"); ``` ## Performance See [benchmark](./benchmark). ## License Based on original work of [`charlieduong94/radix-router`](https://github.com/charlieduong94/radix-router) by [Charlie Duong](https://github.com/charlieduong94) (MIT) [MIT](./LICENSE) - Made with ❤️ [npm-version-src]: https://img.shields.io/npm/v/radix3?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/radix3 [npm-downloads-src]: https://img.shields.io/npm/dm/radix3?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/radix3 [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/radix3/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/radix3 [bundle-src]: https://img.shields.io/bundlephobia/minzip/radix3?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=radix3 [license-src]: https://img.shields.io/github/license/unjs/radix3.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/radix3/blob/main/LICENSE [jsdocs-src]: https://img.shields.io/badge/jsDocs.io-reference-18181B?style=flat&colorA=18181B&colorB=F0DB4F [jsdocs-href]: https://www.jsdocs.io/package/radix3 --- END ORIGINAL BYTES --- ================================================================ react@19.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/react/-/react-19.3.0.tgz Locked integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93; bytes: 1088 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Meta Platforms, Inc. and affiliates. 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. --- END ORIGINAL BYTES --- ================================================================ react-dom@19.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz Locked integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93; bytes: 1088 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Meta Platforms, Inc. and affiliates. 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. --- END ORIGINAL BYTES --- ================================================================ readdirp@5.1.1 Declared package license: MIT Published archive: https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz Locked integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: dffec71d93f273d2af7b54c6c7e7e70b3289c632ec0d7253210ec21ac336d5ac; bytes: 1114 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3a5dbfbb94a1b9dcb1321c119ed079a146f9ce0a02f177a698135456eceaaec6; bytes: 6494 --- BEGIN ORIGINAL BYTES --- # readdirp [![Weekly downloads](https://img.shields.io/npm/dw/readdirp.svg)](https://github.com/paulmillr/readdirp) Recursive version of fs.readdir. Exposes a **stream API** (with small RAM & CPU footprint) and a **promise API**. Faster than built-in `fs.readdir recursive: true`, and uses less RAM. ```sh npm install readdirp jsr add jsr:@paulmillr/readdirp ``` ```javascript // Use streams to achieve small RAM & CPU footprint. // 1) Streams example with for-await. import readdirp from 'readdirp'; for await (const entry of readdirp('.')) { const {path} = entry; console.log(`${JSON.stringify({path})}`); } // 2) Streams example, non for-await. // Print out all JS files along with their size within the current folder & subfolders. import readdirp from 'readdirp'; readdirp('.', {alwaysStat: true, fileFilter: (f) => f.basename.endsWith('.js')}) .on('data', (entry) => { const {path, stats: {size}} = entry; console.log(`${JSON.stringify({path, size})}`); }) // Optionally call stream.destroy() in `warn()` in order to abort and cause 'close' to be emitted .on('warn', error => console.error('non-fatal error', error)) .on('error', error => console.error('fatal error', error)) .on('end', () => console.log('done')); // 3) Promise example. More RAM and CPU than streams / for-await. import { readdirpPromise } from 'readdirp'; const files = await readdirpPromise('.'); console.log(files.map(file => file.path)); // Other options. import readdirp from 'readdirp'; readdirp('test', { fileFilter: (f) => f.basename.endsWith('.js'), directoryFilter: (d) => d.basename !== '.git', // directoryFilter: (di) => di.basename.length === 9 type: 'files_directories', depth: 1 }); ``` ## API `const stream = readdirp(root[, options])` — **Stream API** - Reads given root recursively and returns a `stream` of [entry infos](#entryinfo) - Optionally can be used like `for await (const entry of stream)` with node.js 10+ (`asyncIterator`). - `on('data', (entry) => {})` [entry info](#entryinfo) for every file / dir. - `on('warn', (error) => {})` non-fatal `Error` that prevents a file / dir from being processed. Example: inaccessible to the user. - `on('error', (error) => {})` fatal `Error` which also ends the stream. Example: illegal options where passed. - `on('end')` — we are done. Called when all entries were found and no more will be emitted. - `on('close')` — stream is destroyed via `stream.destroy()`. Could be useful if you want to manually abort even on a non fatal error. At that point the stream is no longer `readable` and no more entries, warning or errors are emitted - To learn more about streams, consult the very detailed [nodejs streams documentation](https://nodejs.org/api/stream.html) or the [stream-handbook](https://github.com/substack/stream-handbook) `const entries = await readdirp.promise(root[, options])` — **Promise API**. Returns a list of [entry infos](#entryinfo). First argument is awalys `root`, path in which to start reading and recursing into subdirectories. ### options - `fileFilter`: filter to include or exclude files - **Function**: a function that takes an entry info as a parameter and returns true to include or false to exclude the entry - `directoryFilter`: filter to include/exclude directories found and to recurse into. Directories that do not pass a filter will not be recursed into. - `depth: 5`: depth at which to stop recursing even if more subdirectories are found - `type: 'files'`: determines if data events on the stream should be emitted for `'files'` (default), `'directories'`, `'files_directories'`, or `'all'`. Setting to `'all'` will also include entries for other types of file descriptors like character devices, unix sockets and named pipes. - `alwaysStat: false`: always return `stats` property for every file. Default is `false`, readdirp will return `Dirent` entries. Setting it to `true` can double readdir execution time - use it only when you need file `size`, `mtime` etc. Cannot be enabled on node <10.10.0. - `lstat: false`: include symlink entries in the stream along with files. When `true`, `fs.lstat` would be used instead of `fs.stat` ### `EntryInfo` Has the following properties: - `path: 'assets/javascripts/react.js'`: path to the file/directory (relative to given root) - `fullPath: '/Users/dev/projects/app/assets/javascripts/react.js'`: full path to the file/directory found - `basename: 'react.js'`: name of the file/directory - `dirent: fs.Dirent`: built-in [dir entry object](https://nodejs.org/api/fs.html#fs_class_fs_dirent) - only with `alwaysStat: false` - `stats: fs.Stats`: built in [stat object](https://nodejs.org/api/fs.html#fs_class_fs_stats) - only with `alwaysStat: true` ## Changelog - 4.0 (Aug 25, 2024) rewritten in typescript, producing hybrid common.js / esm module. - Remove glob support and all dependencies - Make sure you're using `let {readdirp} = require('readdirp')` in common.js - 3.5 (Oct 13, 2020) disallows recursive directory-based symlinks. Before, it could have entered infinite loop. - 3.4 (Mar 19, 2020) adds support for directory-based symlinks. - 3.3 (Dec 6, 2019) stabilizes RAM consumption and enables perf management with `highWaterMark` option. Fixes race conditions related to `for-await` looping. - 3.2 (Oct 14, 2019) improves performance by 250% and makes streams implementation more idiomatic. - 3.1 (Jul 7, 2019) brings `bigint` support to `stat` output on Windows. This is backwards-incompatible for some cases. Be careful. It you use it incorrectly, you'll see "TypeError: Cannot mix BigInt and other types, use explicit conversions". - 3.0 brings huge performance improvements and stream backpressure support. - Upgrading 2.x to 3.x: - Signature changed from `readdirp(options)` to `readdirp(root, options)` - Replaced callback API with promise API. - Renamed `entryType` option to `type` - Renamed `entryType: 'both'` to `'files_directories'` - `EntryInfo` - Renamed `stat` to `stats` - Emitted only when `alwaysStat: true` - `dirent` is emitted instead of `stats` by default with `alwaysStat: false` - Renamed `name` to `basename` - Removed `parentDir` and `fullParentDir` properties - Supported node.js versions: - 4.x: node 14+ - 3.x: node 8+ - 2.x: node 0.6+ ## License Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller () MIT License, see [LICENSE](LICENSE) file. --- END ORIGINAL BYTES --- ================================================================ regex@6.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/regex/-/regex-6.1.0.tgz Locked integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3d19c2b6246b3072547af2bd05e6b4c09bd3d15955590f1f1e1d20382c919a49; bytes: 1072 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2025 Steven Levithan 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2d57512c2cf5a4a3fe8c81d3b5de34203c78b6638248f377b0ea99e677421619; bytes: 54736 --- BEGIN ORIGINAL BYTES ---
regex logo

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href]
The Regex+ library (package name: `regex`) provides a template tag named `regex`. This tag modernizes JavaScript regular expressions with always-on best practices and support for new features that make regexes more powerful and dramatically more readable. The `regex` tag returns native `RegExp` instances that run with native performance and can exceed the performance of regex literals you'd write yourself. **With the Regex+ library, JavaScript steps up as one of the best regex flavors** alongside PCRE and Perl, possibly surpassing C++, Java, .NET, Python, and Ruby. Features added to native JavaScript regular expressions include insignificant whitespace and comments for readability, atomic groups and possessive quantifiers that can help you avoid [ReDoS](https://en.wikipedia.org/wiki/ReDoS), subroutines and subroutine definition groups that enable grammatical patterns with powerful subpattern composition, and context-aware interpolation of regexes, escaped strings, and partial patterns. Details: - Lightweight (7 kB minzip) - Available as a [Babel plugin](https://github.com/slevithan/babel-plugin-transform-regex), which avoids any runtime dependencies or user runtime cost - Supports all ES2025 regex features - Type definitions included ## 📜 Contents - [Features](#-features) - [Install and use](#️-install-and-use) - [Examples](#-examples) - [Context](#-context) - [Extended regex syntax](#-extended-regex-syntax) - [Atomic groups](#atomic-groups) - [Possessive quantifiers](#possessive-quantifiers) - [Subroutines](#subroutines) - [Subroutine definition groups](#subroutine-definition-groups) - [Recursion](#recursion) - [Flags](#-flags) - [Implicit flags](#implicit-flags) - [Flag v](#flag-v) - [Flag x](#flag-x) - [Flag n](#flag-n) - [Interpolation](#-interpolation) - [`RegExp` instances](#interpolating-regexes) - [Escaped strings](#interpolating-escaped-strings) - [Partial patterns](#interpolating-partial-patterns) - [Interpolation principles](#interpolation-principles) - [Interpolation contexts](#interpolation-contexts) - [Options](#-options) - [Returning a string](#returning-a-string) - [Performance](#-performance) - [Compatibility](#-compatibility) - [FAQ](#-faq) ## 💎 Features **A modern regex baseline** so you don't need to continually opt-in to best practices. - Always-on flag v gives you the best level of Unicode support and strict errors. - New flags: - Always-on flag x allows you to freely add whitespace and comments to your regexes. - Always-on flag n ("named capture only" mode) improves regex readability and efficiency. - No unreadable escaped backslashes `\\\\` since it's a raw string template tag. **Extended regex syntax**. - Atomic groups and possessive quantifiers can dramatically improve performance and prevent ReDoS. - Subroutines and definition groups enable powerful composition, improving readability and maintainability. - Recursive matching via an official plugin. - Custom syntax plugins supported. **Context-aware and safe interpolation** of regexes, strings, and partial patterns. - Interpolated strings have their special characters escaped. - Interpolated regexes locally preserve the meaning of their own flags (or their absense), and their numbered backreferences are adjusted to work within the overall pattern. ## 🕹️ Install and use ```sh npm install regex ``` ```js import {regex} from 'regex'; // Works with all string/regexp methods since it returns a native regexp const str = 'abc'; regex`\w`.test(str); // → true str.match(regex('g')`\w`); // → ['a', 'b', 'c'] ```
In browsers ESM: ```html ``` Using a global name: ```html ```
## 🪧 Examples ```js import {regex, pattern} from 'regex'; // Subroutines and a subroutine definition group // Also shows insignificant whitespace for readability const record = regex` ^ Admitted: \g \n Released: \g $ (?(DEFINE) (? \g-\g-\g) (? \d{4}) (? \d{2}) (? \d{2}) ) `; // Atomic group: Avoids ReDoS from the nested, overlapping quantifier const words = regex`^(?>\w+\s?)+$`; // Context-aware interpolation // Also shows line comments and insignificant whitespace const re = regex('m')` # RegExp: Only the inner regex is case insensitive (flag i), and the outer # regex's flags (including implicit flag x) don't apply to it ${/^a.$/i} | # String: Regex special chars are escaped # Note that quantifying an interpolated value repeats it as a complete unit ${'a|b'}+ | # Pattern: This string is contextually sandboxed but not escaped [${pattern('a-z')}] `; // Numbered backreferences in interpolated regexes are adjusted const double = /(.)\1/; regex`^ (?.) ${double} ${double} $`; // → /^(?.)(.)\2(.)\3$/v ```
Show examples of using subroutine definition groups to refactor previously unmaintainable regexes ### Date/time regex ```js // Unmaintainable regex from real-world code for validating a date and time const DATE_FILTER_RE = /^(since|until):((?!0{3})\d{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|(?!-00:00)[+-](?:[01]\d|2[0-3]):(?:[0-5]\d))?)?)?)?)$/; // Refactored for Regex+, with identical matches // Includes a subroutine definition group at the bottom const DATE_FILTER_RE = regex` ^ (? since | until) : (? \g (- \g (- \g (T \g
## ❓ Context Due to years of legacy and backward compatibility, regular expression syntax in JavaScript is a bit of a mess. There are four sets of incompatible syntax and behavior rules that might apply to your regexes depending on the flags and features you use. The differences are hard to remember or understand, and can easily create subtle bugs.
See the four parsing modes 1. Unicode-unaware (legacy) mode is the default and can easily and silently create Unicode-related bugs. 2. Named capture mode changes the meaning of `\k` when a named capture appears anywhere in a regex. 3. Unicode mode with flag u adds strict errors (for unreserved escapes, octal escapes, quantified lookahead, etc.), switches to code point matching (changing the potential handling of the dot, negated sets like `\W`, character class ranges, and quantifiers), changes flag i to apply Unicode case-folding, and adds support for new syntax. 4. UnicodeSets mode with flag v (an upgrade to u) incompatibly changes escaping rules within character classes, fixes case-insensitive matching for `\p` and `\P` within negated `[^…]`, and adds support for new features/syntax.
Additionally, JavaScript regex syntax is hard to write and even harder to read and refactor. But it doesn't have to be that way! With a few key features — raw multiline strings, insignificant whitespace, comments, subroutines, subroutine definition groups, interpolation, and "named capture only" mode — even long and complex regexes can be beautiful, grammatical, and intuitive. Regex+ adds all of these features and returns native `RegExp` instances. It always uses flag v (already a best practice for new regexes) so you never forget to turn it on and don't have to worry about the differences in other parsing modes. (In environments without native v, flag u is automatically used instead while applying v's escaping rules so your regexes are backward compatible.) It also supports atomic groups and possessive quantifiers to help you avoid catastrophic backtracking, and it gives you best-in-class, context-aware interpolation of `RegExp` instances, escaped strings, and partial patterns. ## 🦾 Extended regex syntax Historically, JavaScript regexes were not as powerful or readable as other major regex flavors like Java, .NET, PCRE, Perl, Python, and Ruby. Those days are over. Regex+ builds on the many regex features [added in new JavaScript versions](https://github.com/slevithan/awesome-regex#javascript-regex-evolution) by adding the key remaining pieces (via its extended syntax and implicit flags) that are needed to stand alongside or surpass other major flavors. The following syntax is added on top of the regex features your JavaScript environment supports natively. Extended syntax works by being transpiled into native syntax, often in complex ways that are impractical to write by hand. ### Atomic groups Atomic groups are noncapturing groups with special behavior, and are written as `(?>…)`. After matching the contents of an atomic group, the regex engine automatically throws away all backtracking positions remembered by any tokens within the group. Atomic groups are most commonly used to improve performance, and are a much needed feature that Regex+ brings to native JavaScript regular expressions. Example: ```js regex`^(?>\w+\s?)+$` ``` This matches strings that contain word characters separated by spaces, with the final space being optional. Thanks to the atomic group, it instantly fails to find a match if given a long list of words that end with something not allowed, like `'A target string that takes a long time or can even hang your browser!'`. Try running this without the atomic group (as `/^(?:\w+\s?)+$/`) and, due to the exponential backtracking triggered by the many ways to divide the work of the inner and outer `+` quantifiers, it will either take a *very* long time, hang your browser/server, or throw an internal error after a delay. This is called *[catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)* or *[ReDoS](https://en.wikipedia.org/wiki/ReDoS)*, and it has taken down major services like [Cloudflare](https://blog.cloudflare.com/details-of-the-cloudflare-outage-on-july-2-2019) and [Stack Overflow](https://stackstatus.tumblr.com/post/147710624694/outage-postmortem-july-20-2016). Regex+ and atomic groups to the rescue!
👉 Learn more with examples Consider `` regex`(?>a+)ab` `` vs `` regex`(?:a+)ab` ``. The former (with an atomic group) doesn't match `'aaaab'`, but the latter does. The former doesn't match because: - The regex engine starts by using the greedy `a+` within the atomic group to match all the `a`s in the target string. - Then, when it tries to match the additional `a` outside the group, it fails (the next character in the target string is a `b`), so the regex engine backtracks. - But because it can't backtrack into the atomic group to make the `+` give up its last matched `a`, there are no additional options to try and the overall match attempt fails. For a more useful example, consider how this can affect lazy (nongreedy) quantifiers. Let's say you want to match `…` tags that are followed by `!`. You might try this: ```js const re = regex('gis')`.*?!`; // This is OK 'Hi! Bye.'.match(re); // → ['Hi!'] // But not this 'Hi. Bye!'.match(re); // → ['Hi. Bye!'] 👎 ``` What happened with the second string was that, when an `!` wasn't found immediately following the first ``, the regex engine backtracked and expanded the lazy `.*?` to match an additional character (in this case, the `<` of the `` tag) and then continued onward, all the way to just before the `!` at the end. You can prevent this by wrapping the lazily quantified token and its following delimiter in an atomic group, as follows: ```js const re = regex('gis')`(?>.*?)!`; 'Hi. Bye!'.match(re); // → ['Bye!'] 👍 ``` Now, after the regex engine finds the first `` and exits the atomic group, it can no longer backtrack into the group and change what the `.*?` already matched. As a result, the match attempt fails at the beginning of this example string. The regex engine then moves on and starts over at subsequent positions in the string, eventually finding `Bye!`. Success.
> [!NOTE] > Atomic groups are supported in many other regex flavors. There's a [proposal](https://github.com/tc39/proposal-regexp-atomic-operators) to add them to JavaScript. ### Possessive quantifiers Possessive quantifiers are created by adding `+` to a quantifier, and they're similar to greedy quantifiers except they don't allow backtracking. Although greedy quantifiers start out by matching as much as possible, if the remainder of the regex doesn't find a match, the regex engine will backtrack and try all permutations of how many times the quantifier should repeat. Possessive quantifiers prevent the regex engine from doing so. > Possessive quantifiers are syntactic sugar for [atomic groups](#atomic-groups) when their contents are a single repeated item (which could be a token, character class, or group). Like atomic groups, possessive quantifiers are mostly useful for performance and preventing ReDoS, but they can also be used to eliminate certain matches. For example, `` regex`a++.` `` matches one or more `a` followed by a character other than `a`. Unlike `` regex`a+.` ``, it won't match a sequence of only `a` characters like `'aaa'`. The possessive `++` doesn't give back any of the `a`s it matched, so there's nothing left for the following `.` to match. Here's how possessive quantifier syntax compares to the greedy and lazy quantifiers that JavaScript supports natively: | | Greedy | Lazy | Possessive | | :- | :-: | :-: | :-: | | Repeat | As many times as possible,
giving back as needed | As few times as possible,
expanding as needed | As many times as possible,
without giving back | Zero or one | `?` | `??` | `?+` | | Zero or more | `*` | `*?` | `*+` | | One or more | `+` | `+?` | `++` | | *N* or more | `{2,}` | `{2,}?` | `{2,}+` | | Between *N* and *M* | `{0,5}` | `{0,5}?` | `{0,5}+` | > Fixed repetition quantifiers behave the same whether they're greedy `{2}`, lazy `{2}?`, or possessive `{2}+`. > [!NOTE] > Possessive quantifiers are supported in many other regex flavors. There's a [proposal](https://github.com/tc39/proposal-regexp-atomic-operators) to add them to JavaScript. ### Subroutines Subroutines are written as `\g` (where *name* refers to a named group), and they treat the referenced group as an independent subpattern that they try to match at the current position. This enables subpattern composition and reuse, which improves readability and maintainability. The following example illustrates how subroutines and backreferences differ: ```js // A backreference with \k regex`(?sens|respons)e\ and\ \kibility` // Matches: // - 'sense and sensibility' // - 'response and responsibility' // A subroutine with \g regex`(?sens|respons)e\ and\ \gibility` // Matches: // - 'sense and sensibility' // - 'sense and responsibility' // - 'response and sensibility' // - 'response and responsibility' ``` Subroutines go beyond the composition benefits of [interpolation](#-interpolation). Apart from the obvious difference that they don't require variables to be defined outside of the regex, they also don't simply insert the referenced subpattern. 1. They can reference groups that themselves contain subroutines, chained to any depth. 2. Any capturing groups that are set during the subroutine call revert to their previous values afterwards. 3. They don't create named captures that are visible outside of the subroutine, so using subroutines doesn't lead to "duplicate capture group name" errors. To illustrate points 2 and 3, consider: ```js regex` (? (?.)\k) \g \k ` ``` The backreference `\k` matches whatever was matched by capturing group `(?…)`, regardless of what was matched in between by the subroutine `\g`. For example, this regex matches `'xx!!xx'`, but not `'xx!!!!'`.
👉 Show more details - Subroutines can appear before the groups they reference. - If there are [duplicate capture names](https://github.com/tc39/proposal-duplicate-named-capturing-groups), subroutines refer to the first instance of the given group (matching the behavior of PCRE and Perl). - Although subroutines can be chained to any depth, a descriptive error is thrown if they're used recursively. Support for recursion can be added via a plugin (see [*Recursion*](#recursion)). - Like backreferences, subroutines can't be used *within* character classes. - As with all of Regex+'s extended syntax, subroutines are applied after interpolation, giving them maximal flexibility.
👉 Show how to define subpatterns for use by reference only The following regex matches an IPv4 address such as "192.168.12.123": ```js const ipv4 = regex` \b \g (\. \g){3} \b # Define the 'byte' subpattern (? 25[0-5] | 2[0-4]\d | 1\d\d | [1-9]?\d){0} `; ``` Above, the `{0}` quantifier at the end of the `(?…)` group allows *defining* the group without *matching* it at that position. The subpattern within it can then be used by reference elsewhere within the pattern. This next regex matches a record with multiple date fields, and captures each value: ```js const re = regex` ^ Admitted:\ (? \g) \n Released:\ (? \g) $ # Define subpatterns ( (? \g-\g-\g) (? \d{4}) (? \d{2}) (? \d{2}) ){0} `; ``` Here, the `{0}` quantifier at the end once again prevents matching its group at that position, while enabling all of the named groups within it to be used by reference. Named groups defined this way don't *participate* in the match, and thus appear on a match result's `groups` object with the value `undefined` (the same as for any capturing group that didn't participate in a match). See the next section, [*Subroutine definition groups*](#subroutine-definition-groups), for a way to prevent such groups from appearing on the `groups` object.
> [!NOTE] > Subroutines are based on the feature in PCRE and Perl. PCRE allows several syntax options including the `\g` used by Regex+, whereas Perl uses `(?&name)`. Ruby also supports subroutines (and uses the `\g` syntax), but it has behavior differences related to capturing and backreferences that arguably make its subroutines less useful. ### Subroutine definition groups The special group `(?(DEFINE)…)` can be used at the end of a regex to define subpatterns for use by reference only. When combined with [subroutines](#subroutines), this enables writing regexes in a grammatical way that can significantly improve readability and maintainability. > Named groups defined within subroutine definition groups don't appear on the `groups` object of matches. Example: ```js const re = regex` ^ Admitted:\ (? \g) \n Released:\ (? \g) $ (?(DEFINE) (? \g-\g-\g) (? \d{4}) (? \d{2}) (? \d{2}) ) `; const record = 'Admitted: 2024-01-01\nReleased: 2024-01-03'; const match = re.exec(record); console.log(match.groups); /* → { admitted: '2024-01-01', released: '2024-01-03' } */ ``` > [!NOTE] > Subroutine definition groups are based on the feature in PCRE and Perl. However, Regex+ supports a stricter version since it limits their placement, quantity, and the top-level syntax that can be used within them.
👉 Show more details - **Quantity:** Only one definition group is allowed per regex, but it can contain any number of named groups, and those groups can appear in any order. - **Placement:** Apart from trailing whitespace and comments (allowed by implicit flag x), definition groups must appear at the end of their pattern. - **Contents:** At the top level of definition groups, only named groups, whitespace, and comments are allowed. - **Duplicate names:** All named groups within definition groups must use unique names. - **Casing:** The word `DEFINE` must appear in uppercase.
### Recursion The official Regex+ plugin [regex-recursion](https://github.com/slevithan/regex-recursion) enables the syntax `(?R)` and `\g` to match recursive/balanced patterns up to a specified max depth (2–100). ## 🚩 Flags Flags are added like this: ```js regex('gm')`^.+` ``` `RegExp` instances interpolated into the pattern preserve their own flags locally (see [*Interpolating regexes*](#interpolating-regexes)). ### Implicit flags Flag v and emulated flags x and n are always on when using `regex`, giving your regexes a modern baseline syntax and avoiding the need to continually opt-in to their superior modes. > For special situations such as when wrapping Regex+ within other tools, implicit flags can be disabled. See: [*Options*](#-options). ### Flag `v` JavaScript's native flag v (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets)) gives you the best level of Unicode support, strict errors, and all the latest regex features like multicharacter properties of strings and character class subtraction/intersection. It's always on when using `regex`, which helps avoid numerous Unicode-related bugs, and means there's only one way to parse a regex instead of [four](#-context) (so you only need to remember one set of regex syntax and behavior). Flag v is applied to the full pattern after interpolation happens. > In environments without native support for flag v, flag u is automatically used instead while applying v's escaping rules so your regexes are backward compatible. ### Flag `x` Emulated flag x makes whitespace insignificant and adds support for line comments starting with `#`, allowing you to freely format your regexes for readability. It's always implicitly on, though it doesn't extend into interpolated `RegExp` instances (to avoid changing their meaning). Example: ```js const re = regex` # Match a date in YYYY-MM-DD format (? \d{4}) - # Year part (? \d{2}) - # Month part (? \d{2}) # Day part # Escape whitespace and hashes to match them literally \ # space char \x20 # space char \# # hash char \s # any whitespace char # Since embedded strings are always matched literally, you can also match # whitespace by embedding it as a string ${' '}+ # Patterns are directly embedded, so they use free spacing ${pattern`\d + | [a - z]`} # Interpolated regexes use their own flags, so they preserve their whitespace ${/^Fat cat$/m} `; ``` > [!NOTE] > Flag x is based on the JavaScript [proposal](https://github.com/tc39/proposal-regexp-x-mode) for it as well as support in many other regex flavors. The rules for whitespace *within character classes* are inconsistent across regex flavors, so Regex+ follows the JavaScript proposal and the flag xx option from Perl and PCRE.
👉 Show more details - Within a character class, `#` is not a special character. It matches a literal `#` and doesn't start a comment. Additionally, the only insignificant whitespace characters within character classes are space and tab. - Outside of character classes, insignificant whitespace includes all Unicode characters matched natively by `\s`. - Whitespace and comments still separate tokens, so they aren't *ignored*. This is important with e.g. `\0 1`, which matches a null character followed by a literal `1`, rather than throwing as the invalid token `\01` would. Conversely, things like `\x 0A` and `(? :` are errors because the whitespace splits a valid node into incomplete parts. - Quantifiers that follow whitespace or comments apply to the preceeding token, so `x +` is equivalent to `x+`. - Whitespace is not insignificant within most enclosed tokens like `\p{…}` and `\u{…}`. The exception is `[\q{…}]`. - Line comments with `#` do not extend into or beyond interpolation, so interpolation effectively acts as a terminating newline for the comment.
### Flag `n` Emulated flag n gives you "named capture only" mode, which turns unnamed groups `(…)` into noncapturing groups. It's always implicitly on, though it doesn't extend into interpolated `RegExp` instances (to avoid changing their meaning). Requiring the syntactically clumsy `(?:…)` where you could just use `(…)` hurts readability and encourages adding unneeded captures (which hurt efficiency and refactoring). Flag n fixes this, making your regexes more readable. Example: ```js // Doesn't capture regex`\b(ab|cd)\b` // Use standard (?…) to capture as `name` ``` > [!NOTE] > Flag n is based on .NET, C++, Oniguruma, PCRE, Perl, and XRegExp. Most of these share the flag letter n, but the option is variously called *explicit capture*, *no auto capture*, *don't capture group*, or *nosubs*. In Regex+, flag n also prevents using numbered backreferences to named groups, which follows the behavior of C++ and the default handling of Oniguruma and Ruby. Referring to named groups by number is a footgun for multiple reasons including that named groups are numbered differently across regex flavors. ## 🧩 Interpolation ### Interpolating regexes The meaning of flags (or their absense) on interpolated regexes is preserved. For example, with flag i (`ignoreCase`): ```js regex`hello-${/world/i}` // Matches 'hello-WORLD' but not 'HELLO-WORLD' regex('i')`hello-${/world/}` // Matches 'HELLO-world' but not 'HELLO-WORLD' ``` This is also true for other flags that can change how an inner regex is matched: `m` (`multiline`) and `s` (`dotAll`). > As with all interpolation in `regex`, embedded regexes are sandboxed and treated as complete units. For example, a following quantifier repeats the entire embedded regex rather than just its last token, and top-level alternation in the embedded regex will not break out to affect the meaning of the outer regex. Numbered backreferences within embedded regexes are adjusted to work within the overall pattern.
👉 Show more details - Regexes can't be interpolated inside character classes (so `` regex`[${/./}]` `` is an error) because the syntax context doesn't match. See [*Interpolating partial patterns*](#interpolating-partial-patterns) for a way to safely embed regex pattern strings (rather than `RegExp` instances) in character classes and other edge-case locations with different context. - To change the flags used by an interpolated regex, use the built-in capability of `RegExp` to copy a regex while providing new flags. Ex: `new RegExp(/./, 's')`.
### Interpolating escaped strings The `regex` tag escapes any regex special characters in interpolated strings (and values coerced to strings). This escaping is done in a context-aware way that prevents changing the meaning or error status of characters outside the interpolated string. > As with all interpolation in `regex`, escaped strings are sandboxed and treated as complete units. For example, a following quantifier repeats the entire escaped string rather than just its last character. And if interpolating into a character class, the escaped string is treated as a flag-v-mode nested union if it contains more than one character node. As a result, the `regex` tag provides an easy and safe alternative to ES2025's [`RegExp.escape`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape). ```js // Instead of RegExp.escape(str) // You can say regex`${str}`.source // Instead of new RegExp(`^(?:${RegExp.escape(str)})+$`) // You can say regex`^${str}+$` // Instead of (note: flag u or v required to avoid bugs) new RegExp(`[a-${RegExp.escape(str)}]`, 'u') // You can say regex`[a-${str}]` // Note: Since it's interpolated at the end of a character range, it throws for // safety if more than one char in `str` // Instead of (note: set subtraction) new RegExp(`[\\w--[${RegExp.escape(str)}]]`, 'v') // You can say regex`[\w--${str}]` ```
👉 Show more details Following are some examples of how context awareness can be relevant when escaping regex special characters: - A `~` is not escaped at the top level, but it must be escaped within character classes if it's immediately preceded or followed by another `~` (in or outside of the interpolation) which would turn it into a reserved UnicodeSets double punctuator. - Leading digits must be escaped if they're preceded by a numbered backreference or `\0`, else `RegExp` throws (or in Unicode-unaware mode they might turn into octal escapes). - Letters `A`-`Z` and `a`-`z` must be escaped if preceded by uncompleted token `\c`, else they'll convert what should be an error into a valid token that probably doesn't match what you expect. - You can't escape your way out of protecting against a preceding unescaped `\`. Doing nothing could turn e.g. `w` into `\w` and introduce a bug, but then escaping the first character wouldn't prevent the `\` from mangling it, and if you escaped the preceding `\` elsewhere in your code you'd change its meaning. These and other issues (including the effects of current and potential future flags like x) make it unsafe to escape special characters without context in regexes, or at least complicated to get right. Other popular regex escaping libraries don't even attempt to handle these kinds of issues. ES2025's native `RegExp.escape` provides an alternative that's also safe, but since it isn't context aware it might produce noisier outputs by overescaping.
### Interpolating partial patterns As an alternative to interpolating `RegExp` instances, you might sometimes want to interpolate partial regex patterns as strings. Some example use cases: - Adding a pattern inside a character class (not allowed for `RegExp` instances since their top-level syntax context doesn't match). - When you don't want the pattern to specify its own, local flags. - Embedding a pre-escaped string, or composing a dynamic number of escaped strings. - Dynamically adding backreferences without their corresponding captures (which wouldn't be valid as a standalone `RegExp`). - Sharing a subroutine definition group across regexes. For all of these cases, you can `import {pattern} from 'regex'` and then interpolate `pattern(str)` to avoid escaping special characters in the string or creating an intermediary `RegExp` instance. You can also use `` pattern`…` `` as a tag, as shorthand for ``pattern(String.raw`…`)``. Apart from edge cases, `pattern` just embeds the provided string or other value directly. But because it handles the edge cases, patterns can safely be interpolated anywhere in a regex without worrying about their meaning being changed by (or making unintended changes in meaning to) the surrounding expression. > As with all interpolation in `regex`, patterns are sandboxed and treated as complete units. This is relevant e.g. if a pattern is followed by a quantifier, if it contains top-level alternation, or if it's bordered by a character class range, subtraction, or intersection operator. If you want to understand the handling of interpolated patterns more deeply, let's look at some edge cases…
👉 Show some edge cases First, let's consider: ```js regex`[${pattern`^`}a]` regex`[a${pattern`^`}]` ``` Although `[^…]` is a negated character class, `^` *within* a class doesn't need to be escaped, even with the strict escaping rules of flags u and v. Both of these examples therefore match a literal `^` or `a`. The interpolated patterns don't change the meaning of the surrounding character class. However, note that the `^` is not simply escaped, as it would be with `` regex`[${'^'}a]` ``. You can see this by the fact that embedding `` pattern`^^` `` in a character class correctly leads to an "invalid set operation" error due to the use of a reserved double-punctuator. > If you wanted to dynamically choose whether to negate a character class, you could put the whole character class inside the pattern. Moving on, the following lines all throw because otherwise the embedded patterns would break out of their interpolation sandboxes and change the meaning of surrounding syntax: ```js regex`(${pattern(')')})` regex`[${pattern(']')}]` regex`[${pattern('a\\')}]]` ``` But these are fine since they don't break out: ```js regex`(${pattern('()')})` regex`[\w--${pattern('[_]')}]` regex`[${pattern('\\\\')}]` ``` Patterns can be embedded within any token scope: ```js // Not using `pattern` for values that are not escaped anyway, but the behavior // would be the same if you did regex`.{1,${6}}` regex`\p{${'Letter'}}` regex`\u{${'000A'}}` regex`(?<${'name'}>…)\k<${'name'}>` regex`[a-${'z'}]` regex`[\w--${'_'}]` ``` But again, changing the meaning or error status of characters outside the interpolation is an error: ```js // Not using `pattern` for values that are not escaped anyway /* 1.*/ regex`\u${'000A'}` /* 2.*/ regex`\u{${pattern`A}`}` /* 3.*/ regex`(${pattern`?:`}…)` ``` These last examples are all errors due to the corresponding reasons below: 1. This is an uncompleted `\u` token (which is an error) followed by the tokens `0`, `0`, `0`, `A`. That's because the interpolation doesn't happen within an enclosed `\u{…}` context. 2. The unescaped `}` within the interpolated pattern is not allowed to break out of its sandbox. 3. The group opening `(` can't be quantified with `?`. > Characters outside the interpolation such as a preceding, unescaped `\` or an escaped number also can't change the meaning of tokens inside the embedded pattern. And since interpolated values are handled as complete units, consider the following: ```js // This works fine regex`[\0-${pattern`\cZ`}]` // But this is an error since you can't create a range from 'a' to the set 'de' regex`[a-${'de'}]` // It's the same as if you tried to use /[a-[de]]/v // Instead, use either of regex`[a-${'d'}${'e'}]` regex`[a-${'d'}e]` // These are equivalent to /[a-de]/ or /[[a-d][e]]/v ```
> Implementation note: `pattern` returns an object with a custom `toString` that simply returns `String(value)`. > Patterns are not intended as an intermediate regex type. You can think of `pattern` as a directive to the `regex` tag: treat this string as a partial pattern rather than a string to be matched literally. ### Interpolation principles The above descriptions of interpolation might feel complex. But there are three simple rules that guide the behavior in all cases: 1. Interpolation never changes the meaning or error status of characters outside of the interpolation, and vice versa. 2. Interpolated values are always aware of the context of where they're embedded. 3. When relevant, interpolated values are always treated as complete units. > Examples where rule #3 is relevant: With following quantifiers, if they contain top-level alternation or numbered backreferences, or if they're placed in a character class range or set operation. ### Interpolation contexts
Context Example String / coerced Pattern RegExp
Default regex`${'^.+'}` • Sandboxed
• Atomized
• Escaped
• Sandboxed
• Atomized
• Sandboxed
• Atomized
• Backrefs adjusted
• Flags localized
Character class: […], [^…], [[…]], etc. regex`[${'a-z'}]` • Sandboxed
• Atomized
• Escaped
• Sandboxed
• Atomized
Error
Interval quantifier: {…} regex`.{1,${5}}` • Sandboxed
• Escaped
• Sandboxed Error
Enclosed token: \p{…}, \P{…}, \u{…}, [\q{…}] regex`\u{${'A0'}}`
Group name: (?<…>), \k<…>, \g<…> regex`…\k<${'a'}>`
👉 Show more details - *Atomized* means that the value is treated as a complete unit; it isn't related to the *atomic groups* feature. For example, in default context, `${foo}*` matches any number of `foo`; not just its last token. In character class context, subtraction and intersection operators apply to the entire atom. - *Sandboxed* means that the value can't change the meaning or error status of characters outside of the interpolation, and vice versa. - Character classes have a subcontext on the borders of ranges. Only one character node (ex: `a` or `\u0061`) can be interpolated at such positions. - Numbers (not strings) interpolated into an enclosed `\u{…}` context are converted to hexadecimal. - The implementation details vary for how `regex` accomplishes sandboxing and atomization, based on the details of the specific pattern. But the concepts should always hold up.
## 🔩 Options Typically, the `regex` tag is used as follows: ```js import {regex} from 'regex'; // Without flags const re1 = regex`…`; // With flags const re2 = regex('gi')`…`; ``` However, several options are available that can be provided via an options object in place of the flags argument. These options aren't usually needed, and are primarily intended for use when Regex+ is extended or wrapped by other tools. Following are the available options and their default values: ```js regex({ flags: '', subclass: false, plugins: [], unicodeSetsPlugin: , disable: { x: false, n: false, v: false, atomic: false, subroutines: false, }, force: { v: false, }, })`…`; ```
👉 Show details for each option **`flags`** — For providing flags when using an options object. **`subclass`** — When `true`, the resulting regex is constructed using a `RegExp` subclass that avoids edge case issues with numbered backreferences. Without subclassing, submatches referenced *by number* from outside of the regex (ex: in replacement strings) might reference the wrong values, because `regex`'s emulation of extended syntax might add unnamed captures to generated regex source that can affect group numbering. Context: `regex`'s implicit flag n ("named capture only" mode) means that all captures have names, so normally there's no need to reference submatches by number. In fact, flag n *prevents* you from doing so within the regex. And even in edge cases (such as when interpolating `RegExp` instances with numbered backreferences, or when flag n is explicitly disabled), any numbered backreferences within the regex are automatically adjusted to work correctly. However, issues can arise if you reference submatches by number (instead of their group names) from outside of the regex. Setting `subclass` to `true` resolves this, since the subclass knows about captures that are added only to emulate extended syntax, and automatically hides them from match results in all contexts. > This option isn't enabled by default because it would prevent Regex+'s Babel plugin from emitting regex literals. It also has a tiny performance cost, and is rarely needed. The primary use case is tools that wrap `regex` with flag n disabled. **`plugins`** — An array of functions. Plugins are called in order, after applying emulated flags and interpolation, but before the built-in plugins for extended syntax. This means that plugins can output extended syntax like atomic groups and subroutines. Plugins are expected to return an object with a string property `pattern`, and are called with two arguments: 1. The pattern, as processed so far by preceding plugins, etc. 2. An object with a `flags` property that includes the native flags that will be used by the regex. The final result after running all plugins is provided to the `RegExp` constructor. > The tiny [regex-utilities](https://github.com/slevithan/regex-utilities) library is intended for use in plugins, and can make it easier to work with regex syntax. **`unicodeSetsPlugin`** — A plugin function that's used when flag v isn't supported natively, or when implicit flag v is disabled. The default value is a built-in function that provides basic backward compatibility by applying flag v's escaping rules and throwing on use of v-only syntax (nested character classes, set subtraction/intersection, etc.). - Setting `unicodeSetsPlugin` to `null` prevents `regex` from applying flag v's escaping rules. This can be useful in combination with option `disable: {v: true}` for tools that want to use `regex`'s extended syntax and/or flags but need to accept input with flag u's escaping rules. - Regex+ is not primarily a backward compatibility library, so in order to remain lightweight, it doesn't transpile flag v's new features out of the box. By replacing the default function, you can add backward compatible support for these features. See also: [*Compatibility*](#-compatibility). - This plugin runs last, which means it's possible to wrap an existing library (ex: [regexpu-core](https://github.com/mathiasbynens/regexpu-core), used by Babel to [transpile v](https://babel.dev/docs/babel-plugin-transform-unicode-sets-regex)) without the library needing to understand `regex`'s extended syntax. **`disable`** — A set of options that can be individually disabled by setting their values to `true`. - **`x`** — Disables implicit, emulated [flag x](#flag-x). - **`n`** — Disables implicit, emulated [flag n](#flag-n). Note that, although it's safe to use unnamed captures and numbered backreferences within a regex when flag n is disabled, referencing submatches by number from *outside* a regex (ex: in replacement strings) can result in incorrect values because extended syntax might add additional unnamed captures to generated regex source. It's therefore recommended to enable the `subclass` option when disabling `n`. - **`v`** — Disables implicit [flag v](#flag-v) even when it's supported natively, resulting in flag u being added instead (in combination with the `unicodeSetsPlugin`). - **`atomic`** — Disables [atomic groups](#atomic-groups) and [possessive quantifiers](#possessive-quantifiers), resulting in a syntax error if they're used. - **`subroutines`** — Disables [subroutines](#subroutines) and [definition groups](#subroutine-definition-groups), resulting in a syntax error if they're used. **`force`** — Options that, if set to `true`, override default settings (as well as options set on the `disable` object). - **`v`** — Forces the use of flag v even when it's not supported natively (resulting in an error).
### Returning a string Function `rewrite` returns an object with properties `pattern` and `flags` as strings, rather than returning a `RegExp` instance. This can be useful when you want to apply postprocessing to the output. ```js import {rewrite} from 'regex'; rewrite('^ (ab | cd)', {flags: 'm'}); // → {pattern: '^(?:ab|cd)', flags: 'mv'} ``` `rewrite` shares all of `regex`'s options (described above) except `subclass`. Providing the resulting `pattern` and `flags` to the `RegExp` constructor produces the same result as using the `regex` tag. > Since `rewrite` isn't a template tag, it doesn't provide context-aware interpolation and doesn't automatically handle input as a raw string (you need to escape your backslashes). ## ⚡ Performance The `regex` tag transpiles its input to native `RegExp` instances, so they operate with native performance. The use of `regex` can also be transpiled away via a [Babel plugin](https://github.com/slevithan/babel-plugin-transform-regex), avoiding the tiny overhead of transpiling at runtime. For regexes that rely on or have the potential to trigger heavy backtracking, you can dramatically improve beyond native performance via `regex`'s [atomic groups](#atomic-groups) and [possessive quantifiers](#possessive-quantifiers). ## 🪶 Compatibility Regex+ is supported starting with Node.js 14, 2020-era browsers (except Safari, supported as of v16.4 from 2023-03-27), and React Native 0.74.6/0.75.1.
Show more details Regex+ uses flag v (`unicodeSets`) when it's supported natively. Flag v is [supported](https://caniuse.com/mdn-javascript_builtins_regexp_unicodesets) by Node.js 20 and 2023-era browsers. When v isn't available, flag u is automatically used instead while enforcing v's escaping rules. The following edge cases rely on modern JavaScript features: - To ensure atomization, nested character classes (which require flag v) are used when interpolating more than one token at a time *inside character classes*. A descriptive error is thrown when this isn't supported, which you can avoid by not interpolating multi-token patterns/strings into character classes. There's also an easy workaround: put the whole character class in a `pattern` and interpolate a string into the pattern. - Using an interpolated `RegExp` instance with a different value for flag i than its outer regex relies on regex [modifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Modifier). A descriptive error is thrown in environments without native support, which you can avoid by aligning the use of flag i on inner and outer regexes. Local-only application of other flags doesn't rely on this feature.
## 🙋 FAQ
How are you comparing regex flavors? The claim that JavaScript with the Regex+ library is among the best regex flavors is based on a holistic view. Following are some of the aspects considered: 1. **Performance:** An important aspect, but not the main one since mature regex implementations are generally pretty fast. JavaScript is strong on regex performance (at least considering V8's Irregexp engine and JavaScriptCore), but it uses a backtracking engine that's missing any syntax for backtracking control — a major limitation that makes ReDoS vulnerability more common. Regex+ adds atomic groups and possessive quantifiers to native JavaScript regexes, which are solutions to this problem and therefore can dramatically improve performance. 2. **Support for advanced features** that handle common or important use cases: Here, JavaScript stepped up its game with ES2018 and ES2024. JavaScript is now best in class for some features like lookbehind (with it's infinite-length support) and Unicode properties (with multicharacter "properties of strings", set subtraction and intersection, and script extensions). These features are either not supported or not as robust in many other flavors. 3. **Ability to write readable and maintainable patterns:** Here, native JavaScript has long been the worst of the major flavors, since it lacks the x (extended) flag that allows insignificant whitespace and comments. Regex+ not only adds x (and turns it on by default), but it additionally adds regex subroutines and subroutine definition groups (matched only by PCRE and Perl, although some other flavors have inferior versions) which enable powerful subpattern composition and reuse. And it includes context-aware interpolation of `RegExp` instances, escaped strings, and partial patterns, all of which can also help with composition and readability.
Can regex be called as a function instead of using it with backticks? Yes, but you might not need to. If you want to use `regex` with dynamic input, you can interpolate a `pattern` call as the full expression. For example: ```js import {regex, pattern} from 'regex'; const str = '…'; const re = regex('g')`${pattern(str)}`; ``` If you prefer to call `regex` as a function (rather than using it as a template tag), that requires explicitly providing the raw template strings array, as follows: ```js import {regex} from 'regex'; const str = '…'; const re = regex('g')({raw: [str]}); ```
Why are flags added via regex('g')`…` rather than regex`/…/g`? The alternative syntax isn't used because it has several disadvantages: - It doesn't match the `RegExp` constructor's syntax. - It doesn't match regex literal syntax either, since there are no multiline regex literals (and they're not planned for the future), plus regex literals don't allow unescaped `/` outside of character classes. - Flags-up-front can be more readable, especially with long or multiline regexes that make flags easy to miss when they're at the end. And since some flags change the meaning of regex syntax, it can help to read them first. - It would most likely be incompatible if a standardized regex template tag was added to the JavaScript language in the future. To date, TC39 discussions about a standardized tag for regexes have not favored the `` `/…/g` `` format.
## 🏷️ About Regex+ was created by [Steven Levithan](https://github.com/slevithan) and [contributors](https://github.com/slevithan/regex/graphs/contributors). Inspiration included [PCRE](https://github.com/PCRE2Project/pcre2), [XRegExp](https://github.com/slevithan/xregexp), and [regexp-make-js](https://github.com/mikesamuel/regexp-make-js). ### Sponsors and backers [](https://github.com/roboflow) ### Past sponsors [](https://github.com/antfu) [](https://github.com/brc-dd) If you want to support this project, I'd love your help by contributing improvements, sharing it with others, or [sponsoring](https://github.com/sponsors/slevithan) ongoing development. © 2024–present. MIT License. [npm-version-src]: https://img.shields.io/npm/v/regex?color=78C372 [npm-version-href]: https://npmjs.com/package/regex [npm-downloads-src]: https://img.shields.io/npm/dm/regex?color=78C372 [npm-downloads-href]: https://npmjs.com/package/regex [bundle-src]: https://img.shields.io/bundlejs/size/regex?color=78C372&label=minzip [bundle-href]: https://bundlejs.com/?q=regex&treeshake=[*] --- END ORIGINAL BYTES --- ================================================================ regex-recursion@6.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz Locked integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3d19c2b6246b3072547af2bd05e6b4c09bd3d15955590f1f1e1d20382c919a49; bytes: 1072 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2025 Steven Levithan 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. --- END ORIGINAL BYTES --- ================================================================ regex-utilities@2.3.0 Declared package license: MIT Published archive: https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz Locked integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 8ca7af4f6c753e5ab8388e1078d94ce4650723bba4b0d4dfe562fbd45fb4a4e6; bytes: 1072 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024 Steven Levithan 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. --- END ORIGINAL BYTES --- ================================================================ resolve-pkg-maps@1.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz Locked integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 10c904a49af44409b073532e45a53fd4df19bdf26eaf9afc7917258c2b354382; bytes: 1089 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Hiroki Osame 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. --- END ORIGINAL BYTES --- ================================================================ retext-smartypants@6.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/retext-smartypants/-/retext-smartypants-6.2.0.tgz Locked integrity: sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 0ace22a189b98337e23eeac826363879e073b3c893173c963ca4d3771fab9f02; bytes: 6498 --- BEGIN ORIGINAL BYTES --- # retext-smartypants [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] **[retext][]** plugin to apply [SmartyPants][]. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`unified().use(retextSmartypants[, options])`](#unifieduseretextsmartypants-options) * [`Options`](#options) * [`QuoteCharacterMap`](#quotecharactermap) * [Types](#types) * [Compatibility](#compatibility) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a [unified][] ([retext][]) plugin to apply [SmartyPants][] to the syntax tree. It replaces straight/typewriter punctuation marks and symbols with smart/curly marks and symbols. ## When should I use this? You can use this plugin any time there straight marks and symbols in prose, but you want to use smart ones instead. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install retext-smartypants ``` In Deno with [`esm.sh`][esmsh]: ```js import retextSmartypants from 'https://esm.sh/retext-smartypants@6' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {retext} from 'retext' import retextSmartypants from 'retext-smartypants' const file = await retext() .use(retextSmartypants) .process('He said, "A \'simple\' english sentence. . ."') console.log(String(file)) ``` Yields: ```txt He said, “A ‘simple’ english sentence…” ``` ## API This package exports no identifiers. The default export is [`retextSmartypants`][api-retext-smartypants]. ### `unified().use(retextSmartypants[, options])` Replace straight punctuation marks with curly ones. ###### Parameters * `options` ([`Options`][api-options], optional) — configuration ###### Returns Transform ([`Transformer`][unified-transformer]). ### `Options` Configuration (TypeScript type). ###### Fields * `backticks` (`boolean` or `'all'`, default: `true`) — transform backticks; when `true`, turns double backticks into an opening double quote and double straight single quotes into a closing double quote; when `'all'`, does that and turns single backticks into an opening single quote and a straight single quotes into a closing single smart quote; `quotes: false` must be used with `backticks: 'all'` * `closingQuotes` ([`QuoteCharacterMap`][api-quote-character-map], default: `{double: '”', single: '’'}`) — closing quotes to use * `dashes` (`'inverted'` or `'oldschool'` or `boolean`, default: `true`) — transform dashes; when `true`, turns two dashes into an em dash character; when `'oldschool'`, turns three dashes into an em dash and two into an en dash; when `'inverted'`, turns three dashes into an en dash and two into an em dash * `ellipses` (`'spaced'` or `'unspaced'` or `boolean`, default: `true`) — transform triple dots; when `'spaced'`, turns triple dots with spaces into ellipses; when `'unspaced'`, turns triple dots without spaces into ellipses; when `true`, turns triple dots with or without spaces into ellipses * `openingQuotes` ([`QuoteCharacterMap`][api-quote-character-map], default: `{double: '“', single: '‘'}`) — opening quotes to use * `quotes` (`boolean`, default: `true`) — transform straight quotes into smart quotes ### `QuoteCharacterMap` Quote characters (TypeScript type). ###### Fields * `double` (`string`) — character to use for double quotes * `single` (`string`) — character to use for single quotes ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`Options`][api-options] and [`QuoteCharacterMap`][api-quote-character-map]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `retext-smartypants@^6`, compatible with Node.js 16. ## Contribute See [`contributing.md`][contributing] in [`retextjs/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/retextjs/retext-smartypants/workflows/main/badge.svg [build]: https://github.com/retextjs/retext-smartypants/actions [coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext-smartypants.svg [coverage]: https://codecov.io/github/retextjs/retext-smartypants [downloads-badge]: https://img.shields.io/npm/dm/retext-smartypants.svg [downloads]: https://www.npmjs.com/package/retext-smartypants [size-badge]: https://img.shields.io/bundlejs/size/retext-smartypants [size]: https://bundlejs.com/?q=retext-smartypants [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/retextjs/retext/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [health]: https://github.com/retextjs/.github [contributing]: https://github.com/retextjs/.github/blob/main/contributing.md [support]: https://github.com/retextjs/.github/blob/main/support.md [coc]: https://github.com/retextjs/.github/blob/main/code-of-conduct.md [license]: license [author]: https://wooorm.com [smartypants]: https://daringfireball.net/projects/smartypants [retext]: https://github.com/retextjs/retext [unified]: https://github.com/unifiedjs/unified [unified-transformer]: https://github.com/unifiedjs/unified#transformer [api-options]: #options [api-quote-character-map]: #quotecharactermap [api-retext-smartypants]: #unifieduseretextsmartypants-options --- END ORIGINAL BYTES --- ================================================================ rolldown@1.2.19 Declared package license: MIT Published archive: https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz Locked integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 23ecfff35a5a2e80d92142f75228912c3b1abc4b5a8337a821ff4397e2f9f734; bytes: 1302 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024-present VoidZero Inc. & Contributors 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. end of terms and conditions The licenses of externally maintained libraries from which parts of the Software is derived are listed [here](https://github.com/rolldown/rolldown/blob/main/THIRD-PARTY-LICENSE). --- END ORIGINAL BYTES --- --- Original license: package/THIRD-PARTY-LICENSE SHA-256: a877291d800ed43692f3f9ae09d8e01cc6f7293ad39d43896059c188ffbb8b7c; bytes: 2209 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright (c) 2017 [these people](https://github.com/rollup/rollup/graphs/contributors) 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. --- MIT License Copyright (c) 2020 Evan Wallace 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. --- END ORIGINAL BYTES --- ================================================================ satori@0.33.5 Declared package license: MPL-2.0 Published archive: https://registry.npmjs.org/satori/-/satori-0.33.5.tgz Locked integrity: sha512-PNW6ktrQ8SM6kk7u4aOuTkkUewkzyTOrj+QeEzXSsnNMAdff4ire9CAqIz8+4C3rCiBtK8QTELv52AZEd1PbRw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 1f256ecad192880510e84ad60474eab7589218784b9a50bc7ceee34c2b91f1d5; bytes: 16725 --- BEGIN ORIGINAL BYTES --- Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. --- END ORIGINAL BYTES --- ================================================================ satteri@0.10.5 Declared package license: MIT Published archive: https://registry.npmjs.org/satteri/-/satteri-0.10.5.tgz Locked integrity: sha512-Ao1LKpAEa9Wdg0otgbVKViZHEq9ebdXe4DMrp3s9vQAU0HNIuHnFEuMuOcm0ZIXyV0Yzxj91NvhLpvXZJO/5ZQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 902c04ca47795eb6e9b2a2f178a9d9e62f5330988a8d6e1818ee33aeb0f426c1; bytes: 1063 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026 Bruits 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. --- END ORIGINAL BYTES --- ================================================================ sax@1.6.1 Declared package license: BlueOak-1.0.0 Published archive: https://registry.npmjs.org/sax/-/sax-1.6.1.tgz Locked integrity: sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 8a1af140fdfbf5afd3df27f7e662f989c5b963a300020dfafce42033cae9e004; bytes: 1552 --- BEGIN ORIGINAL BYTES --- # Blue Oak Model License Version 1.0.0 ## Purpose This license gives everyone as much permission to work with this software as possible, while protecting contributors from liability. ## Acceptance In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow. ## Copyright Each contributor licenses you to do everything with this software that would otherwise infringe that contributor's copyright in it. ## Notices You must ensure that everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license or a link to . ## Excuse If anyone notifies you in writing that you have not complied with [Notices](#notices), you can keep your license by taking all practical steps to comply within 30 days after the notice. If you do not do so, your license ends immediately. ## Patent Each contributor licenses you to do everything with this software that would otherwise infringe any patent claims they can license or become able to license. ## Reliability No contributor can revoke this license. ## No Liability ***As far as the law allows, this software comes as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim.*** --- END ORIGINAL BYTES --- ================================================================ scheduler@0.28.0 Declared package license: MIT Published archive: https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz Locked integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93; bytes: 1088 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Meta Platforms, Inc. and affiliates. 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. --- END ORIGINAL BYTES --- ================================================================ semver@7.8.5 Declared package license: ISC Published archive: https://registry.npmjs.org/semver/-/semver-7.8.5.tgz Locked integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4ec3d4c66cd87f5c8d8ad911b10f99bf27cb00cdfcff82621956e379186b016b; bytes: 765 --- BEGIN ORIGINAL BYTES --- The ISC License Copyright (c) Isaac Z. Schlueter and Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: f1a789dcec285150be24db2ea04dd3175031554fa9834ec92fab83fb5e025a57; bytes: 25669 --- BEGIN ORIGINAL BYTES --- semver(1) -- The semantic versioner for npm =========================================== ## Install ```bash npm install semver ```` ## Usage As a node module: ```js const semver = require('semver') semver.valid('1.2.3') // '1.2.3' semver.valid('a.b.c') // null semver.clean(' =v1.2.3 ') // '1.2.3' semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true semver.gt('1.2.3', '9.8.7') // false semver.lt('1.2.3', '9.8.7') // true semver.minVersion('>=1.0.0') // '1.0.0' semver.valid(semver.coerce('v2')) // '2.0.0' semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' ``` You can also just load the module for the function that you care about if you'd like to minimize your footprint. ```js // load the whole API at once in a single object const semver = require('semver') // or just load the bits you need // all of them listed here, just pick and choose what you want // classes const SemVer = require('semver/classes/semver') const Comparator = require('semver/classes/comparator') const Range = require('semver/classes/range') // functions for working with versions const semverParse = require('semver/functions/parse') const semverValid = require('semver/functions/valid') const semverClean = require('semver/functions/clean') const semverInc = require('semver/functions/inc') const semverDiff = require('semver/functions/diff') const semverMajor = require('semver/functions/major') const semverMinor = require('semver/functions/minor') const semverPatch = require('semver/functions/patch') const semverPrerelease = require('semver/functions/prerelease') const semverCompare = require('semver/functions/compare') const semverRcompare = require('semver/functions/rcompare') const semverCompareLoose = require('semver/functions/compare-loose') const semverCompareBuild = require('semver/functions/compare-build') const semverSort = require('semver/functions/sort') const semverRsort = require('semver/functions/rsort') const semverTruncate = require('semver/functions/truncate') // low-level comparators between versions const semverGt = require('semver/functions/gt') const semverLt = require('semver/functions/lt') const semverEq = require('semver/functions/eq') const semverNeq = require('semver/functions/neq') const semverGte = require('semver/functions/gte') const semverLte = require('semver/functions/lte') const semverCmp = require('semver/functions/cmp') const semverCoerce = require('semver/functions/coerce') // working with ranges const semverSatisfies = require('semver/functions/satisfies') const semverMaxSatisfying = require('semver/ranges/max-satisfying') const semverMinSatisfying = require('semver/ranges/min-satisfying') const semverToComparators = require('semver/ranges/to-comparators') const semverMinVersion = require('semver/ranges/min-version') const semverValidRange = require('semver/ranges/valid') const semverOutside = require('semver/ranges/outside') const semverGtr = require('semver/ranges/gtr') const semverLtr = require('semver/ranges/ltr') const semverIntersects = require('semver/ranges/intersects') const semverSimplifyRange = require('semver/ranges/simplify') const semverRangeSubset = require('semver/ranges/subset') ``` As a command-line utility: ``` $ semver -h A JavaScript implementation of the https://semver.org/ specification Copyright Isaac Z. Schlueter Usage: semver [options] [ [...]] Prints valid versions sorted by SemVer precedence Options: -r --range Print versions that match the specified range. -i --increment [] Increment a version by the specified level. Level can be one of: major, minor, patch, premajor, preminor, prepatch, prerelease, or release. Default level is 'patch'. Only one version may be specified. --preid Identifier to be used to prefix premajor, preminor, prepatch or prerelease version increments. -l --loose Interpret versions and ranges loosely -n <0|1|false> Base number for prerelease identifier (default: 0). Use false to omit the number altogether. -p --include-prerelease Always include prerelease versions in range matching -c --coerce Coerce a string into SemVer if possible (does not imply --loose) --rtl Coerce version strings right to left --ltr Coerce version strings left to right (default) Program exits successfully if any valid version satisfies all supplied ranges, and prints all satisfying versions. If no satisfying versions are found, then exits failure. Versions are printed in ascending order, so supplying multiple versions to the utility will just sort them. ``` ## Versions A "version" is described by the `v2.0.0` specification found at . A leading `"="` or `"v"` character is stripped off and ignored. Support for stripping a leading "v" is kept for compatibility with `v1.0.0` of the SemVer specification but should not be used anymore. ## Ranges A `version range` is a set of `comparators` that specify versions that satisfy the range. A `comparator` is composed of an `operator` and a `version`. The set of primitive `operators` is: * `<` Less than * `<=` Less than or equal to * `>` Greater than * `>=` Greater than or equal to * `=` Equal. If no operator is specified, then equality is assumed, so this operator is optional but MAY be included. For example, the comparator `>=1.2.7` would match the versions `1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` or `1.1.0`. The comparator `>1` is equivalent to `>=2.0.0` and would match the versions `2.0.0` and `3.1.0`, but not the versions `1.0.1` or `1.1.0`. Comparators can be joined by whitespace to form a `comparator set`, which is satisfied by the **intersection** of all of the comparators it includes. A range is composed of one or more comparator sets, joined by `||`. A version matches a range if and only if every comparator in at least one of the `||`-separated comparator sets is satisfied by the version. For example, the range `>=1.2.7 <1.3.0` would match the versions `1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, or `1.1.0`. The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, `1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. ### Prerelease Tags If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then it will only be allowed to satisfy comparator sets if at least one comparator with the same `[major, minor, patch]` tuple also has a prerelease tag. For example, the range `>1.2.3-alpha.3` would be allowed to match the version `1.2.3-alpha.7`, but it would *not* be satisfied by `3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater than" `1.2.3-alpha.3` according to the SemVer sort rules. The version range only accepts prerelease tags on the `1.2.3` version. Version `3.4.5` *would* satisfy the range because it does not have a prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. The purpose of this behavior is twofold. First, prerelease versions frequently are updated very quickly, and contain many breaking changes that are (by the author's design) not yet fit for public consumption. Therefore, by default, they are excluded from range-matching semantics. Second, a user who has opted into using a prerelease version has indicated the intent to use *that specific* set of alpha/beta/rc versions. By including a prerelease tag in the range, the user is indicating that they are aware of the risk. However, it is still not appropriate to assume that they have opted into taking a similar risk on the *next* set of prerelease versions. Note that this behavior can be suppressed (treating all prerelease versions as if they were normal versions, for range-matching) by setting the `includePrerelease` flag on the options object to any [functions](https://github.com/npm/node-semver#functions) that do range matching. #### Prerelease Identifiers The method `.inc` takes an additional `identifier` string argument that will append the value of the string as a prerelease identifier: ```javascript semver.inc('1.2.3', 'prerelease', 'beta') // '1.2.4-beta.0' ``` command-line example: ```bash $ semver 1.2.3 -i prerelease --preid beta 1.2.4-beta.0 ``` Which then can be used to increment further: ```bash $ semver 1.2.4-beta.0 -i prerelease 1.2.4-beta.1 ``` To get out of the prerelease phase, use the `release` option: ```bash $ semver 1.2.4-beta.1 -i release 1.2.4 ``` #### Prerelease Identifier Base The method `.inc` takes an optional parameter 'identifierBase' string that will let you let your prerelease number as zero-based or one-based. Set to `false` to omit the prerelease number altogether. If you do not specify this parameter, it will default to zero-based. ```javascript semver.inc('1.2.3', 'prerelease', 'beta', '1') // '1.2.4-beta.1' ``` ```javascript semver.inc('1.2.3', 'prerelease', 'beta', false) // '1.2.4-beta' ``` command-line example: ```bash $ semver 1.2.3 -i prerelease --preid beta -n 1 1.2.4-beta.1 ``` ```bash $ semver 1.2.3 -i prerelease --preid beta -n false 1.2.4-beta ``` ### Advanced Range Syntax Advanced range syntax desugars to primitive comparators in deterministic ways. Advanced ranges may be combined in the same way as primitive comparators using white space or `||`. #### Hyphen Ranges `X.Y.Z - A.B.C` Specifies an inclusive set. * `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` If a partial version is provided as the first version in the inclusive range, then the missing pieces are replaced with zeroes. * `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` If a partial version is provided as the second version in the inclusive range, then all versions that start with the supplied parts of the tuple are accepted, but nothing that would be greater than the provided tuple parts. * `1.2.3 - 2.3` := `>=1.2.3 <2.4.0-0` * `1.2.3 - 2` := `>=1.2.3 <3.0.0-0` #### X-Ranges `1.2.x` `1.X` `1.2.*` `*` Any of `X`, `x`, or `*` may be used to "stand in" for one of the numeric values in the `[major, minor, patch]` tuple. * `*` := `>=0.0.0` (Any non-prerelease version satisfies, unless `includePrerelease` is specified, in which case any version at all satisfies) * `1.x` := `>=1.0.0 <2.0.0-0` (Matching major version) * `1.2.x` := `>=1.2.0 <1.3.0-0` (Matching major and minor versions) A partial version range is treated as an X-Range, so the special character is in fact optional. * `""` (empty string) := `*` := `>=0.0.0` * `1` := `1.x.x` := `>=1.0.0 <2.0.0-0` * `1.2` := `1.2.x` := `>=1.2.0 <1.3.0-0` #### Tilde Ranges `~1.2.3` `~1.2` `~1` Allows patch-level changes if a minor version is specified on the comparator. Allows minor-level changes if not. * `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0-0` * `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0-0` (Same as `1.2.x`) * `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0-0` (Same as `1.x`) * `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0-0` * `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0-0` (Same as `0.2.x`) * `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0-0` (Same as `0.x`) * `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0-0` Note that prereleases in the `1.2.3` version will be allowed, if they are greater than or equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not, because it is a prerelease of a different `[major, minor, patch]` tuple. #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` Allows changes that do not modify the left-most non-zero element in the `[major, minor, patch]` tuple. In other words, this allows patch and minor updates for versions `1.0.0` and above, patch updates for versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. Many authors treat a `0.x` version as if the `x` were the major "breaking-change" indicator. Caret ranges are ideal when an author may make breaking changes between `0.2.4` and `0.3.0` releases, which is a common practice. However, it presumes that there will *not* be breaking changes between `0.2.4` and `0.2.5`. It allows for changes that are presumed to be additive (but non-breaking), according to commonly observed practices. * `^1.2.3` := `>=1.2.3 <2.0.0-0` * `^0.2.3` := `>=0.2.3 <0.3.0-0` * `^0.0.3` := `>=0.0.3 <0.0.4-0` * `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0-0` Note that prereleases in the `1.2.3` version will be allowed, if they are greater than or equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not, because it is a prerelease of a different `[major, minor, patch]` tuple. * `^0.0.3-beta` := `>=0.0.3-beta <0.0.4-0` Note that prereleases in the `0.0.3` version *only* will be allowed, if they are greater than or equal to `beta`. So, `0.0.3-pr.2` would be allowed. When parsing caret ranges, a missing `patch` value desugars to the number `0`, but will allow flexibility within that value, even if the major and minor versions are both `0`. * `^1.2.x` := `>=1.2.0 <2.0.0-0` * `^0.0.x` := `>=0.0.0 <0.1.0-0` * `^0.0` := `>=0.0.0 <0.1.0-0` A missing `minor` and `patch` values will desugar to zero, but also allow flexibility within those values, even if the major version is zero. * `^1.x` := `>=1.0.0 <2.0.0-0` * `^0.x` := `>=0.0.0 <1.0.0-0` ### Range Grammar Putting all this together, here is a Backus-Naur grammar for ranges, for the benefit of parser authors: ```bnf range-set ::= range ( logical-or range ) * logical-or ::= ( ' ' ) * '||' ( ' ' ) * range ::= hyphen | simple ( ' ' simple ) * | '' hyphen ::= partial ' - ' partial simple ::= primitive | partial | tilde | caret primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? xr ::= 'x' | 'X' | '*' | nr nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * tilde ::= '~' partial caret ::= '^' partial qualifier ::= ( '-' pre )? ( '+' build )? pre ::= prepart ( '.' prepart ) * prepart ::= nr | alphanumid build ::= buildid ( '.' buildid ) * alphanumid ::= ( ['0'-'9'] ) * [-A-Za-z] [-0-9A-Za-z] * buildid ::= [-0-9A-Za-z]+ ``` Note: Prerelease identifiers (`pre`) use `nr` for numeric parts, which disallows leading zeros (e.g., `1.2.3-00` is invalid). Build metadata identifiers (`build`) allow any alphanumeric string including leading zeros (e.g., `1.2.3+00` is valid). This matches the [SemVer 2.0.0 specification](https://semver.org/#spec-item-9). ## Functions All methods and classes take a final `options` object argument. All options in this object are `false` by default. The options supported are: - `loose`: Be more forgiving about not-quite-valid semver strings. (Any resulting output will always be 100% strict compliant, of course.) For backwards compatibility reasons, if the `options` argument is a boolean value instead of an object, it is interpreted to be the `loose` param. - `includePrerelease`: Set to suppress the [default behavior](https://github.com/npm/node-semver#prerelease-tags) of excluding prerelease tagged versions from ranges unless they are explicitly opted into. Strict-mode Comparators and Ranges will be strict about the SemVer strings that they parse. * `valid(v)`: Return the parsed version, or null if it's not valid. * `inc(v, releaseType, options, identifier, identifierBase)`: Return the version incremented by the release type (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, `prerelease`, or `release`), or null if it's not valid * `premajor` in one call will bump the version up to the next major version and down to a prerelease of that major version. `preminor`, and `prepatch` work the same way. * If called from a non-prerelease version, `prerelease` will work the same as `prepatch`. It increments the patch version and then makes a prerelease. If the input version is already a prerelease it simply increments it. * `release` will remove any prerelease part of the version. * `identifier` can be used to prefix `premajor`, `preminor`, `prepatch`, or `prerelease` version increments. `identifierBase` is the base to be used for the `prerelease` identifier. * `prerelease(v)`: Returns an array of prerelease components, or null if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` * `major(v)`: Return the major version number. * `minor(v)`: Return the minor version number. * `patch(v)`: Return the patch version number. * `intersects(r1, r2, loose)`: Return true if the two supplied ranges or comparators intersect. * `parse(v)`: Attempt to parse a string as a semantic version, returning either a `SemVer` object or `null`. * `truncate(v, releaseType)`: Return the version with components _lower_ than `releaseType` dropped off, e.g.: * `major` removes build & prerelease info and sets minor & patch to 0. * `minor` removes build & prerelease info, and sets patch to 0 * `patch` removes build & prerelease info * All prerelease types remove build info only ### Comparison * `gt(v1, v2)`: `v1 > v2` * `gte(v1, v2)`: `v1 >= v2` * `lt(v1, v2)`: `v1 < v2` * `lte(v1, v2)`: `v1 <= v2` * `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, even if they're not the same string. You already know how to compare strings. * `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. * `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call the corresponding function above. `"==="` and `"!=="` do simple string comparison, but are included for completeness. Throws if an invalid comparison string is provided. * `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. * `rcompare(v1, v2)`: The reverse of `compare`. Sorts an array of versions in descending order when passed to `Array.sort()`. * `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions are equal. Sorts in ascending order if passed to `Array.sort()`. * `compareLoose(v1, v2)`: Short for `compare(v1, v2, { loose: true })`. * `diff(v1, v2)`: Returns the difference between two versions by the release type (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), or null if the versions are the same. ### Sorting * `sort(versions)`: Returns a sorted array of versions based on the `compareBuild` function. * `rsort(versions)`: The reverse of `sort`. Returns an array of versions based on the `compareBuild` function in descending order. ### Comparators * `intersects(comparator)`: Return true if the comparators intersect ### Ranges * `validRange(range)`: Return the valid range or null if it's not valid. * `satisfies(version, range)`: Return true if the version satisfies the range. * `maxSatisfying(versions, range)`: Return the highest version in the list that satisfies the range, or `null` if none of them do. * `minSatisfying(versions, range)`: Return the lowest version in the list that satisfies the range, or `null` if none of them do. * `minVersion(range)`: Return the lowest version that can match the given range. * `gtr(version, range)`: Return `true` if the version is greater than all the versions possible in the range. * `ltr(version, range)`: Return `true` if the version is less than all the versions possible in the range. * `outside(version, range, hilo)`: Return true if the version is outside the bounds of the range in either the high or low direction. The `hilo` argument must be either the string `'>'` or `'<'`. (This is the function called by `gtr` and `ltr`.) * `intersects(range)`: Return true if any of the range comparators intersect. * `simplifyRange(versions, range)`: Return a "simplified" range that matches the same items in the `versions` list as the range specified. Note that it does *not* guarantee that it would match the same versions in all cases, only for the set of versions provided. This is useful when generating ranges by joining together multiple versions with `||` programmatically, to provide the user with something a bit more ergonomic. If the provided range is shorter in string-length than the generated range, then that is returned. * `subset(subRange, superRange)`: Return `true` if the `subRange` range is entirely contained by the `superRange` range. Note that, since ranges may be non-contiguous, a version might not be greater than a range, less than a range, *or* satisfy a range! For example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` until `2.0.0`, so version `1.2.10` would not be greater than the range (because `2.0.1` satisfies, which is higher), nor less than the range (since `1.2.8` satisfies, which is lower), and it also does not satisfy the range. If you want to know if a version satisfies or does not satisfy a range, use the `satisfies(version, range)` function. ### Coercion * `coerce(version, options)`: Coerces a string to semver if possible This aims to provide a very forgiving translation of a non-semver string to semver. It looks for the first digit in a string and consumes all remaining characters which satisfy at least a partial semver (e.g., `1`, `1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`). Only text which lacks digits will fail coercion (`version one` is not valid). The maximum length for any semver component considered for coercion is 16 characters; longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value components are invalid (`9999999999999999.4.7.4` is likely invalid). If the `options.rtl` flag is set, then `coerce` will return the right-most coercible tuple that does not share an ending index with a longer coercible tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not `4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of any other overlapping SemVer tuple. If the `options.includePrerelease` flag is set, then the `coerce` result will contain prerelease and build parts of a version. For example, `1.2.3.4-rc.1+rev.2` will preserve prerelease `rc.1` and build `rev.2` in the result. ### Clean * `clean(version)`: Clean a string to be a valid semver if possible This will return a cleaned and trimmed semver version. If the provided version is not valid a null will be returned. This does not work for ranges. ex. * `s.clean(' = v 2.1.5foo')`: `null` * `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'` * `s.clean(' = v 2.1.5-foo')`: `null` * `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'` * `s.clean('=v2.1.5')`: `'2.1.5'` * `s.clean(' =v2.1.5')`: `'2.1.5'` * `s.clean(' 2.1.5 ')`: `'2.1.5'` * `s.clean('~1.0.0')`: `null` ## Constants As a convenience, helper constants are exported to provide information about what `node-semver` supports: ### `RELEASE_TYPES` - major - premajor - minor - preminor - patch - prepatch - prerelease ``` const semver = require('semver'); if (semver.RELEASE_TYPES.includes(arbitraryUserInput)) { console.log('This is a valid release type!'); } else { console.warn('This is NOT a valid release type!'); } ``` ### `SEMVER_SPEC_VERSION` 2.0.0 ``` const semver = require('semver'); console.log('We are currently using the semver specification version:', semver.SEMVER_SPEC_VERSION); ``` ## Exported Modules You may pull in just the part of this semver utility that you need if you are sensitive to packing and tree-shaking concerns. The main `require('semver')` export uses getter functions to lazily load the parts of the API that are used. The following modules are available: * `require('semver')` * `require('semver/classes')` * `require('semver/classes/comparator')` * `require('semver/classes/range')` * `require('semver/classes/semver')` * `require('semver/functions/clean')` * `require('semver/functions/cmp')` * `require('semver/functions/coerce')` * `require('semver/functions/compare')` * `require('semver/functions/compare-build')` * `require('semver/functions/compare-loose')` * `require('semver/functions/diff')` * `require('semver/functions/eq')` * `require('semver/functions/gt')` * `require('semver/functions/gte')` * `require('semver/functions/inc')` * `require('semver/functions/lt')` * `require('semver/functions/lte')` * `require('semver/functions/major')` * `require('semver/functions/minor')` * `require('semver/functions/neq')` * `require('semver/functions/parse')` * `require('semver/functions/patch')` * `require('semver/functions/prerelease')` * `require('semver/functions/rcompare')` * `require('semver/functions/rsort')` * `require('semver/functions/satisfies')` * `require('semver/functions/sort')` * `require('semver/functions/truncate')` * `require('semver/functions/valid')` * `require('semver/ranges/gtr')` * `require('semver/ranges/intersects')` * `require('semver/ranges/ltr')` * `require('semver/ranges/max-satisfying')` * `require('semver/ranges/min-satisfying')` * `require('semver/ranges/min-version')` * `require('semver/ranges/outside')` * `require('semver/ranges/simplify')` * `require('semver/ranges/subset')` * `require('semver/ranges/to-comparators')` * `require('semver/ranges/valid')` --- END ORIGINAL BYTES --- ================================================================ sharp@0.35.5 Declared package license: Apache-2.0 Published archive: https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz Locked integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68; bytes: 10273 --- BEGIN ORIGINAL BYTES --- 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: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and 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 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 [yyyy] [name of copyright owner] 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 89772961fcf195b976573874555f2902bfe04a3e57be61af261ac65ce9348735; bytes: 3162 --- BEGIN ORIGINAL BYTES --- # sharp sharp logo The typical use case for this high speed Node-API module is to convert large images in common formats to smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF images of varying dimensions. It can be used with all JavaScript runtimes that provide support for Node-API v9, including Node.js (>= 20.9.0), Deno and Bun. Resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings due to its use of [libvips](https://github.com/libvips/libvips). Colour spaces, embedded ICC profiles and alpha transparency channels are all handled correctly. Lanczos resampling ensures quality is not sacrificed for speed. As well as image resizing, operations such as rotation, extraction, compositing and gamma correction are available. Most modern macOS, Windows and Linux systems do not require any additional install or runtime dependencies. ## Documentation Visit [sharp.pixelplumbing.com](https://sharp.pixelplumbing.com/) for complete [installation instructions](https://sharp.pixelplumbing.com/install), [API documentation](https://sharp.pixelplumbing.com/api-constructor), [benchmark tests](https://sharp.pixelplumbing.com/performance) and [changelog](https://sharp.pixelplumbing.com/changelog). ## Examples ```sh npm install sharp ``` ```javascript // ESM import sharp from 'sharp'; // CJS const sharp = require('sharp'); ``` ```javascript await sharp(inputBuffer) .resize({ width: 320, height: 240 }) .toFile('output.webp', (err, info) => { ... }); ``` ```javascript const output = await sharp('input.jpg') .autoOrient() .resize({ width: 200 }) .jpeg({ mozjpeg: true }) .toBuffer(); ``` ```javascript const semiTransparentRedPng = await sharp({ create: { width: 48, height: 48, channels: 4, background: { r: 255, g: 0, b: 0, alpha: 0.5 } } }) .png() .toBuffer(); ``` ```javascript const roundedCorners = Buffer.from( '' ); const roundedCornerResizer = sharp() .resize(200, 200) .composite([{ input: roundedCorners, blend: 'dest-in' }]) .png(); readableStream .pipe(roundedCornerResizer) .pipe(writableStream); ``` ## Contributing A [guide for contributors](https://github.com/lovell/sharp/blob/main/.github/CONTRIBUTING.md) covers reporting bugs, requesting features and submitting code changes. ## Licensing Copyright 2013 Lovell Fuller and others. 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 [https://www.apache.org/licenses/LICENSE-2.0](https://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. --- END ORIGINAL BYTES --- ================================================================ shiki@4.4.3 Declared package license: MIT Published archive: https://registry.npmjs.org/shiki/-/shiki-4.4.3.tgz Locked integrity: sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 7a9d8d01038aeacf9e5bcdabbddf2a7815200dce9fc1118468cc553e00ae3eee; bytes: 1121 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2021 Pine Wu Copyright (c) 2023 Anthony Fu 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: bbc41a59177e51e1521ef0197e6d4c3867c877c13df2a55b3fe360f48c2b4bd8; bytes: 742 --- BEGIN ORIGINAL BYTES --- Shiki Logo # Shiki 式 [![NPM version](https://img.shields.io/npm/v/shiki?color=32A9C3&labelColor=1B3C4A&label=npm)](https://www.npmjs.com/package/shiki) [![NPM downloads](https://img.shields.io/npm/dm/shiki?color=32A9C3&labelColor=1B3C4A&label=downloads)](https://www.npmjs.com/package/shiki) [![Codecov](https://img.shields.io/codecov/c/github/shikijs/shiki?token=B85J0E2I7I&style=flat&labelColor=1B3C4A&color=32A9C3&precision=1)](https://app.codecov.io/gh/shikijs/shiki) A beautiful syntax highlighter based on TextMate grammars, accurate and powerful. [📚 **Documentation**](https://shiki.style) ## License [MIT](./LICENSE) --- END ORIGINAL BYTES --- ================================================================ sisteransi@1.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz Locked integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ade66f698fd417addc4d948a85ef33e8abb302daff6453feda18b191d250e54d; bytes: 1079 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2018 Terkel Gjervig Nielsen 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 3f4e9124698b113202fa43705e2c019cc7b9258de49094b045ecb1194910719e; bytes: 2587 --- BEGIN ORIGINAL BYTES --- # sister ANSI [![Version](https://img.shields.io/npm/v/sisteransi.svg)](https://www.npmjs.com/package/sisteransi) [![Build Status](https://travis-ci.org/terkelg/sisteransi.svg?branch=master)](https://travis-ci.org/terkelg/sisteransi) [![Downloads](https://img.shields.io/npm/dm/sisteransi.svg)](https://www.npmjs.com/package/sisteransi) > Ansi escape codes faster than you can say "[Bam bam](https://www.youtube.com/watch?v=OcaPu9JPenU)". ## Installation ``` npm install sisteransi ``` ## Usage ```js const ansi = require('sisteransi'); // or const { cursor } = require('sisteransi'); const p = str => process.stdout.write(str); // move cursor to 2, 1 p(ansi.cursor.to(2, 1)); // to up, one down p(ansi.cursor.up(2)+ansi.cursor.down(1)); ``` ## API ### cursor #### to(x, y) Set the absolute position of the cursor. `x0` `y0` is the top left of the screen. #### move(x, y) Set the position of the cursor relative to its current position. #### up(count = 1) Move cursor up a specific amount of rows. Default is `1`. #### down(count = 1) Move cursor down a specific amount of rows. Default is `1`. #### forward(count = 1) Move cursor forward a specific amount of rows. Default is `1`. #### backward(count = 1) Move cursor backward a specific amount of rows. Default is `1`. #### nextLine(count = 1) Move cursor to the next line a specific amount of lines. Default is `1`. #### prevLine(count = 1) Move cursor to the previous a specific amount of lines. Default is `1`. #### left Move cursor to the left side. #### hide Hide cursor. #### show Show cursor. #### save Save cursor position. #### restore Restore cursor position. ### scroll #### up(count = 1) Scroll display up a specific amount of lines. Default to `1`. #### down(count = 1) Scroll display down a specific amount of lines. Default to `1`. ### erase #### screen Erase the screen and move the cursor the top left position. #### up(count = 1) Erase the screen from the current line up to the top of the screen. Default to `1`. #### down(count = 2) Erase the screen from the current line down to the bottom of the screen. Default to `1`. #### line Erase the entire current line. #### lineEnd Erase from the current cursor position to the end of the current line. #### lineStart Erase from the current cursor position to the start of the current line. #### lines(count) Erase from the current cursor position up the specified amount of rows. ## Credit This is a fork of [ansi-escapes](https://github.com/sindresorhus/ansi-escapes). ## License MIT © [Terkel Gjervig](https://terkel.com) --- END ORIGINAL BYTES --- ================================================================ sitemap@9.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/sitemap/-/sitemap-9.0.1.tgz Locked integrity: sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 4839f2c7b8478d3f0d64dccbb9b6e10e5da84de64fe441b67fea98197fbecabf; bytes: 1077 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2011 Eugene Kalinin 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 2d49c46ead3a6cd2e492dbf7bb76c46bb79c3dae80f00c9f7f8372ee97822576; bytes: 11574 --- BEGIN ORIGINAL BYTES --- # sitemap ![MIT License](https://img.shields.io/npm/l/sitemap)[![Build Status](https://github.com/ekalinin/sitemap.js/workflows/Node%20CI/badge.svg)](https://github.com/ekalinin/sitemap.js/actions)![Monthly Downloads](https://img.shields.io/npm/dm/sitemap) **sitemap** is a high-level streaming sitemap-generating library/CLI that makes creating [sitemap XML](http://www.sitemaps.org/) files easy. [What is a sitemap?](https://support.google.com/webmasters/answer/156184?hl=en&ref_topic=4581190) ## Table of Contents - [Installation](#installation) - [Generate a one time sitemap from a list of urls](#generate-a-one-time-sitemap-from-a-list-of-urls) - [Example of using sitemap.js with](#serve-a-sitemap-from-a-server-and-periodically-update-it) [express](https://expressjs.com/) - [Generating more than one sitemap](#create-sitemap-and-index-files-from-one-large-list) - [Options you can pass](#options-you-can-pass) - [Examples](#examples) - [API](#api) - [Maintainers](#maintainers) - [License](#license) ## Installation ```sh npm install --save sitemap ``` ## Generate a one time sitemap from a list of urls If you are just looking to take a giant list of URLs and turn it into some sitemaps, try out our CLI. The cli can also parse, update and validate existing sitemaps. ```sh npx sitemap < listofurls.txt # `npx sitemap -h` for more examples and a list of options. ``` For programmatic one time generation of a sitemap try: ```js // ESM import { SitemapStream, streamToPromise } from 'sitemap' import { Readable } from 'stream' // CommonJS const { SitemapStream, streamToPromise } = require('sitemap') const { Readable } = require('stream') // An array with your links const links = [{ url: '/page-1/', changefreq: 'daily', priority: 0.3 }] // Create a stream to write to const stream = new SitemapStream( { hostname: 'https://...' } ) // Return a promise that resolves with your XML string return streamToPromise(Readable.from(links).pipe(stream)).then((data) => data.toString() ) ``` ## Serve a sitemap from a server and periodically update it Use this if you have less than 50 thousand urls. See SitemapAndIndexStream for if you have more. ```js // ESM import express from 'express' import { SitemapStream, streamToPromise } from 'sitemap' import { createGzip } from 'zlib' import { Readable } from 'stream' // CommonJS const express = require('express') const { SitemapStream, streamToPromise } = require('sitemap') const { createGzip } = require('zlib') const { Readable } = require('stream') const app = express() let sitemap app.get('/sitemap.xml', function(req, res) { res.header('Content-Type', 'application/xml'); res.header('Content-Encoding', 'gzip'); // if we have a cached entry send it if (sitemap) { res.send(sitemap) return } try { const smStream = new SitemapStream({ hostname: 'https://example.com/' }) const pipeline = smStream.pipe(createGzip()) // pipe your entries or directly write them. smStream.write({ url: '/page-1/', changefreq: 'daily', priority: 0.3 }) smStream.write({ url: '/page-2/', changefreq: 'monthly', priority: 0.7 }) smStream.write({ url: '/page-3/'}) // changefreq: 'weekly', priority: 0.5 smStream.write({ url: '/page-4/', img: "http://urlTest.com" }) /* or use Readable.from([{url: '/page-1'}...]).pipe(smStream) if you are looking to avoid writing your own loop. */ // cache the response streamToPromise(pipeline).then(sm => sitemap = sm) // make sure to attach a write stream such as streamToPromise before ending smStream.end() // stream write the response pipeline.pipe(res).on('error', (e) => {throw e}) } catch (e) { console.error(e) res.status(500).end() } }) app.listen(3000, () => { console.log('listening') }); ``` ## Create sitemap and index files from one large list If you know you are definitely going to have more than 50,000 urls in your sitemap, you can use this slightly more complex interface to create a new sitemap every 45,000 entries and add that file to a sitemap index. ```js // ESM import { createReadStream, createWriteStream } from 'fs' import { resolve } from 'path' import { createGzip } from 'zlib' import { simpleSitemapAndIndex, lineSeparatedURLsToSitemapOptions } from 'sitemap' // CommonJS const { createReadStream, createWriteStream } = require('fs') const { resolve } = require('path') const { createGzip } = require('zlib') const { simpleSitemapAndIndex, lineSeparatedURLsToSitemapOptions } = require('sitemap') // writes sitemaps and index out to the destination you provide. simpleSitemapAndIndex({ hostname: 'https://example.com', destinationDir: './', sourceData: lineSeparatedURLsToSitemapOptions( createReadStream('./your-data.json.txt') ), // sourceData can also be: // sourceData: [{ url: '/page-1/', changefreq: 'daily'}, ...], // or // sourceData: './your-data.json.txt', limit: 45000, // optional, default: 50000 gzip: true, // optional, default: true publicBasePath: '/sitemaps/', // optional, default: './' xslUrl: 'https://example.com/sitemap.xsl', // optional XSL stylesheet }).then(() => { // Do follow up actions }) ``` Want to customize that? ```js // ESM import { createReadStream, createWriteStream } from 'fs' import { resolve } from 'path' import { createGzip } from 'zlib' import { Readable } from 'stream' import { SitemapAndIndexStream, SitemapStream, lineSeparatedURLsToSitemapOptions } from 'sitemap' // CommonJS const { createReadStream, createWriteStream } = require('fs') const { resolve } = require('path') const { createGzip } = require('zlib') const { Readable } = require('stream') const { SitemapAndIndexStream, SitemapStream, lineSeparatedURLsToSitemapOptions } = require('sitemap') const sms = new SitemapAndIndexStream({ limit: 50000, // defaults to 45k lastmodDateOnly: false, // print date not time // SitemapAndIndexStream will call this user provided function every time // it needs to create a new sitemap file. You merely need to return a stream // for it to write the sitemap urls to and the expected url where that sitemap will be hosted getSitemapStream: (i) => { const sitemapStream = new SitemapStream({ hostname: 'https://example.com' }); // if your server automatically serves sitemap.xml.gz when requesting sitemap.xml leave this line be // otherwise you will need to add .gz here and remove it a couple lines below so that both the index // and the actual file have a .gz extension const path = `./sitemap-${i}.xml`; const ws = sitemapStream .pipe(createGzip()) // compress the output of the sitemap .pipe(createWriteStream(resolve(path + '.gz'))); // write it to sitemap-NUMBER.xml return [new URL(path, 'https://example.com/subdir/').toString(), sitemapStream, ws]; }, }); // when reading from a file lineSeparatedURLsToSitemapOptions( createReadStream('./your-data.json.txt') ) .pipe(sms) .pipe(createGzip()) .pipe(createWriteStream(resolve('./sitemap-index.xml.gz'))); // or reading straight from an in-memory array sms .pipe(createGzip()) .pipe(createWriteStream(resolve('./sitemap-index.xml.gz'))); const arrayOfSitemapItems = [{ url: '/page-1/', changefreq: 'daily'}, ...] Readable.from(arrayOfSitemapItems).pipe(sms) // or arrayOfSitemapItems.forEach(item => sms.write(item)) sms.end() // necessary to let it know you've got nothing else to write ``` ### Options you can pass ```js // ESM import { SitemapStream, streamToPromise } from 'sitemap' // CommonJS const { SitemapStream, streamToPromise } = require('sitemap') const smStream = new SitemapStream({ hostname: 'http://www.mywebsite.com', xslUrl: "https://example.com/style.xsl", lastmodDateOnly: false, // print date not time xmlns: { // trim the xml namespace news: true, // flip to false to omit the xml namespace for news xhtml: true, image: true, video: true, custom: [ 'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"', 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"', ], } }) // coalesce stream to value // alternatively you can pipe to another stream streamToPromise(smStream).then(console.log) smStream.write({ url: '/page1', changefreq: 'weekly', priority: 0.8, // A hint to the crawler that it should prioritize this over items less than 0.8 }) // each sitemap entry supports many options // See [Sitemap Item Options](./api.md#sitemap-item-options) below for details smStream.write({ url: 'http://test.com/page-1/', img: [ { url: 'http://test.com/img1.jpg', caption: 'An image', title: 'The Title of Image One', geoLocation: 'London, United Kingdom', license: 'https://creativecommons.org/licenses/by/4.0/' }, { url: 'http://test.com/img2.jpg', caption: 'Another image', title: 'The Title of Image Two', geoLocation: 'London, United Kingdom', license: 'https://creativecommons.org/licenses/by/4.0/' } ], video: [ { thumbnail_loc: 'http://test.com/tmbn1.jpg', title: 'A video title', description: 'This is a video' }, { thumbnail_loc: 'http://test.com/tmbn2.jpg', title: 'A video with an attribute', description: 'This is another video', 'player_loc': 'http://www.example.com/videoplayer.mp4?video=123', 'player_loc:autoplay': 'ap=1', 'player_loc:allow_embed': 'yes' } ], links: [ { lang: 'en', url: 'http://test.com/page-1/' }, { lang: 'ja', url: 'http://test.com/page-1/ja/' } ], androidLink: 'android-app://com.company.test/page-1/', news: { publication: { name: 'The Example Times', language: 'en' }, genres: 'PressRelease, Blog', publication_date: '2008-12-23', title: 'Companies A, B in Merger Talks', keywords: 'business, merger, acquisition, A, B', stock_tickers: 'NASDAQ:A, NASDAQ:B' } }) // indicate there is nothing left to write smStream.end() ``` ## Filtering sitemap entries during parsing You can filter or delete items from a sitemap while parsing by piping through a custom Transform stream. This is useful when you want to selectively process only certain URLs from an existing sitemap. ```js import { createReadStream } from 'fs' import { Transform } from 'stream' import { XMLToSitemapItemStream } from 'sitemap' // Create a filter that only keeps certain URLs const filterStream = new Transform({ objectMode: true, transform(item, encoding, callback) { // Only keep URLs containing '/blog/' if (item.url.includes('/blog/')) { callback(undefined, item) // Keep this item } else { callback() // Skip this item (effectively "deleting" it) } } }) // Parse and filter createReadStream('./sitemap.xml') .pipe(new XMLToSitemapItemStream()) .pipe(filterStream) .on('data', (item) => { console.log('Filtered URL:', item.url) }) ``` You can also chain multiple filters together, filter based on priority/changefreq, or use the filtered results to generate a new sitemap. See [examples/filter-sitemap.js](./examples/filter-sitemap.js) for more filtering patterns. ## Examples For more examples see the [examples directory](./examples/) ## API Full API docs can be found [here](./api.md) ## Maintainers - [@ekalinin](https://github.com/ekalinin) - [@derduher](https://github.com/derduher) ## License See [LICENSE](https://github.com/ekalinin/sitemap.js/blob/master/LICENSE) file. --- END ORIGINAL BYTES --- ================================================================ smol-toml@1.9.0 Declared package license: BSD-3-Clause Published archive: https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.0.tgz Locked integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: fa5659948374d4f555594f47f6da073b40dc503e921aeeece30df4362b3051a5; bytes: 1499 --- BEGIN ORIGINAL BYTES --- Copyright (c) Squirrel Chat et al., All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: bcaaa3befbd5bc5373cc6d80f4502afbe83179f96dcf9a336c43deb7ffa24c65; bytes: 37677 --- BEGIN ORIGINAL BYTES --- # smol-toml [![TOML 1.1.0](https://img.shields.io/badge/TOML-1.1.0-9c4221?style=flat-square)](https://toml.io/en/v1.1.0) [![License](https://img.shields.io/github/license/squirrelchat/smol-toml.svg?style=flat-square)](https://github.com/squirrelchat/smol-toml/blob/mistress/LICENSE) [![npm](https://img.shields.io/npm/v/smol-toml?style=flat-square)](https://npmx.dev/smol-toml) [![Build](https://img.shields.io/github/actions/workflow/status/squirrelchat/smol-toml/build.yaml?style=flat-square&logo=github)](https://github.com/squirrelchat/smol-toml/actions/workflows/build.yaml) [![GitHub Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-support%20me-EA4AAA?style=flat-square)](https://github.com/sponsors/cyyynthia) [![Weekly downloads](https://img.shields.io/npm/dw/smol-toml?style=flat-square)](https://npmx.dev/smol-toml) [![Monthly downloads](https://img.shields.io/npm/dm/smol-toml?style=flat-square)](https://npmx.dev/smol-toml) A small, fast, and correct TOML parser and serializer. smol-toml is fully spec-compliant with TOML v1.1.0, passing all[^toml-test-asterisk] tests from the [official `toml-test` suite](https://github.com/toml-lang/toml-test). [^toml-test-asterisk]: By default, certain invalid datetimes (e.g. `2020-02-30`) are gracefully accepted. Due to JavaScript's lax handling of Unicode, some invalid byte sequences are accepted. Requires using the `integersAsBigInt` option for full type preservation. Use the `run-toml-test.bash` script to run the tests. > [!IMPORTANT] > - By default, the behaviour regarding integers doesn't preserve type information, nor does it allow deserializing > integers larger than 53 bits. See [Integers](#integers). > - The library currently uses the legacy `Date` object by default. See [Date, Time, and Datetime](#date-time-and-datetime). ## Usage ```js import { parse, stringify } from 'smol-toml' const doc = '...' const parsed = parse(doc) console.log(parsed) const toml = stringify(parsed) console.log(toml) ``` Alternatively, if you prefer something similar to the JSON global, you can import the library as follows ```js import * as TOML from 'smol-toml' TOML.stringify({ ... }) ``` A few notes on the `stringify` function: - `undefined` and `null` values on objects are ignored (they do not produce a key/value). - `undefined` and `null` values in arrays are **rejected**. - Functions, classes and symbols are **rejected**. - By default, floats will be serialized as integers if they don't have a decimal part. - i.e. `stringify(parse('a = 1.0'))` will produce `a = 1`, despite the source value being a float. - See [Integers](#integers) for end-to-end type preservation using `BigInt`. - JS `Date` will be serialized as an Offset Date-Time in UTC. - Use the [Temporal API] for representing other types (or alternatively the legacy [`TomlDate` object](#tomldate-object)). ### Options Both `parse` and `stringify` accept an options object as 2nd argument. #### Parse options | Option | Type | Default | Description | Introduced in | |----------------------|-------------------------------|----------|-----------------------------------------------------------------------------------------------------------------|---------------| | `integersAsBigInt` | `boolean \| 'asNeeded'` | `false` | Parse integers as `BigInt`. See [Integers](#integers). | 1.4.0 | | `useLegacyDate` | `boolean` | `true` | Use the legacy `TomlDate` instead of the Temporal API. See [Date, Time, and Datetime](#date-time-and-datetime). | 1.9.0 | | `unsafeKeyBehaviour` | `'keep' \| 'drop' \| 'throw'` | `'keep'` | Reject potentially dangerous keys such as `__proto__` or `constructor`. See [Key safety](#key-safety). | 1.9.0 | ##### Key safety Internally, `smol-toml` is protected against prototype pollution and will correctly assign a plain property named e.g. `__proto__` on the object, similar to what JavaScript-native `JSON.parse` does. However, careless use of the object returned by the parser in your application code may lead to prototype pollution. This is for instance the case in this example taken from Fastify's `secure-json-parse` helper which exists to address this caveat. ```js import { parse } from 'smol-toml' const a = parse('__proto__.b = 5') console.log(a.b) // ~> undefined const b = Object.assign({}, a) console.log(b.b) // ~> 5 ``` Similarly to `secure-json-parse`, the library offers 3 modes to deal with these keys: - `keep` (default): preserve potentially unsafe properties and return the object as-is. - `drop`: silently drop potentially unsafe properties, returning the object as if the properties were not there. - `throw`: reject documents with potentially unsafe properties and throw a `TomlError`. #### Stringify options | Option | Type | Default | Description | Introduced in | |------------------|-----------|------------|--------------------------------------------------------------------------------------------------------------------------------|---------------| | `numbersAsFloat` | `boolean` | `false` | Always render plain numbers as floating point values. See [Type preservation](#type-preservation). | 1.4.0 | | `strictTemporal` | `boolean` | `false` | Reject Temporal values with an IANA timezone or a calendar. See [IANA timezones and calendars](#iana-timezones-and-calendars). | 1.9.0 | ## Dealing with values ### Integers When parsing, both integers and floats are parsed as plain JavaScript numbers by default, which are double-precision floating point numbers. That means that the library does not preserve type information between e.g. `1.0` and `1`, and that it is not able to parse integers beyond 53 bits. While this is sufficient for the vast majority of use-cases, if support of larger integers is needed, it is possible to [enable BigInt support](#enabling-bigint). When serializing, numbers without a decimal part are serialized as integers (except if they're outside of the safe range; i.e. they cannot be represented as a signed 53-bit integer). This is generally a good enough heuristic for most usages, but it is possible to leverage BigInts for [full type preservation](#type-preservation). #### Enabling BigInt To parse integers beyond 53 bits, it's possible to tell the parser to return all integers as BigInt. This will therefore preserve the type information at the cost of using a more expensive container (approx. 5% slowdown). ```js import { parse } from 'smol-toml' const doc = '...' const parsed = parse(doc, { integersAsBigInt: true }) ``` If you want to only use BigInt for numbers that cannot safely be represented as plain JavaScript numbers, you can pass `"asNeeded"` instead. ##### Type preservation To get end-to-end type preservation, you can tell the serializer to always treat numbers as floating point numbers. Then, only BigInts will be serialized as integers and numbers without a decimal part will still be serialized as float. ```js import { stringify } from 'smol-toml' const obj = { ... } const toml = stringify(obj, { numbersAsFloat: true }) ``` ### Date, Time, and Datetime `smol-toml` can emit time-related types in 2 ways: the modern [Temporal API], or the legacy (_but currently default_) `Date` object, using a custom [`TomlDate` object](#tomldate-object). > [!NOTE] > While `TomlDate` is 2-3x faster than Temporal in microbenchmarks, the performance difference in practice on parse > time is insignificant (or even slower[^temporal-slow-or-fast]) for `smol-toml`. See the [benchmarks](#benchmarks). > > `TomlDate` is limited to millisecond precision and has a more lax behaviour. It gracefully accepts certain invalid > inputs, such as "the 30th of February", converting it to the 2nd (or 1st) of March. The Temporal implementation is > stricter and properly rejects these invalid dates. > > The next major version of the library will use Temporal by default. [^temporal-slow-or-fast]: The `Temporal` implementation dispatches more instructions to the CPU; however, it is much more friendly to the branch predictor. At the microarchitecture level, this allows the CPU to reach a higher number of _instructions per clock_, which results in a net positive performance impact. The CPU has to do _more_, but it can do it _faster_. The different TOML types and Temporal types are mapped as described below. #### TOML type to Temporal mapping | TOML type | Temporal type | |----------------------------------------------------------------|----------------------------| | [Offset Date-Time](https://toml.io/en/v1.1.0#offset-date-time) | [`Temporal.ZonedDateTime`] | | [Local Date-Time](https://toml.io/en/v1.1.0#local-date-time) | [`Temporal.PlainDateTime`] | | [Local Date](https://toml.io/en/v1.1.0#local-date) | [`Temporal.PlainDate`] | | [Local Time](https://toml.io/en/v1.1.0#local-time) | [`Temporal.PlainTime`] | #### Temporal to TOML type mapping | Temporal type | TOML type | Notes | |-----------------------------|----------------------------------------------------------------|----------------------------------------------------------------------------------| | [`Temporal.Duration`] | **Unsupported** (throws) | There is an ongoing [feature request][toml-lang/toml#514] and an [active proposal][toml-lang/toml#1105]. Note that the current draft does not allow multi-part values (e.g. `1min 20sec`), making it likely that `Duration` will not always be convertible to a TOML value. | | [`Temporal.Instant`] | [Offset Date-Time](https://toml.io/en/v1.1.0#offset-date-time) | Always in UTC. | | [`Temporal.PlainDate`] | [Local Date](https://toml.io/en/v1.1.0#local-date) | Calendar info lost, [see below](#iana-timezones-and-calendars). | | [`Temporal.PlainDateTime`] | [Local Date-Time](https://toml.io/en/v1.1.0#local-date-time) | Calendar info lost, [see below](#iana-timezones-and-calendars). | | [`Temporal.PlainMonthDay`] | **Unsupported** (throws) | | | [`Temporal.PlainTime`] | [Local Time](https://toml.io/en/v1.1.0#local-time) | | | [`Temporal.PlainYearMonth`] | **Unsupported** (throws) | | | [`Temporal.ZonedDateTime`] | [Offset Date-Time](https://toml.io/en/v1.1.0#offset-date-time) | IANA timezone and calendar info lost, [see below](#iana-timezones-and-calendars). | ##### IANA timezones and calendars `ZonedDateTime` objects may have 2 different types of timezone identifier attached to them: either an offset such as `+02:00`, or an [IANA Time Zone Identifier](https://www.iana.org/time-zones) such as `Europe/Paris`. The latter carries information about the currently observed offset in that region, daylight savings policies, and other timekeeping quirks such as leap seconds. It is a much more precise information than the offset alone. Additionally, `ZonedDateTime` allows keeping track of a specific calendar to use, such as for example the *Japanese imperial era*. TOML can only represent offsets, not precise timezones nor a calendar[^tz-request]. As such, when serializing a `ZonedDateTime`, this information is **lost** and only the offset is preserved; effectively treating the `ZonedDateTime` as if it were an `Instant`. To prevent silent loss of timezone information, the `strictTemporal` option can be enabled to throw an error instead. Timezones that aren't simple offsets, or objects using a calendar that isn't the default ISO 8601 will be rejected. [^tz-request]: There was a request to support the [RFC 9557] syntax, but it has been rejected. See [toml-lang/toml#1034]. #### TomlDate object > [!NOTE] > This object is not formally deprecated yet, but it is a legacy API. It will be deprecated in v2 and removed in v3. The object directly inherits the JavaScript `Date` object, with a handful of extra APIs for distinguishing between different types of time components. `TomlDate` preserves the offset, whereas the native `Date` object usually normalises everything to UTC. > [!CAUTION] > Unlike the [Temporal API] which supports nanosecond precision, `Date` is limited to millisecond precision. ```js import { TomlDate } from 'smol-toml' // Offset Date Time const date = new TomlDate('1979-05-27T07:32:00.000-08:00') console.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> true, false, false, false console.log(date.toISOString()) // ~> 1979-05-27T07:32:00.000-08:00 // Local Date Time const date = new TomlDate('1979-05-27T07:32:00.000') console.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> true, false, false, true console.log(date.toISOString()) // ~> 1979-05-27T07:32:00.000 // Local Date const date = new TomlDate('1979-05-27') console.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> false, true, false, true console.log(date.toISOString()) // ~> 1979-05-27 // Local Time const date = new TomlDate('07:32:00') console.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> false, false, true, true console.log(date.toISOString()) // ~> 07:32:00.000 ``` You can also wrap a native `Date` object and specify using different methods depending on the type of date you wish to represent: ```js import { TomlDate } from 'smol-toml' const jsDate = new Date() const offsetDateTime = TomlDate.wrapAsOffsetDateTime(jsDate) const localDateTime = TomlDate.wrapAsLocalDateTime(jsDate) const localDate = TomlDate.wrapAsLocalDate(jsDate) const localTime = TomlDate.wrapAsLocalTime(jsDate) ``` ## Performance The benchmark is ran using [mitata](https://github.com/evanwashere/mitata). See the sources in `bench`. > [!NOTE] > - The output of `smol-toml` with Temporal *disabled* is used as the starting value for stringify benchmarks. > - The TOML generator used to create the 5MB test file can be found [here](https://gist.github.com/cyyynthia/e77c744cb6494dabe37d0182506526b9). ### Results - [Parse, spec example](#parse-spec-example) - [Parse, 5MB randomly generated file](#parse-5mb-randomly-generated) - [Stringify, spec example](#parse-spec-example) - [Stringify, 5MB randomly generated file](#parse-5mb-randomly-generated) #### Parse, spec example | | Library | Performance | Slowdown | Notes | |:--:|------------------------------------------|---------------|----------|-------| | 🥇 | smol-toml@1.9.0 (Date) | 2.98 µs/iter | 1x | | | 🥈 | smol-toml@1.9.0 (Temporal) | 3.14 µs/iter | 1.06x | | | 🥉 | fast-toml@0.5.4 | 5.13 µs/iter | 1.72x | Unmaintained. No handling of special floats. Bad handling of some unicode escapes. Parses `nan` as `false`. | | 4 | @iarna/toml@3.0.0 | 12.66 µs/iter | 4.25x | Unmaintained. Has defects in datetime parsing. Uses `eval`. | | 5 | @decimalturn/toml-patch@3.1.2 (Date) | 19.60 µs/iter | 6.58x | Special-purpose: designed for non-destructive document edition. | | 6 | @decimalturn/toml-patch@3.1.2 (Temporal) | 20.98 µs/iter | 7.04x | Special-purpose: designed for non-destructive document edition. | | 7 | @std/toml@1.0.11 | 22.81 µs/iter | 7.66x | | | 8 | js-toml@2.0.1 | 23.00 µs/iter | 7.72x | | | 9 | @ltd/j-toml@1.38.0 | 31.25 µs/iter | 10.49x | Unmaintained. Has defects in number parsing when disabling `bigint`. | | 10 | toml@5.0.0 (Temporal) | 33.04 µs/iter | 11.09x | | | 11 | toml@5.0.0 (Date/string) | 33.20 µs/iter | 11.15x | | #### Parse, 5MB randomly generated file | | Library | Performance | Slowdown | Notes | |:--:|------------------------------------------|----------------|----------|-------| | 🥇 | smol-toml@1.9.0 (Temporal) | 45.05 ms/iter | 1x | | | 🥈 | smol-toml@1.9.0 (Date) | 47.71 ms/iter | 1.06x | | | 🥉 | fast-toml@0.5.4 | 92.50 ms/iter | 2.05x | Unmaintained. No handling of special floats. Bad handling of some unicode escapes. Parses `nan` as `false`. | | 4 | @ltd/j-toml@1.38.0 | 186.47 ms/iter | 4.14x | Unmaintained. Has defects in number parsing when disabling `bigint`. | | 5 | @decimalturn/toml-patch@3.1.2 (Date) | 207.09 ms/iter | 4.6x | Special-purpose: designed for non-destructive document edition. | | 6 | @decimalturn/toml-patch@3.1.2 (Temporal) | 219.53 ms/iter | 4.87x | Special-purpose: designed for non-destructive document edition. | | 7 | js-toml@2.0.1 | 280.63 ms/iter | 6.23x | | | 8 | @std/toml@1.0.11 | 428.34 ms/iter | 9.51x | | | 9 | toml@5.0.0 (Date/string) | 557.91 ms/iter | 12.38x | | | 10 | toml@5.0.0 (Temporal) | 587.43 ms/iter | 13.04x | | | - | @iarna/toml@3.0.0 | **DNF** | **DNF** | Unmaintained. Has defects in datetime parsing. Uses `eval`. | #### Stringify, spec example | | Library | Performance | Slowdown | Notes | |:-:|-------------------------------|---------------|----------|-------| | 🥇 | smol-toml@1.9.0 | 2.68 µs/iter | 1x | | | 🥈 | @std/toml@1.0.11 | 4.86 µs/iter | 1.81x | | | 🥉 | js-toml@2.0.1 | 5.76 µs/iter | 2.15x | | | 4 | @iarna/toml@3.0.0 | 9.71 µs/iter | 3.62x | Unmaintained. | | 5 | @ltd/j-toml@1.38.0 | 48.15 µs/iter | 17.96x | Unmaintained. | | 6 | @decimalturn/toml-patch@3.1.2 | 59.57 µs/iter | 22.22x | Special-purpose: designed for non-destructive document edition. | #### Stringify, 5MB randomly generated file | | Library | Performance | Slowdown | Notes | |:-:|-------------------------------|----------------|----------|-------| | 🥇 | smol-toml@1.9.0 | 43.72 ms/iter | 1x | | | 🥈 | @std/toml@1.0.11 | 71.01 ms/iter | 1.62x | | | 🥉 | js-toml@2.0.1 | 107.22 ms/iter | 2.45x | | | 4 | @iarna/toml@3.0.0 | 134.59 ms/iter | 3.08x | Unmaintained. | | 5 | @ltd/j-toml@1.38.0 | 383.10 ms/iter | 8.76x | Unmaintained. | | 6 | @decimalturn/toml-patch@3.1.2 | 543.69 ms/iter | 12.44x | Special-purpose: designed for non-destructive document edition. | ### Detailed benchmark data
Detailed benchmark data ``` node --expose-gc bench/parse.bench.ts clk: ~5.39 GHz cpu: AMD Ryzen 9 9950X3D 16-Core Processor runtime: node 26.10.0 (x64-linux) benchmark avg (min … max) p75 / p99 (min … top 1%) ------------------------------------------------- ------------------------------- • spec document ------------------------------------------------- ------------------------------- smol-toml (Date) 2.98 µs/iter 2.93 µs █ (2.81 µs … 98.78 µs) 4.21 µs █▂ (440.00 b … 236.20 kb) 12.70 kb ▁██▃▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 4.46 ipc ( 99.06% cache) 16.97 branch misses 16.79k cycles 74.80k instructions 2.21k c-refs 20.71 c-misses smol-toml (Temporal) 3.14 µs/iter 3.16 µs █ (3.10 µs … 3.20 µs) 3.20 µs ▇▇ ▂ ▅█▅▂▂ ( 4.60 kb … 4.62 kb) 4.61 kb ██▇█▇▁▁▄▄▇▄█████▄▄▇▄▄ 4.47 ipc ( 99.22% cache) 12.39 branch misses 17.24k cycles 77.01k instructions 2.32k c-refs 18.12 c-misses @iarna/toml 12.66 µs/iter 12.51 µs █ (12.09 µs … 104.09 µs) 16.70 µs █ (192.00 b … 454.46 kb) 24.09 kb ▄██▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.87 ipc ( 99.63% cache) 84.59 branch misses 70.08k cycles 271.21k instructions 11.96k c-refs 44.06 c-misses @ltd/j-toml 31.25 µs/iter 30.76 µs ▄██▂ (29.69 µs … 851.32 µs) 34.20 µs ████ (760.00 b … 537.88 kb) 27.54 kb ▁▅████▇▃▂▁▁▂▁▂▁▁▁▁▁▁▁ 3.35 ipc ( 99.48% cache) 293.85 branch misses 172.79k cycles 578.79k instructions 31.46k c-refs 165.17 c-misses fast-toml 5.13 µs/iter 5.10 µs █ (4.96 µs … 89.84 µs) 6.09 µs ▃█ (400.00 b … 376.82 kb) 12.63 kb ▁██▅▃▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 4.49 ipc ( 99.53% cache) 13.42 branch misses 28.68k cycles 128.90k instructions 3.91k c-refs 18.52 c-misses @std/toml 22.81 µs/iter 22.71 µs █ (21.45 µs … 148.45 µs) 29.40 µs █ (120.00 b … 498.46 kb) 64.90 kb ▁▄▇█▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.75 ipc ( 99.54% cache) 105.52 branch misses 125.75k cycles 471.96k instructions 24.08k c-refs 110.15 c-misses toml (Date/string) 33.20 µs/iter 31.60 µs █ (30.38 µs … 3.01 ms) 51.14 µs █ (952.00 b … 1.56 mb) 108.82 kb ▆█▃▃▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.96 ipc ( 99.06% cache) 181.78 branch misses 177.03k cycles 700.26k instructions 30.31k c-refs 286.20 c-misses toml (Temporal) 33.04 µs/iter 31.76 µs █ (31.47 µs … 47.08 µs) 33.37 µs █▂ ▂ ( 6.40 kb … 8.14 kb) 6.98 kb ██▁█▁▆▁▁▁▁▁▁▁▁▁▁▁▁▁▁▆ 3.94 ipc ( 99.13% cache) 176.95 branch misses 177.43k cycles 699.67k instructions 31.56k c-refs 274.71 c-misses js-toml 23.00 µs/iter 21.48 µs █ (20.32 µs … 2.18 ms) 32.27 µs █▆ ( 0.99 kb … 1.45 mb) 92.46 kb ▂██▃▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 4.10 ipc ( 98.16% cache) 178.29 branch misses 122.97k cycles 504.24k instructions 20.34k c-refs 374.28 c-misses @decimalturn/toml-patch (Date) 19.60 µs/iter 19.09 µs █ (18.53 µs … 841.76 µs) 26.77 µs █ (608.00 b … 607.52 kb) 60.02 kb ▃█▄▂▂▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.54 ipc ( 99.33% cache) 104.70 branch misses 107.96k cycles 382.10k instructions 23.95k c-refs 160.21 c-misses @decimalturn/toml-patch (Temporal) 20.98 µs/iter 20.24 µs ██ █ (20.12 µs … 29.49 µs) 20.51 µs ██▅█▅ ▅ ▅ ▅ ( 2.55 kb … 4.41 kb) 2.86 kb █████▁█▁▁█▁▁▁▁▁▁▁▁▁▁█ 3.52 ipc ( 99.29% cache) 106.72 branch misses 114.13k cycles 401.87k instructions 25.31k c-refs 179.37 c-misses summary smol-toml (Date) 1.06x faster than smol-toml (Temporal) 1.72x faster than fast-toml 4.25x faster than @iarna/toml 6.58x faster than @decimalturn/toml-patch (Date) 7.04x faster than @decimalturn/toml-patch (Temporal) 7.66x faster than @std/toml 7.72x faster than js-toml 10.49x faster than @ltd/j-toml 11.09x faster than toml (Temporal) 11.15x faster than toml (Date/string) • 5MB document ------------------------------------------------- ------------------------------- smol-toml (Date) 47.71 ms/iter 50.08 ms █ (44.72 ms … 50.16 ms) 50.09 ms █ ( 27.91 mb … 37.81 mb) 33.32 mb █▁█▁████▁▁▁▁▁▁▁▁▁▁▁██ 3.05 ipc ( 96.95% cache) 1.95M branch misses 249.63M cycles 760.48M instructions 23.70M c-refs 723.86k c-misses smol-toml (Temporal) 45.05 ms/iter 46.17 ms █ (43.04 ms … 47.19 ms) 47.06 ms ▅█ ▅▅ ▅ ▅ ▅▅▅ ▅ ( 25.17 mb … 36.61 mb) 31.28 mb ██▁██▁▁▁▁█▁▁▁█▁███▁▁█ 3.09 ipc ( 97.25% cache) 1.52M branch misses 244.27M cycles 754.78M instructions 29.60M c-refs 813.69k c-misses @iarna/toml error: Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z at row 5, col 45, pos 569: 4: NfF6LuAerfn5mDPI7Cp 2qsrB4vGmJTyb5jNubOIBYYWrWlAsrw PX93S57gjb5GEhR8qOU5blDQmwfVJTA YvmJ9cE3cUZU NAJQgAbIdpZLhc4lOs4ZhMEWehhZqXCsVD1YP1vN2GEoM2WX''', 1986-05-27T18:36:13Z, -5460, "2ZAV3fYlb23hf7r7QoftVlicWE2iuwp", 4790.2253 ] 5> SzeC4Me8T = [ 5928.9340, 1991-04-28 19:24:24, 7807, -782.4516, 0b1000011111, "YvXRZKBGle9d51sqE90t8hP" ] ^ 6: SLMvBirT.pmpX1D.9PivpfFBo = 2010-09-29 @ltd/j-toml 186.47 ms/iter 184.10 ms ██ █ (166.25 ms … 284.21 ms) 192.51 ms ▅ ██ █ ▅ ▅ ▅ ▅ ( 20.29 mb … 55.50 mb) 33.21 mb █▁▁▁██▁█▁▁▁▁█▁█▁▁█▁▁█ 2.38 ipc ( 97.97% cache) 3.93M branch misses 1.04G cycles 2.47G instructions 164.91M c-refs 3.35M c-misses fast-toml 92.50 ms/iter 92.90 ms █ █ █ (88.55 ms … 101.67 ms) 97.51 ms ▅█ █ █▅ ▅ ▅ ▅ ( 13.48 mb … 34.99 mb) 24.13 mb ██▁▁▁█▁██▁█▁▁█▁▁▁▁▁▁█ 2.82 ipc ( 98.12% cache) 2.40M branch misses 516.21M cycles 1.45G instructions 67.12M c-refs 1.26M c-misses @std/toml 428.34 ms/iter 434.32 ms █ (410.50 ms … 446.83 ms) 442.42 ms ▅ ▅█ ▅▅ ▅▅▅ ▅ ▅ (181.70 mb … 204.21 mb) 194.10 mb █▁▁▁██▁▁▁██▁▁███▁█▁▁█ 3.08 ipc ( 96.60% cache) 6.52M branch misses 2.41G cycles 7.42G instructions 243.62M c-refs 8.29M c-misses toml (Date/string) 557.91 ms/iter 562.12 ms █ (535.21 ms … 581.06 ms) 577.25 ms █ ( 34.09 mb … 84.96 mb) 64.32 mb █▁█▁▁█▁▁███▁▁█▁▁█▁▁▁█ 4.17 ipc ( 96.50% cache) 6.35M branch misses 3.07G cycles 12.80G instructions 237.61M c-refs 8.32M c-misses toml (Temporal) 587.43 ms/iter 597.17 ms █ (570.22 ms … 607.53 ms) 606.15 ms █ █ █ ( 2.54 mb … 92.29 mb) 56.92 mb █▁▁█▁▁▁█▁▁▁▁▁███▁▁▁▁█ 4.08 ipc ( 96.20% cache) 6.59M branch misses 3.20G cycles 13.03G instructions 261.00M c-refs 9.91M c-misses js-toml 280.63 ms/iter 305.16 ms █ (248.43 ms … 358.30 ms) 322.18 ms █ (268.55 mb … 282.47 mb) 272.11 mb ████▁█▁▁▁▁█▁▁▁▁█▁█▁▁█ 2.17 ipc ( 94.73% cache) 5.06M branch misses 1.49G cycles 3.23G instructions 127.90M c-refs 6.74M c-misses @decimalturn/toml-patch (Date) 207.09 ms/iter 212.85 ms █ (195.68 ms … 235.57 ms) 219.92 ms ██ ( 5.63 mb … 47.95 mb) 28.68 mb ███▁▁▁▁▁▁▁▁██▁██▁▁▁▁█ 2.94 ipc ( 97.40% cache) 4.09M branch misses 1.13G cycles 3.33G instructions 144.65M c-refs 3.77M c-misses @decimalturn/toml-patch (Temporal) 219.53 ms/iter 217.17 ms ██ (214.02 ms … 236.49 ms) 233.70 ms ███ ( 11.24 mb … 56.44 mb) 25.17 mb ████▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁█ 2.89 ipc ( 97.08% cache) 4.38M branch misses 1.21G cycles 3.50G instructions 166.38M c-refs 4.86M c-misses summary smol-toml (Temporal) 1.06x faster than smol-toml (Date) 2.05x faster than fast-toml 4.14x faster than @ltd/j-toml 4.6x faster than @decimalturn/toml-patch (Date) 4.87x faster than @decimalturn/toml-patch (Temporal) 6.23x faster than js-toml 9.51x faster than @std/toml 12.38x faster than toml (Date/string) 13.04x faster than toml (Temporal) node --expose-gc bench/stringify.bench.ts clk: ~5.38 GHz cpu: AMD Ryzen 9 9950X3D 16-Core Processor runtime: node 26.10.0 (x64-linux) benchmark avg (min … max) p75 / p99 (min … top 1%) ------------------------------------------- ------------------------------- • spec document ------------------------------------------- ------------------------------- smol-toml 2.68 µs/iter 2.68 µs █ (2.61 µs … 2.91 µs) 2.89 µs ▅█▇▂ ( 4.29 kb … 4.39 kb) 4.30 kb ▇████▅▄▄▁▁▁▁▂▂▁▁▁█▂▁▂ 4.41 ipc ( 99.57% cache) 6.85 branch misses 14.77k cycles 65.13k instructions 1.43k c-refs 6.19 c-misses @iarna/toml 9.71 µs/iter 9.66 µs █ (9.31 µs … 132.37 µs) 11.48 µs ▄█▆ (232.00 b … 681.09 kb) 26.28 kb ▁███▆▃▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.85 ipc ( 99.49% cache) 33.76 branch misses 55.12k cycles 212.42k instructions 8.62k c-refs 43.87 c-misses @ltd/j-toml 48.15 µs/iter 47.84 µs █▇ (38.21 µs … 312.67 µs) 66.76 µs ██ ( 2.72 kb … 382.48 kb) 35.59 kb ▁▁▁▂▂▁██▄▂▁▁▁▁▁▁▁▁▁▁▁ 3.86 ipc ( 99.59% cache) 322.22 branch misses 270.56k cycles 1.04M instructions 27.49k c-refs 113.85 c-misses @std/toml 4.86 µs/iter 4.60 µs █ (4.25 µs … 178.46 µs) 8.94 µs █ (440.00 b … 521.36 kb) 18.02 kb ▄█▅▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.46 ipc ( 99.31% cache) 21.73 branch misses 26.86k cycles 92.81k instructions 4.73k c-refs 32.73 c-misses js-toml 5.76 µs/iter 5.77 µs ▃█ (5.69 µs … 5.83 µs) 5.81 µs ▂ ▇▂██ ( 1.94 kb … 7.02 kb) 2.16 kb ▆▁▁▁▁▆▁▆█▆████▆▆▁▆▁▆▆ 4.34 ipc ( 99.16% cache) 34.91 branch misses 32.34k cycles 140.35k instructions 3.29k c-refs 27.55 c-misses @decimalturn/toml-patch 59.57 µs/iter 57.71 µs █ (53.70 µs … 630.39 µs) 110.05 µs █ ( 4.04 kb … 1.10 mb) 108.22 kb ▅█▆▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 3.94 ipc ( 98.84% cache) 787.33 branch misses 333.69k cycles 1.32M instructions 48.19k c-refs 561.33 c-misses summary smol-toml 1.81x faster than @std/toml 2.15x faster than js-toml 3.62x faster than @iarna/toml 17.96x faster than @ltd/j-toml 22.22x faster than @decimalturn/toml-patch • 5MB document ------------------------------------------- ------------------------------- smol-toml 43.72 ms/iter 47.53 ms █ █ (40.14 ms … 48.06 ms) 47.98 ms █ █ █ ( 9.39 mb … 35.40 mb) 12.82 mb ███▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁██ 2.28 ipc ( 95.29% cache) 1.68M branch misses 225.53M cycles 513.97M instructions 15.50M c-refs 730.62k c-misses @iarna/toml 134.59 ms/iter 138.20 ms █ (126.83 ms … 143.64 ms) 138.71 ms █ █ ( 28.96 mb … 54.84 mb) 42.86 mb █▁▁▁█▁▁█▁▁█▁▁▁██▁▁▁██ 2.65 ipc ( 97.36% cache) 4.43M branch misses 710.95M cycles 1.88G instructions 84.80M c-refs 2.24M c-misses @ltd/j-toml 383.10 ms/iter 388.05 ms █ (366.11 ms … 390.91 ms) 389.63 ms █ █ █ ( 21.44 mb … 22.42 mb) 21.75 mb █▁▁▁▁▁▁▁▁█▁▁██▁▁█▁▁██ 3.81 ipc ( 99.05% cache) 4.10M branch misses 2.08G cycles 7.93G instructions 182.50M c-refs 1.74M c-misses @std/toml 71.01 ms/iter 72.24 ms █ (62.44 ms … 81.12 ms) 79.64 ms █ ( 29.44 mb … 62.92 mb) 37.36 mb █▁██▁▁▁██▁██▁▁▁█▁▁▁▁█ 2.19 ipc ( 95.42% cache) 1.85M branch misses 347.81M cycles 761.47M instructions 31.77M c-refs 1.46M c-misses js-toml 107.22 ms/iter 110.20 ms █ (99.03 ms … 114.64 ms) 112.12 ms █ █ █ ( 18.56 mb … 48.98 mb) 42.88 mb █▁▁▁▁▁▁▁▁█▁▁▁▁█▁██▁██ 2.50 ipc ( 96.46% cache) 3.18M branch misses 573.52M cycles 1.43G instructions 50.22M c-refs 1.78M c-misses @decimalturn/toml-patch 543.69 ms/iter 570.96 ms █ (515.23 ms … 583.43 ms) 578.06 ms █ (112.55 mb … 144.20 mb) 122.09 mb █▁██▁██▁█▁▁▁▁▁▁▁▁▁███ 3.30 ipc ( 94.93% cache) 7.55M branch misses 2.91G cycles 9.59G instructions 234.01M c-refs 11.85M c-misses summary smol-toml 1.62x faster than @std/toml 2.45x faster than js-toml 3.08x faster than @iarna/toml 8.76x faster than @ltd/j-toml 12.44x faster than @decimalturn/toml-patch ```
[Temporal API]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal [`Temporal.Duration`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Duration [`Temporal.Instant`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant [`Temporal.PlainDate`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate [`Temporal.PlainDateTime`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime [`Temporal.PlainMonthDay`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainMonthDay [`Temporal.PlainTime`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime [`Temporal.PlainYearMonth`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth [`Temporal.ZonedDateTime`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime [toml-lang/toml#514]: https://github.com/toml-lang/toml/issues/514 [toml-lang/toml#1034]: https://github.com/toml-lang/toml/issues/1034 [toml-lang/toml#1105]: https://github.com/toml-lang/toml/issues/1105 [RFC 9557]: https://www.rfc-editor.org/info/rfc9557 --- END ORIGINAL BYTES --- ================================================================ source-map-js@1.2.2 Declared package license: BSD-3-Clause Published archive: https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz Locked integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 6cb0631f71c7749763fd3dd1d5bee52dd1070ec17f2edc1710079ad070bd2fbd; bytes: 1526 --- BEGIN ORIGINAL BYTES --- Copyright (c) 2009-2011, Mozilla Foundation and contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the names of the Mozilla Foundation nor the names of project contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- END ORIGINAL BYTES --- ================================================================ space-separated-tokens@2.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz Locked integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 77949358825ce785a42d1604f2f1428b0823fd52ce18fd58a2a1d2264532e806; bytes: 3916 --- BEGIN ORIGINAL BYTES --- # space-separated-tokens [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Parse and stringify space-separated tokens. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`parse(value)`](#parsevalue) * [`stringify(values)`](#stringifyvalues) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [Security](#security) * [License](#license) ## What is this? This is a tiny package that can parse and stringify space-separated tokens, as used for example in the HTML `class` attribute, according to the [WHATWG spec][spec]. ## When should I use this? This package is rather niche, it’s low-level and particularly useful when working with [hast][]. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+), install with [npm][]: ```sh npm install space-separated-tokens ``` In Deno with [`esm.sh`][esmsh]: ```js import {parse, stringify} from 'https://esm.sh/space-separated-tokens@2' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {parse, stringify} from 'space-separated-tokens' parse(' foo\tbar\nbaz ') //=> ['foo', 'bar', 'baz'] stringify(['foo', 'bar', 'baz']) //=> 'foo bar baz' ``` ## API This package exports the identifiers `parse` and `stringify`. There is no default export. ### `parse(value)` Parse space-separated tokens (`string`) to an array of strings (`Array`), according to the [WHATWG spec][spec]. ### `stringify(values)` Serialize an array of strings or numbers (`Array`) to space-separated tokens (`string`). > 👉 **Note**: it’s not possible to specify empty or whitespace only values. ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers. ## Related * [`comma-separated-tokens`](https://github.com/wooorm/comma-separated-tokens) — parse/stringify comma-separated tokens * [`collapse-white-space`](https://github.com/wooorm/collapse-white-space) — replace multiple white-space characters with a single space * [`property-information`](https://github.com/wooorm/property-information) — info on HTML properties ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## Security This package is safe. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/space-separated-tokens/workflows/main/badge.svg [build]: https://github.com/wooorm/space-separated-tokens/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/space-separated-tokens.svg [coverage]: https://codecov.io/github/wooorm/space-separated-tokens [downloads-badge]: https://img.shields.io/npm/dm/space-separated-tokens.svg [downloads]: https://www.npmjs.com/package/space-separated-tokens [size-badge]: https://img.shields.io/bundlephobia/minzip/space-separated-tokens.svg [size]: https://bundlephobia.com/result?p=space-separated-tokens [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [license]: license [author]: https://wooorm.com [spec]: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#space-separated-tokens [hast]: https://github.com/syntax-tree/hast --- END ORIGINAL BYTES --- ================================================================ string.prototype.codepointat@0.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/string.prototype.codepointat/-/string.prototype.codepointat-0.2.1.tgz Locked integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE-MIT.txt SHA-256: 483acb265f182907d1caf6cff9c16c96f31325ed23792832cc5d8b12d5f88c8a; bytes: 1077 --- BEGIN ORIGINAL BYTES --- Copyright Mathias Bynens 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e66c4a6decfccd8dfb751f9116cac8ccf2d74168f6b34328bee25288685934c1; bytes: 1834 --- BEGIN ORIGINAL BYTES --- # ES6 `String.prototype.codePointAt` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.prototype.codePointAt.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.prototype.codePointAt) A robust & optimized ES3-compatible polyfill for [the `String.prototype.codePointAt` method in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.codepointat). Other polyfills for `String.prototype.codePointAt` are available: * by [Norbert Lindenberg](http://norbertlindenberg.com/) (fails some tests) * by [Steven Levithan](http://stevenlevithan.com/) (fails some tests) * by [Paul Miller](http://paulmillr.com/) (~~[fails some tests](https://github.com/paulmillr/es6-shim/issues/166)~~ passes all tests) ## Installation In a browser: ```html ``` Via [npm](http://npmjs.org/): ```bash npm install string.prototype.codepointat ``` Then, in [Node.js](http://nodejs.org/): ```js require('string.prototype.codepointat'); // On Windows and on Mac systems with default settings, case doesn’t matter, // which allows you to do this instead: require('String.prototype.codePointAt'); ``` ## Notes [A polyfill + test suite for `String.fromCodePoint`](https://mths.be/fromcodepoint) is available, too. ## Author | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | |---| | [Mathias Bynens](https://mathiasbynens.be/) | ## License This polyfill is available under the [MIT](https://mths.be/mit) license. --- END ORIGINAL BYTES --- ================================================================ stringify-entities@4.0.4 Declared package license: MIT Published archive: https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz Locked integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 9f084fac69d8cf1e6ce983ba5a3499c7695ed74a26ec625c38f0fd19fddd5e10; bytes: 1106 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 969a27b87443ec36fe8153903a5ea6324fbeed694c9a3f2d11b0afccc641677d; bytes: 6960 --- BEGIN ORIGINAL BYTES --- # stringify-entities [![Build Status][build-badge]][build] [![Coverage Status][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Serialize (encode) HTML character references. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`stringifyEntities(value[, options])`](#stringifyentitiesvalue-options) * [Algorithm](#algorithm) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a small and powerful encoder of HTML character references (often called entities). This one has either all the options you need for a minifier/formatter, or a tiny size when using `stringifyEntitiesLight`. ## When should I use this? You can use this for spec-compliant encoding of character references. It’s small and fast enough to do that well. You can also use this when making an HTML formatter or minifier, because there are different ways to produce pretty or tiny output. This package is reliable: ``'`'`` characters are encoded to ensure no scripts run in Internet Explorer 6 to 8. Additionally, only named references recognized by HTML 4 are encoded, meaning the infamous `'` (which people think is a [virus][]) won’t show up. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+), install with [npm][]: ```sh npm install stringify-entities ``` In Deno with [`esm.sh`][esmsh]: ```js import {stringifyEntities} from 'https://esm.sh/stringify-entities@4' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {stringifyEntities} from 'stringify-entities' stringifyEntities('alpha © bravo ≠ charlie 𝌆 delta') // => 'alpha © bravo ≠ charlie 𝌆 delta' stringifyEntities('alpha © bravo ≠ charlie 𝌆 delta', {useNamedReferences: true}) // => 'alpha © bravo ≠ charlie 𝌆 delta' ``` ## API This package exports the identifiers `stringifyEntities` and `stringifyEntitiesLight`. There is no default export. ### `stringifyEntities(value[, options])` Encode special characters in `value`. ##### Core options ###### `options.escapeOnly` Whether to only escape possibly dangerous characters (`boolean`, default: `false`). Those characters are `"`, `&`, `'`, `<`, `>`, and `` ` ``. ###### `options.subset` Whether to only escape the given subset of characters (`Array`). Note that only BMP characters are supported here (so no emoji). ##### Formatting options If you do not care about the following options, use `stringifyEntitiesLight`, which always outputs hexadecimal character references. ###### `options.useNamedReferences` Prefer named character references (`&`) where possible (`boolean?`, default: `false`). ###### `options.useShortestReferences` Prefer the shortest possible reference, if that results in less bytes (`boolean?`, default: `false`). > ⚠️ **Note**: `useNamedReferences` can be omitted when using > `useShortestReferences`. ###### `options.omitOptionalSemicolons` Whether to omit semicolons when possible (`boolean?`, default: `false`). > ⚠️ **Note**: This creates what HTML calls “parse errors” but is otherwise > still valid HTML — don’t use this except when building a minifier. > Omitting semicolons is possible for certain named and numeric references in > some cases. ###### `options.attribute` Create character references which don’t fail in attributes (`boolean?`, default: `false`). > ⚠️ **Note**: `attribute` only applies when operating dangerously with > `omitOptionalSemicolons: true`. #### Returns Encoded value (`string`). ## Algorithm By default, all dangerous, non-ASCII, and non-printable ASCII characters are encoded. A [subset][] of characters can be given to encode just those characters. Alternatively, pass [`escapeOnly`][escapeonly] to escape just the dangerous characters (`"`, `'`, `<`, `>`, `&`, `` ` ``). By default, hexadecimal character references are used. Pass [`useNamedReferences`][named] to use named character references when possible, or [`useShortestReferences`][short] to use whichever is shortest: decimal, hexadecimal, or named. There is also a `stringifyEntitiesLight` export, which works just like `stringifyEntities` but without the formatting options: it’s much smaller but always outputs hexadecimal character references. ## Types This package is fully typed with [TypeScript][]. It exports the additional types `Options` and `LightOptions` types. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers. ## Security This package is safe. ## Related * [`parse-entities`](https://github.com/wooorm/parse-entities) — parse (decode) HTML character references * [`wooorm/character-entities`](https://github.com/wooorm/character-entities) — info on character references * [`wooorm/character-entities-html4`](https://github.com/wooorm/character-entities-html4) — info on HTML 4 character references * [`wooorm/character-entities-legacy`](https://github.com/wooorm/character-entities-legacy) — info on legacy character references * [`wooorm/character-reference-invalid`](https://github.com/wooorm/character-reference-invalid) — info on invalid numeric character references ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/stringify-entities/workflows/main/badge.svg [build]: https://github.com/wooorm/stringify-entities/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/stringify-entities.svg [coverage]: https://codecov.io/github/wooorm/stringify-entities [downloads-badge]: https://img.shields.io/npm/dm/stringify-entities.svg [downloads]: https://www.npmjs.com/package/stringify-entities [size-badge]: https://img.shields.io/bundlephobia/minzip/stringify-entities.svg [size]: https://bundlephobia.com/result?p=stringify-entities [npm]: https://docs.npmjs.com/cli/install [esmsh]: https://esm.sh [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [virus]: https://www.telegraph.co.uk/technology/advice/10516839/Why-do-some-apostrophes-get-replaced-with-andapos.html [subset]: #optionssubset [escapeonly]: #optionsescapeonly [named]: #optionsusenamedreferences [short]: #optionsuseshortestreferences --- END ORIGINAL BYTES --- ================================================================ svgo@4.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/svgo/-/svgo-4.1.0.tgz Locked integrity: sha512-bkxnTg1kSU0guhIBmibA6UUhrQmPVA1XsQLN+ylCd+UWzbnLkySOcXpyk1mrl05f+pcaCx2eHb+sp6BgMZWX+Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: d2b5640808aeec9c243152ae733cf9cca3a86189ad7817bf50335290dbb31012; bytes: 1064 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Kir Belevich 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 57abe9428669393f02f05f4f51ebdc2eeb29c2fff74ad2b930d879fb6de2cb33; bytes: 4919 --- BEGIN ORIGINAL BYTES ---
# SVGO [![npm](https://img.shields.io/npm/v/svgo)](https://npmjs.org/package/svgo) [![chat](https://img.shields.io/discord/815166721315831868)](https://discord.gg/z8jX8NYxrE) [![docs](https://img.shields.io/badge/docs-svgo.dev-blue)](https://svgo.dev/) SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. ## Why? SVG files, especially those exported from vector editors, usually contain a lot of redundant information. This includes editor metadata, comments, hidden elements, default or suboptimal values, and other stuff that can be safely removed or converted without impacting rendering. ## Installation You can install SVGO globally through npm, yarn, or pnpm. Alternatively, drop the global flag (`global`/`-g`) to use it in your Node.js project. ```sh # npm npm install -g svgo # yarn yarn global add svgo # pnpm pnpm add -g svgo ``` ## Command-line usage Process single files: ```sh svgo one.svg two.svg -o one.min.svg two.min.svg ``` Process a directory of files recursively with `-r`/`--recursive` and `-f`/`--folder`: ```sh svgo -rf path/to/directory_with_svgs -o path/to/output_directory ``` Help for advanced usage: ```sh svgo --help ``` ## Configuration SVGO has a plugin architecture. You can read more about all plugins in [Plugins | SVGO Documentation](https://svgo.dev/docs/plugins/), and the default plugins in [Preset Default | SVGO Documentation](https://svgo.dev/docs/preset-default/). SVGO reads the configuration from `svgo.config.mjs` or the `--config path/to/config.mjs` command-line option. Some other parameters can be configured though command-line options too. **`svgo.config.mjs`** ```js export default { multipass: false, // boolean datauri: 'base64', // 'base64'|'enc'|'unenc' js2svg: { indent: 4, // number pretty: false, // boolean }, plugins: [ 'preset-default', // built-in plugins enabled by default 'prefixIds', // enable built-in plugins by name // enable built-in plugins with an object to configure plugins { name: 'prefixIds', params: { prefix: 'uwu', }, }, ], }; ``` ### Default preset Instead of configuring SVGO from scratch, you can tweak the default preset to suit your needs by configuring or disabling the respective plugin. **`svgo.config.mjs`** ```js export default { plugins: [ { name: 'preset-default', params: { overrides: { // disable a default plugin cleanupIds: false, // customize the params of a default plugin inlineStyles: { onlyMatchedOnce: false, }, }, }, }, ], }; ``` You can find a list of the default plugins in the order they run in [Preset Default | SVGO Documentation](https://svgo.dev/docs/preset-default/#plugins-list). ### Custom plugins You can also specify custom plugins: **`svgo.config.mjs`** ```js import importedPlugin from './imported-plugin'; export default { plugins: [ // plugin imported from another JavaScript file importedPlugin, // plugin defined inline { name: 'customPlugin', params: { paramName: 'paramValue', }, fn: (ast, params, info) => {}, }, ], }; ``` ## API usage SVGO provides a few low level utilities. ### optimize The core of SVGO is `optimize` function. ```js import { optimize } from 'svgo'; const result = optimize(svgString, { path: 'path-to.svg', // recommended multipass: true, // all other config fields are available here }); const optimizedSvgString = result.data; ``` ### loadConfig If you write a tool on top of SVGO you may want to resolve the `svgo.config.mjs` file. ```js import { loadConfig } from 'svgo'; const config = await loadConfig(); ``` You can also specify a path and customize the current working directory. ```js const config = await loadConfig(configFile, cwd); ``` ## Donors | [](https://sheetjs.com/) | [](https://fontello.com/) | | :------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------: | | [SheetJS LLC](https://sheetjs.com/) | [Fontello](https://fontello.com/) | ## License and Copyright This software is released under the terms of the [MIT license](https://github.com/svg/svgo/blob/main/LICENSE). Logo by [André Castillo](https://github.com/DerianAndre). --- END ORIGINAL BYTES --- ================================================================ tailwindcss@4.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz Locked integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Tailwind Labs, Inc. 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: a7db79d5cd483c6f6d1a51f4042e32598ec39e2391a5dd5be62a71d59299cda8; bytes: 1838 --- BEGIN ORIGINAL BYTES ---

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License

--- ## Documentation For full documentation, visit [tailwindcss.com](https://tailwindcss.com). ## Community For help, discussion about best practices, or feature ideas: [Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions) ## Contributing If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**. --- END ORIGINAL BYTES --- ================================================================ tapable@2.3.3 Declared package license: MIT Published archive: https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz Locked integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 824ef6c33ae5ecbbab65d37f2b37da2bfc81d76cf7676ec0f59d00a0a38bdb75; bytes: 1088 --- BEGIN ORIGINAL BYTES --- The MIT License Copyright JS Foundation and other contributors 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. --- END ORIGINAL BYTES --- ================================================================ tiny-inflate@1.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz Locked integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: c0df7f551401f8f80197ff31bf69b8cd23727d127423403282514d242a3ab132; bytes: 1077 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2015-present Devon Govett 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: ffb20903ee9c7557edf44716dbdec981999d6b80adda72908b70332db0779764; bytes: 1027 --- BEGIN ORIGINAL BYTES --- # tiny-inflate This is a port of Joergen Ibsen's [tiny inflate](https://bitbucket.org/jibsen/tinf) to JavaScript. Minified it is about 3KB, or 1.3KB gzipped. While being very small, it is also reasonably fast (about 30% - 50% slower than [pako](https://github.com/nodeca/pako) on average), and should be good enough for many applications. If you need the absolute best performance, however, you'll need to use a larger library such as pako that contains additional optimizations. ## Installation npm install tiny-inflate ## Example To use tiny-inflate, you need two things: a buffer of data compressed with deflate, and the decompressed size (often stored in a file header) to allocate your output buffer. Input and output buffers can be either node `Buffer`s, or `Uint8Array`s. ```javascript var inflate = require('tiny-inflate'); var compressedBuffer = new Bufer([ ... ]); var decompressedSize = ...; var outputBuffer = new Buffer(decompressedSize); inflate(compressedBuffer, outputBuffer); ``` ## License MIT --- END ORIGINAL BYTES --- ================================================================ tinyclip@1.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/tinyclip/-/tinyclip-1.0.3.tgz Locked integrity: sha512-nTv2raKFMzGG6JJp0lpNDsRPdfFE6UHlu2rVEjXo8vkx1ZS3LW2CVXqIaLu8xZlu+6tbFs9V58Qc/Jmk/Ii7wA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: caad6c05def3af4820475739885a961781d8bd86a13f5079f93fe3494d4ab40d; bytes: 1065 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026 Tinylibs 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 01b6ce0df8ac9d45f4928b1eff5d0b42b5a6525071094f7ebf2e7431f3b01e5c; bytes: 623 --- BEGIN ORIGINAL BYTES --- # tinyclip 📋 A tiny cross-platform clipboard library. Uses native OS clipboard functionality on Node.js. > [!NOTE] > In the browser, you can use the native [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) instead of a dependency. ## Install ```sh npm install tinyclip ``` ## Usage ```js import {readText, writeText} from 'tinyclip'; await writeText('hello world'); const text = await readText(); ``` ## API ### `readText(): Promise` Reads text from the clipboard. ### `writeText(text: string): Promise` Writes text to the clipboard. ## License [MIT](./LICENSE) --- END ORIGINAL BYTES --- ================================================================ tinyexec@1.3.1 Declared package license: MIT Published archive: https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz Locked integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: f95f668fe64081ddb4153b322e34fdd719b991285ed08177d5ad7133b7988d92; bytes: 1065 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024 Tinylibs 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. --- END ORIGINAL BYTES --- ================================================================ tinyglobby@0.2.17 Declared package license: MIT Published archive: https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz Locked integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 22c68811e174cbbfb3813d4135918df4f540959c14d872e601d9abe83d3cde8f; bytes: 1076 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024 Madeline Gurriarán 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. --- END ORIGINAL BYTES --- ================================================================ trim-lines@3.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz Locked integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 9f084fac69d8cf1e6ce983ba5a3499c7695ed74a26ec625c38f0fd19fddd5e10; bytes: 1106 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: f66c3d66b20370f61cbb3eccbbe96c98826a9d8d70158245b2b50a00db944758; bytes: 2885 --- BEGIN ORIGINAL BYTES --- # trim-lines [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Remove spaces and tabs around line breaks. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`trimLines(value)`](#trimlinesvalue) * [Types](#types) * [Compatibility](#compatibility) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a tiny utility that removes spaces and tabs around line endings, keeping the line endings, and not removing whitespace at the start or end of the string. It might look trivial, but it’s actually pretty complex to get performant. ## When should I use this? When you need to trim markdown-like whitespace around line endings and don’t want to run into performance problems. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+, or 18.0+), install with [npm][]: ```sh npm install trim-lines ``` In Deno with [`esm.sh`][esmsh]: ```js import trimLines from 'https://esm.sh/trim-lines@3' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {trimLines} from 'trim-lines' console.log(trimLines(' foo\t\n\n bar \n\tbaz ')) // => ' foo\n\nbar\nbaz ' ``` ## API This package exports the identifier `trimLines`. There is no default export. ### `trimLines(value)` Remove spaces and tabs around line breaks in `value` (`string`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+, 16.0+, and 18.0+. It also works in Deno and modern browsers. ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/trim-lines/workflows/main/badge.svg [build]: https://github.com/wooorm/trim-lines/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/trim-lines.svg [coverage]: https://codecov.io/github/wooorm/trim-lines [downloads-badge]: https://img.shields.io/npm/dm/trim-lines.svg [downloads]: https://www.npmjs.com/package/trim-lines [size-badge]: https://img.shields.io/bundlephobia/minzip/trim-lines.svg [size]: https://bundlephobia.com/result?p=trim-lines [npm]: https://docs.npmjs.com/cli/install [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ --- END ORIGINAL BYTES --- ================================================================ trough@2.2.0 Declared package license: MIT Published archive: https://registry.npmjs.org/trough/-/trough-2.2.0.tgz Locked integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 6c03fd41cfd7c92d8aa8a2fa521b94b2683f059123281dcf921ddea9216b6254; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 04d443f3fd6a7871ea808af5161f44efccaffc35c9c502e8963299764e96e00c; bytes: 10622 --- BEGIN ORIGINAL BYTES --- # trough [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] `trough` is middleware. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`trough()`](#trough-1) * [`wrap(middleware, callback)`](#wrapmiddleware-callback) * [`Callback`](#callback) * [`Middleware`](#middleware) * [`Pipeline`](#pipeline) * [`Run`](#run) * [`Use`](#use-1) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) * [License](#license) ## What is this? `trough` is like [`ware`][github-segmentio-ware] with less sugar. Middleware functions can also change the input of the next. The word **trough** (`/trôf/`) means a channel used to convey a liquid. ## When should I use this? You can use this package when you’re building something that accepts “plugins”, which are functions, that can be sync or async, promises or callbacks. ## Install This package is [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npm-install]: ```sh npm install trough ``` In Deno with [`esm.sh`][esm-sh]: ```js import {trough, wrap} from 'https://esm.sh/trough@2' ``` In browsers with [`esm.sh`][esm-sh]: ```html ``` ## Use ```js import fs from 'node:fs' import path from 'node:path' import process from 'node:process' import {trough} from 'trough' const pipeline = trough() .use(function (fileName) { console.log('Checking… ' + fileName) }) .use(function (fileName) { return path.join(process.cwd(), fileName) }) .use(function (filePath, next) { fs.stat(filePath, function (error, stats) { next(error, {filePath, stats}) }) }) .use(function (ctx, next) { if (ctx.stats.isFile()) { fs.readFile(ctx.filePath, next) } else { next(new Error('Expected file')) } }) pipeline.run('readme.md', console.log) pipeline.run('node_modules', console.log) ``` Yields: ```txt Checking… readme.md Checking… node_modules Error: Expected file at ~/example.js:22:12 at wrapped (~/node_modules/trough/index.js:111:16) at next (~/node_modules/trough/index.js:62:23) at done (~/node_modules/trough/index.js:145:7) at ~/example.js:15:7 at FSReqCallback.oncomplete (node:fs:199:5) null ``` ## API This package exports the identifiers [`trough`][api-trough] and [`wrap`][api-wrap]. There is no default export. It exports the [TypeScript][] types [`Callback`][api-callback], [`Middleware`][api-middleware], [`Pipeline`][api-pipeline], [`Run`][api-run], and [`Use`][api-use]. ### `trough()` Create new middleware. ###### Parameters There are no parameters. ###### Returns [`Pipeline`][api-pipeline]. ### `wrap(middleware, callback)` Wrap `middleware` into a uniform interface. You can pass all input to the resulting function. `callback` is then called with the output of `middleware`. If `middleware` accepts more arguments than the later given in input, an extra `done` function is passed to it after that input, which must be called by `middleware`. The first value in `input` is the main input value. All other input values are the rest input values. The values given to `callback` are the input values, merged with every non-nullish output value. * if `middleware` throws an error, returns a promise that is rejected, or calls the given `done` function with an error, `callback` is called with that error * if `middleware` returns a value or returns a promise that is resolved, that value is the main output value * if `middleware` calls `done`, all non-nullish values except for the first one (the error) overwrite the output values ###### Parameters * `middleware` ([`Middleware`][api-middleware]) — function to wrap * `callback` ([`Callback`][api-callback]) — callback called with the output of `middleware` ###### Returns Wrapped middleware ([`Run`][api-run]). ### `Callback` Callback function (TypeScript type). ###### Parameters * `error` (`Error`, optional) — error, if any * `...output` (`Array`, optional) — output values ###### Returns Nothing (`undefined`). ### `Middleware` A middleware function called with the output of its predecessor (TypeScript type). ###### Synchronous If `fn` returns or throws an error, the pipeline fails and `done` is called with that error. If `fn` returns a value (neither `null` nor `undefined`), the first `input` of the next function is set to that value (all other `input` is passed through). The following example shows how returning an error stops the pipeline: ```js import {trough} from 'trough' trough() .use(function (thing) { return new Error('Got: ' + thing) }) .run('some value', console.log) ``` Yields: ```txt Error: Got: some value at ~/example.js:5:12 … ``` The following example shows how throwing an error stops the pipeline: ```js import {trough} from 'trough' trough() .use(function (thing) { throw new Error('Got: ' + thing) }) .run('more value', console.log) ``` Yields: ```txt Error: Got: more value at ~/example.js:5:11 … ``` The following example shows how the first output can be modified: ```js import {trough} from 'trough' trough() .use(function (thing) { return 'even ' + thing }) .run('more value', 'untouched', console.log) ``` Yields: ```txt null 'even more value' 'untouched' ``` ###### Promise If `fn` returns a promise, and that promise rejects, the pipeline fails and `done` is called with the rejected value. If `fn` returns a promise, and that promise resolves with a value (neither `null` nor `undefined`), the first `input` of the next function is set to that value (all other `input` is passed through). The following example shows how rejecting a promise stops the pipeline: ```js import {trough} from 'trough' trough() .use(function (thing) { return new Promise(function (resolve, reject) { reject('Got: ' + thing) }) }) .run('thing', console.log) ``` Yields: ```txt Got: thing ``` The following example shows how the input isn’t touched by resolving to `null`. ```js import {trough} from 'trough' trough() .use(function () { return new Promise(function (resolve) { setTimeout(function () { resolve(null) }, 100) }) }) .run('Input', console.log) ``` Yields: ```txt null 'Input' ``` ###### Asynchronous If `fn` accepts one more argument than the given `input`, a `next` function is given (after the input). `next` must be called, but doesn’t have to be called async. If `next` is given a value (neither `null` nor `undefined`) as its first argument, the pipeline fails and `done` is called with that value. If `next` is given no value (either `null` or `undefined`) as the first argument, all following non-nullish values change the input of the following function, and all nullish values default to the `input`. The following example shows how passing a first argument stops the pipeline: ```js import {trough} from 'trough' trough() .use(function (thing, next) { next(new Error('Got: ' + thing)) }) .run('thing', console.log) ``` Yields: ```txt Error: Got: thing at ~/example.js:5:10 ``` The following example shows how more values than the input are passed. ```js import {trough} from 'trough' trough() .use(function (thing, next) { setTimeout(function () { next(null, null, 'values') }, 100) }) .run('some', console.log) ``` Yields: ```txt null 'some' 'values' ``` ###### Parameters * `...input` (`Array`, optional) — input values ###### Returns Output, promise, etc (`any`). ### `Pipeline` Pipeline (TypeScript type). ###### Properties * `run` ([`Run`][api-run]) — run the pipeline * `use` ([`Use`][api-use]) — add middleware ### `Run` Call all middleware (TypeScript type). Calls `done` on completion with either an error or the output of the last middleware. > 👉 **Note**: as the length of input defines whether async functions get a > `next` function, > it’s recommended to keep `input` at one value normally. ###### Parameters * `...input` (`Array`, optional) — input values * `done` ([`Callback`][api-callback]) — callback called when done ###### Returns Nothing (`undefined`). ### `Use` Add middleware (TypeScript type). ###### Parameters * `middleware` ([`Middleware`][api-middleware]) — middleware function ###### Returns Current pipeline ([`Pipeline`][api-pipeline]). ## Compatibility This projects is compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `trough@2`, compatible with Node.js 12. ## Security This package is safe. ## Contribute Yes please! See [How to Contribute to Open Source][open-source-guide-contribute]. ## License [MIT][file-license] © [Titus Wormer][wooorm] [api-callback]: #callback [api-middleware]: #middleware [api-pipeline]: #pipeline [api-run]: #run [api-trough]: #trough [api-use]: #use [api-wrap]: #wrapmiddleware-callback [badge-build-image]: https://github.com/wooorm/trough/workflows/main/badge.svg [badge-build-url]: https://github.com/wooorm/trough/actions [badge-coverage-image]: https://img.shields.io/codecov/c/github/wooorm/trough.svg [badge-coverage-url]: https://codecov.io/github/wooorm/trough [badge-downloads-image]: https://img.shields.io/npm/dm/trough.svg [badge-downloads-url]: https://www.npmjs.com/package/trough [badge-size-image]: https://img.shields.io/bundlejs/size/trough [badge-size-url]: https://bundlejs.com/?q=trough [npm-install]: https://docs.npmjs.com/cli/install [esm-sh]: https://esm.sh [file-license]: license [github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [github-segmentio-ware]: https://github.com/segmentio/ware [open-source-guide-contribute]: https://opensource.guide/how-to-contribute/ [typescript]: https://www.typescriptlang.org [wooorm]: https://wooorm.com --- END ORIGINAL BYTES --- ================================================================ tslib@2.8.1 Declared package license: 0BSD Published archive: https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz Locked integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.txt SHA-256: 210b19e543130388c68654b7497e967119ce17145f66ab7d85688fbd70f08751; bytes: 655 --- BEGIN ORIGINAL BYTES --- Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- ================================================================ tsx@4.23.15 Declared package license: MIT Published archive: https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz Locked integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 8dded67841a9261a622c739fb61c81785e93765de852828ceeb9403d20a74581; bytes: 1088 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Hiroki Osame 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. --- END ORIGINAL BYTES --- ================================================================ ufo@1.6.4 Declared package license: MIT Published archive: https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz Locked integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: e1e73226d840b47332b904542d1066eae4b6f89839b6a455945b102baf65b4dc; bytes: 12619 --- BEGIN ORIGINAL BYTES --- # ufo [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] URL utils for humans. ## Install Install using npm or your favourite package manager: Install package: ```sh # npm npm install ufo # yarn yarn add ufo # pnpm pnpm install ufo # bun bun install ufo ``` Import utils: ```js // ESM import { normalizeURL, joinURL } from "ufo"; // CommonJS const { normalizeURL, joinURL } = require("ufo"); // Deno import { parseURL } from "https://unpkg.com/ufo/dist/index.mjs"; ``` ## Encoding Utils ### `decode(text)` Decodes text using `decodeURIComponent`. Returns the original text if it fails. ### `decodePath(text)` Decodes path section of URL (consistent with encodePath for slash encoding). ### `decodeQueryKey(text)` Decodes query key (consistent with `encodeQueryKey` for plus encoding). ### `decodeQueryValue(text)` Decodes query value (consistent with `encodeQueryValue` for plus encoding). ### `encode(text)` Encodes characters that need to be encoded in the path, search and hash sections of the URL. ### `encodeHash(text)` Encodes characters that need to be encoded in the hash section of the URL. ### `encodeHost(name)` Encodes hostname with punycode encoding. ### `encodeParam(text)` Encodes characters that need to be encoded in the path section of the URL as a param. This function encodes everything `encodePath` does plus the slash (`/`) character. ### `encodePath(text)` Encodes characters that need to be encoded in the path section of the URL. ### `encodeQueryKey(text)` Encodes characters that need to be encoded for query values in the query section of the URL and also encodes the `=` character. ### `encodeQueryValue(input)` Encodes characters that need to be encoded for query values in the query section of the URL. ## Parsing Utils ### `parseAuth(input)` Takes a string of the form `username:password` and returns an object with the username and password decoded. ### `parseFilename(input, opts?: { strict? })` Parses a URL and returns last segment in path as filename. If `{ strict: true }` is passed as the second argument, it will only return the last segment only if ending with an extension. **Example:** ```js // Result: filename.ext parseFilename("http://example.com/path/to/filename.ext"); // Result: undefined parseFilename("/path/to/.hidden-file", { strict: true }); ``` ### `parseHost(input)` Takes a string, and returns an object with two properties: `hostname` and `port`. **Example:** ```js parseHost("foo.com:8080"); // { hostname: 'foo.com', port: '8080' } ``` ### `parsePath(input)` Splits the input string into three parts, and returns an object with those three parts. **Example:** ```js parsePath("http://foo.com/foo?test=123#token"); // { pathname: 'http://foo.com/foo', search: '?test=123', hash: '#token' } ``` ### `parseURL(input, defaultProto?)` Takes a URL string and returns an object with the URL's `protocol`, `auth`, `host`, `pathname`, `search`, and `hash`. **Example:** ```js parseURL("http://foo.com/foo?test=123#token"); // { protocol: 'http:', auth: '', host: 'foo.com', pathname: '/foo', search: '?test=123', hash: '#token' } parseURL("foo.com/foo?test=123#token"); // { pathname: 'foo.com/foo', search: '?test=123', hash: '#token' } parseURL("foo.com/foo?test=123#token", "https://"); // { protocol: 'https:', auth: '', host: 'foo.com', pathname: '/foo', search: '?test=123', hash: '#token' } ``` ### `stringifyParsedURL(parsed)` Takes a `ParsedURL` object and returns the stringified URL. **Example:** ```js const obj = parseURL("http://foo.com/foo?test=123#token"); obj.host = "bar.com"; stringifyParsedURL(obj); // "http://bar.com/foo?test=123#token" ``` ## Query Utils ### `encodeQueryItem(key, value)` Encodes a pair of key and value into a url query string value. If the value is an array, it will be encoded as multiple key-value pairs with the same key. **Example:** ```js encodeQueryItem('message', 'Hello World') // 'message=Hello+World' encodeQueryItem('tags', ['javascript', 'web', 'dev']) // 'tags=javascript&tags=web&tags=dev' ``` ### `parseQuery(parametersString)` Parses and decodes a query string into an object. The input can be a query string with or without the leading `?`. **Example:** ```js parseQuery("?foo=bar&baz=qux"); // { foo: "bar", baz: "qux" } parseQuery("tags=javascript&tags=web&tags=dev"); // { tags: ["javascript", "web", "dev"] } ``` ### `stringifyQuery(query)` Stringfies and encodes a query object into a query string. **Example:** ```js stringifyQuery({ foo: 'bar', baz: 'qux' }) // 'foo=bar&baz=qux' stringifyQuery({ foo: 'bar', baz: undefined }) // 'foo=bar' ``` ## Utils ### `$URL()` ### `cleanDoubleSlashes(input)` Removes double slashes from the URL. **Example:** ```js cleanDoubleSlashes("//foo//bar//"); // "/foo/bar/" cleanDoubleSlashes("http://example.com/analyze//http://localhost:3000//"); // Returns "http://example.com/analyze/http://localhost:3000/" ``` ### `filterQuery(input, predicate)` Removes the query section of the URL. **Example:** ```js filterQuery("/foo?bar=1&baz=2", (key) => key !== "bar"); // "/foo?baz=2" ``` ### `getQuery(input)` Parses and decodes the query object of an input URL into an object. **Example:** ```js getQuery("http://foo.com/foo?test=123&unicode=%E5%A5%BD"); // { test: "123", unicode: "好" } ``` ### `hasLeadingSlash(input)` Checks if the input has a leading slash (e.g. `/foo`). ### `hasProtocol(inputString, opts)` Checks if the input has a protocol. You can use `{ acceptRelative: true }` to accept relative URLs as valid protocol. **Example:** ```js hasProtocol('https://example.com'); // true hasProtocol("//example.com"); // false hasProtocol('//example.com', { acceptRelative: true }); // true hasProtocol("ftp://example.com"); // true hasProtocol('data:text/plain'); // true hasProtocol('data:text/plain', { strict: true }); // false ``` ### `hasTrailingSlash(input, respectQueryAndFragment?)` Checks if the input has a trailing slash. **Example:** ```js hasTrailingSlash("/foo/"); // true hasTrailingSlash("/foo"); // false hasTrailingSlash("/foo?query=true", true); // false hasTrailingSlash("/foo/?query=true", true); // true ``` ### `isEmptyURL(url)` Checks if the input URL is empty or `/`. ### `isEqual(a, b, options)` Checks if two paths are equal regardless of encoding, trailing slash, and leading slash differences. You can make slash check strict by setting `{ trailingSlash: true, leadingSlash: true }` as options. You can make encoding check strict by setting `{ encoding: true }` as options. **Example:** ```js isEqual("/foo", "foo"); // true isEqual("foo/", "foo"); // true isEqual("/foo bar", "/foo%20bar"); // true // Strict compare isEqual("/foo", "foo", { leadingSlash: true }); // false isEqual("foo/", "foo", { trailingSlash: true }); // false isEqual("/foo bar", "/foo%20bar", { encoding: true }); // false ``` ### `isNonEmptyURL(url)` Checks if the input URL is neither empty nor `/`. ### `isRelative(inputString)` Check if a path starts with `./` or `../`. **Example:** ```js isRelative("./foo"); // true ``` ### `isSamePath(p1, p2)` Check if two paths are equal or not. Trailing slash and encoding are normalized before comparison. **Example:** ```js isSamePath("/foo", "/foo/"); // true ``` ### `isScriptProtocol(protocol?)` Checks if the input protocol is any of the dangerous `blob:`, `data:`, `javascript`: or `vbscript:` protocols. **Example:** ```js isScriptProtocol("javascript:alert(1)"); // true isScriptProtocol("data:text/html,hello"); // true isScriptProtocol("blob:hello"); // true isScriptProtocol("vbscript:alert(1)"); // true isScriptProtocol("https://example.com"); // false ``` ### `joinRelativeURL()` Joins multiple URL segments into a single URL and also handles relative paths with `./` and `../`. **Example:** ```js joinRelativeURL("/a", "../b", "./c"); // "/b/c" ``` ### `joinURL(base)` Joins multiple URL segments into a single URL. **Example:** ```js joinURL("a", "/b", "/c"); // "a/b/c" ``` ### `normalizeURL(input)` Normalizes the input URL: - Ensures the URL is properly encoded - Ensures pathname starts with a slash - Preserves protocol/host if provided **Example:** ```js normalizeURL("test?query=123 123#hash, test"); // Returns "test?query=123%20123#hash,%20test" normalizeURL("http://localhost:3000"); // Returns "http://localhost:3000" ``` ### `resolveURL(base)` Resolves multiple URL segments into a single URL. **Example:** ```js resolveURL("http://foo.com/foo?test=123#token", "bar", "baz"); // Returns "http://foo.com/foo/bar/baz?test=123#token" ``` ### `withBase(input, base)` Ensures the URL or pathname starts with base. If input already starts with base, it will not be added again. **Example:** ```js withBase("/foo/bar", "/foo"); // "/foo/bar" withBase("/foo/bar", "/baz"); // "/baz/foo/bar" ``` ### `withFragment(input, hash)` Adds or replaces the fragment section of the URL. **Example:** ```js withFragment("/foo", "bar"); // "/foo#bar" withFragment("/foo#bar", "baz"); // "/foo#baz" withFragment("/foo#bar", ""); // "/foo" ``` ### `withHttp(input)` Adds or replaces the URL protocol to `http://`. **Example:** ```js withHttp("https://example.com"); // http://example.com ``` ### `withHttps(input)` Adds or replaces the URL protocol to `https://`. **Example:** ```js withHttps("http://example.com"); // https://example.com ``` ### `withLeadingSlash(input)` Ensures the URL or pathname has a leading slash. **Example:** ```js withLeadingSlash("foo"); // "/foo" ``` ### `withoutBase(input, base)` Removes the base from the URL or pathname. If input does not start with base, it will not be removed. **Example:** ```js withoutBase("/foo/bar", "/foo"); // "/bar" ``` ### `withoutFragment(input)` Removes the fragment section from the URL. **Example:** ```js withoutFragment("http://example.com/foo?q=123#bar") // Returns "http://example.com/foo?q=123" ``` ### `withoutHost(input)` Removes the host from the URL while preserving everything else. **Example:** ```js withoutHost("http://example.com/foo?q=123#bar") // Returns "/foo?q=123#bar" ``` ### `withoutLeadingSlash(input)` Removes leading slash from the URL or pathname. **Example:** ```js withoutLeadingSlash("/foo"); // "foo" ``` ### `withoutProtocol(input)` Removes the protocol from the input. **Example:** ```js withoutProtocol("http://example.com"); // "example.com" ``` ### `withoutTrailingSlash(input, respectQueryAndFragment?)` Removes the trailing slash from the URL or pathname. If second argument is `true`, it will only remove the trailing slash if it's not part of the query or fragment with cost of more expensive operations. **Example:** ```js withoutTrailingSlash("/foo/"); // "/foo" withoutTrailingSlash("/path/?query=true", true); // "/path?query=true" ``` ### `withProtocol(input, protocol)` Adds or replaces protocol of the input URL. **Example:** ```js withProtocol("http://example.com", "ftp://"); // "ftp://example.com" ``` ### `withQuery(input, query)` Add/Replace the query section of the URL. **Example:** ```js withQuery("/foo?page=a", { token: "secret" }); // "/foo?page=a&token=secret" ``` ### `withTrailingSlash(input, respectQueryAndFragment?)` Ensures the URL ends with a trailing slash. If second argument is `true`, it will only add the trailing slash if it's not part of the query or fragment with cost of more expensive operation. **Example:** ```js withTrailingSlash("/foo"); // "/foo/" withTrailingSlash("/path?query=true", true); // "/path/?query=true" ``` ## License [MIT](./LICENSE) Special thanks to Eduardo San Martin Morote ([posva](https://github.com/posva)) for [encoding utilities](https://github.com/vuejs/vue-router-next/blob/v4.0.1/src/encoding.ts) [npm-version-src]: https://img.shields.io/npm/v/ufo?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/ufo [npm-downloads-src]: https://img.shields.io/npm/dm/ufo?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/ufo [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/ufo/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/ufo [bundle-src]: https://img.shields.io/bundlephobia/minzip/ufo?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=ufo --- END ORIGINAL BYTES --- ================================================================ ultrahtml@1.7.0 Declared package license: MIT Published archive: https://registry.npmjs.org/ultrahtml/-/ultrahtml-1.7.0.tgz Locked integrity: sha512-2xRd0VHoAQE4M+vF/DvFFB7pUV0ZxTW1TLi7lHQWnF/Sb5TPeEUV/l+hxcNnGO00ZXGnR0voCMmYRKQf+rvJ2g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5141aab157171b510d1ac9b9f2f248baa3bef6902b264ea3bb59355d874b9924; bytes: 2264 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2022 Nate Moore 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 (including the next paragraph) 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. --- Portions of this code were borrowed from https://github.com/developit/htmlParser The MIT License (MIT) Copyright (c) 2013 Jason Miller 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. --- END ORIGINAL BYTES --- ================================================================ uncrypto@0.1.3 Declared package license: MIT Published archive: https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz Locked integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 5e89988db688878429b28273fc404ca248fb0233880b2a947d0961b340f81133; bytes: 2389 --- BEGIN ORIGINAL BYTES --- # uncrypto [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href] This library provides a single api to use [web-crypto](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) and [Subtle Crypto](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto) in both Node.js using [Crypto Module](https://nodejs.org/api/crypto.html#crypto) and Web targets using [Web Crypto API](https://nodejs.org/api/crypto.html#crypto) using [Conditional Exports](https://nodejs.org/api/packages.html#conditional-exports). **Requirements:** - **Node.js**: Version **15 and above** (this library provides no polyfills for older versions!) - **Browser**: [Secure Context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) (HTTPS/Localhost) in [Supported Browsers](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto#browser_compatibility) - **Other Runtimes:** Exposed `globalThis.crypto` and `globalThis.crypto.subtle`. (you can polyfill if neeeded) ## Usage Install package: ```sh # npm npm install uncrypto # yarn yarn add uncrypto # pnpm pnpm install uncrypto ``` Import: ```js // ESM import { subtle, randomUUID, getRandomValues } from "uncrypto"; // CommonJS const { subtle, randomUUID, getRandomValues } = require("uncrypto"); ``` ## Development - Clone this repository - Install latest LTS version of [Node.js](https://nodejs.org/en/) - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run interactive tests using `pnpm dev` ## License Made with 💛 Published under [MIT License](./LICENSE). [npm-version-src]: https://img.shields.io/npm/v/uncrypto?style=flat-square [npm-version-href]: https://npmjs.com/package/uncrypto [npm-downloads-src]: https://img.shields.io/npm/dm/uncrypto?style=flat-square [npm-downloads-href]: https://npmjs.com/package/uncrypto [github-actions-src]: https://img.shields.io/github/workflow/status/unjs/uncrypto/ci/main?style=flat-square [github-actions-href]: https://github.com/unjs/uncrypto/actions?query=workflow%3Aci [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/uncrypto/main?style=flat-square [codecov-href]: https://codecov.io/gh/unjs/uncrypto --- END ORIGINAL BYTES --- ================================================================ undici@8.12.4 Declared package license: MIT Published archive: https://registry.npmjs.org/undici/-/undici-8.12.4.tgz Locked integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a6db8096b2707bc0102d256917d4d33f298ba36d8c3f25de067a2b5bb379db27; bytes: 1090 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Matteo Collina and Undici contributors 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 8411a4bf698df13db623377c4a686594897316ebb7cd55cccafa65c2951121ce; bytes: 34998 --- BEGIN ORIGINAL BYTES --- # undici [![Node CI](https://github.com/nodejs/undici/actions/workflows/ci.yml/badge.svg)](https://github.com/nodejs/undici/actions/workflows/nodejs.yml) [![neostandard javascript style](https://img.shields.io/badge/neo-standard-7fffff?style=flat\&labelColor=ff80ff)](https://github.com/neostandard/neostandard) [![npm version](https://badge.fury.io/js/undici.svg)](https://badge.fury.io/js/undici) [![codecov](https://codecov.io/gh/nodejs/undici/branch/main/graph/badge.svg?token=yZL6LtXkOA)](https://codecov.io/gh/nodejs/undici) An HTTP/1.1 client, written from scratch for Node.js. > Undici means eleven in Italian. 1.1 -> 11 -> Eleven -> Undici. It is also a Stranger Things reference. ## How to get involved Have a question about using Undici? Open a [Q&A Discussion](https://github.com/nodejs/undici/discussions/new) or join our official OpenJS [Slack](https://openjs-foundation.slack.com/archives/C01QF9Q31QD) channel. Looking to contribute? Start by reading the [contributing guide](./CONTRIBUTING.md) ## Install ``` npm i undici ``` ## Benchmarks The benchmark is a simple getting data [example](https://github.com/nodejs/undici/blob/main/benchmarks/benchmark.js) using 50 TCP connections with a pipelining depth of 10 running on Node 24.14.1. ### HTTP/1.1 ``` ┌────────────────────────┬─────────┬────────────────────┬────────────┬─────────────────────────┐ │ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │ ├────────────────────────┼─────────┼────────────────────┼────────────┼─────────────────────────┤ │ 'node-fetch' │ 50 │ '4711.86 req/sec' │ '± 2.92 %' │ '-' │ │ 'undici - fetch' │ 75 │ '5438.50 req/sec' │ '± 2.97 %' │ '+ 15.42 %' │ │ 'axios' │ 45 │ '5448.08 req/sec' │ '± 2.98 %' │ '+ 15.62 %' │ │ 'request' │ 65 │ '5809.63 req/sec' │ '± 2.90 %' │ '+ 23.30 %' │ │ 'http - no keepalive' │ 35 │ '5910.77 req/sec' │ '± 2.87 %' │ '+ 25.44 %' │ │ 'got' │ 50 │ '6047.80 req/sec' │ '± 2.91 %' │ '+ 28.35 %' │ │ 'superagent' │ 60 │ '7534.53 req/sec' │ '± 2.97 %' │ '+ 59.91 %' │ │ 'http - keepalive' │ 75 │ '9343.41 req/sec' │ '± 2.90 %' │ '+ 98.30 %' │ │ 'undici - pipeline' │ 65 │ '13470.70 req/sec' │ '± 2.93 %' │ '+ 185.89 %' │ │ 'undici - request' │ 80 │ '16850.87 req/sec' │ '± 2.93 %' │ '+ 257.63 %' │ │ 'undici - stream' │ 101 │ '18488.56 req/sec' │ '± 3.81 %' │ '+ 292.38 %' │ │ 'undici - dispatch' │ 101 │ '20786.44 req/sec' │ '± 3.08 %' │ '+ 341.15 %' │ └────────────────────────┴─────────┴────────────────────┴────────────┴─────────────────────────┘ ``` ### HTTP/1.1 over HTTPS Using [benchmark-https.js](https://github.com/nodejs/undici/blob/main/benchmarks/benchmark-https.js) against an h1-over-TLS server (50 connections, pipelining depth 10, Node 24.14.1). ``` ┌────────────────────────┬─────────┬───────────────────┬────────────┬─────────────────────────┐ │ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │ ├────────────────────────┼─────────┼───────────────────┼────────────┼─────────────────────────┤ │ 'https - no keepalive'│ 10 │ '1358.40 req/sec' │ '± 1.99 %' │ '-' │ │ 'undici - fetch' │ 30 │ '3721.76 req/sec' │ '± 2.97 %' │ '+ 173.98 %' │ │ 'https - keepalive' │ 35 │ '5633.91 req/sec' │ '± 2.84 %' │ '+ 314.75 %' │ │ 'undici - pipeline' │ 15 │ '6254.05 req/sec' │ '± 2.80 %' │ '+ 360.40 %' │ │ 'undici - request' │ 25 │ '6669.80 req/sec' │ '± 2.73 %' │ '+ 391.01 %' │ │ 'undici - stream' │ 25 │ '7019.04 req/sec' │ '± 2.77 %' │ '+ 416.71 %' │ │ 'undici - dispatch' │ 20 │ '7361.85 req/sec' │ '± 2.90 %' │ '+ 441.95 %' │ └────────────────────────┴─────────┴───────────────────┴────────────┴─────────────────────────┘ ``` ### HTTP/2 Using [benchmark-http2.js](https://github.com/nodejs/undici/blob/main/benchmarks/benchmark-http2.js) against an h2 server (50 connections, pipelining depth 10, Node 24.14.1). ``` ┌────────────────────────┬─────────┬───────────────────┬────────────┬─────────────────────────┐ │ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │ ├────────────────────────┼─────────┼───────────────────┼────────────┼─────────────────────────┤ │ 'undici - fetch' │ 45 │ '3499.03 req/sec' │ '± 2.93 %' │ '-' │ │ 'native - http2' │ 25 │ '4904.58 req/sec' │ '± 2.81 %' │ '+ 40.17 %' │ │ 'undici - pipeline' │ 60 │ '5836.82 req/sec' │ '± 2.99 %' │ '+ 66.81 %' │ │ 'undici - request' │ 65 │ '6831.25 req/sec' │ '± 2.83 %' │ '+ 95.23 %' │ │ 'undici - stream' │ 55 │ '6874.30 req/sec' │ '± 2.91 %' │ '+ 96.46 %' │ │ 'undici - dispatch' │ 55 │ '7791.23 req/sec' │ '± 2.96 %' │ '+ 122.67 %' │ └────────────────────────┴─────────┴───────────────────┴────────────┴─────────────────────────┘ ``` ## Undici vs. Fetch ### Overview Node.js includes a built-in `fetch()` implementation powered by undici starting from Node.js v18. However, there are important differences between using the built-in fetch and installing undici as a separate module. ### WebAssembly requirement Undici's HTTP/1 parser requires WebAssembly. There is no alternative parser when WebAssembly is unavailable, for example in Node.js configurations where `--jitless` disables it. The existence of `fetch` does not imply that it can make HTTP/1 requests in that environment. When the HTTP/1 parser is needed without WebAssembly, Client and dispatcher requests fail with an `Error` whose code is `ERR_WEBASSEMBLY_NOT_SUPPORTED`. `fetch` rejects with a `TypeError` carrying that error in `error.cause`. Importing Undici, accessing `fetch`, and using `Headers`, `FormData`, `Request`, or `Response` do not themselves require the HTTP/1 parser. The error is defined locally in Undici and does not depend on Node.js providing that error code. For built-in fetch, this behavior depends on the bundled Undici version. Node.js receives upstream fixes through its normal vendored Undici update, rather than changes to the generated bundle alone. ### Built-in Fetch (Node.js v18+) Node.js's built-in fetch is powered by a bundled version of undici: ```js // Available globally in Node.js v18+ const response = await fetch('https://api.example.com/data'); const data = await response.json(); // Check the bundled undici version console.log(process.versions.undici); // e.g., "5.28.4" ``` **Pros:** - No additional dependencies required - Works across different JavaScript runtimes - Automatic compression handling (gzip, deflate, br) - Built-in caching support (in development) **Cons:** - Limited to the undici version bundled with your Node.js version - Less control over connection pooling and advanced features - Error handling follows Web API standards (errors wrapped in `TypeError`) - Performance overhead due to Web Streams implementation ### Undici Module Installing undici as a separate module gives you access to the latest features and APIs: ```bash npm install undici ``` ```js import { request, fetch, Agent, setGlobalDispatcher } from 'undici'; // Use undici.request for maximum performance const { statusCode, headers, body } = await request('https://api.example.com/data'); const data = await body.json(); // Or use undici.fetch with custom configuration const agent = new Agent({ keepAliveTimeout: 10000 }); setGlobalDispatcher(agent); const response = await fetch('https://api.example.com/data'); ``` **Pros:** - Latest undici features and bug fixes - Access to advanced APIs (`request`, `stream`, `pipeline`) - Fine-grained control over connection pooling - Better error handling with clearer error messages - Superior performance, especially with `undici.request` - HTTP/1.1 pipelining support - Custom interceptors and middleware - Advanced features like `ProxyAgent`, `Socks5Agent`, `MockAgent` **Cons:** - Additional dependency to manage - Larger bundle size ### When to Use Each #### Use Built-in Fetch When: - You want zero dependencies - Building isomorphic code that runs in browsers and Node.js - Publishing to npm and want to maximize compatibility with JS runtimes - Simple HTTP requests without advanced configuration - You're publishing to npm and you want to maximize compatibility - You don't depend on features from a specific version of undici #### Use Undici Module When: - You need the latest undici features and performance improvements - You require advanced connection pooling configuration - You need APIs not available in the built-in fetch (`ProxyAgent`, `Socks5Agent`, `MockAgent`, etc.) - Performance is critical (use `undici.request` for maximum speed) - You want better error handling and debugging capabilities - You need HTTP/1.1 pipelining or advanced interceptors - You prefer decoupled protocol and API interfaces ### Performance Comparison Based on benchmarks, here's the typical performance hierarchy: 1. **`undici.request()`** - Fastest, most efficient 2. **`undici.fetch()`** - Good performance, standard compliance 3. **Node.js `http`/`https`** - Baseline performance ### Migration Guide If you're currently using built-in fetch and want to migrate to undici: ```js // Before: Built-in fetch const response = await fetch('https://api.example.com/data'); // After: Undici fetch (drop-in replacement) import { fetch } from 'undici'; const response = await fetch('https://api.example.com/data'); // Or: Undici request (better performance) import { request } from 'undici'; const { statusCode, body } = await request('https://api.example.com/data'); const data = await body.json(); ``` ### Keep `fetch` and `FormData` together When you send a `FormData` body, keep `fetch` and `FormData` from the same implementation. Use one of these patterns: ```js // Built-in globals const body = new FormData() body.set('name', 'some') await fetch('https://example.com', { method: 'POST', body }) ``` ```js // undici module imports import { fetch, FormData } from 'undici' const body = new FormData() body.set('name', 'some') await fetch('https://example.com', { method: 'POST', body }) ``` If you want the installed `undici` package to provide the globals, call `install()` first: ```js import { install } from 'undici' install() const body = new FormData() body.set('name', 'some') await fetch('https://example.com', { method: 'POST', body }) ``` `install()` replaces the global `fetch`, `Headers`, `Response`, `Request`, and `FormData` implementations with undici's versions, so they all match. It also installs undici's `WebSocket`, `CloseEvent`, `ErrorEvent`, `MessageEvent`, and `EventSource` globals. Avoid mixing a global `FormData` with `undici.fetch()`, or `undici.FormData` with the built-in global `fetch()`. ### Version Compatibility You can check which version of undici is bundled with your Node.js version: ```js console.log(process.versions.undici); ``` Installing undici as a module allows you to use a newer version than what's bundled with Node.js, giving you access to the latest features and performance improvements. ## Quick Start ### Basic Request ```js import { request } from 'undici' const { statusCode, headers, trailers, body } = await request('http://localhost:3000/foo') console.log('response received', statusCode) console.log('headers', headers) for await (const data of body) { console.log('data', data) } console.log('trailers', trailers) ``` ### Using Cache Interceptor Undici provides a powerful HTTP caching interceptor that follows HTTP caching best practices. Here's how to use it: ```js import { fetch, Agent, interceptors, cacheStores } from 'undici'; // Create a client with cache interceptor const client = new Agent().compose(interceptors.cache({ // Optional: Configure cache store (defaults to MemoryCacheStore) store: new cacheStores.MemoryCacheStore({ maxSize: 100 * 1024 * 1024, // 100MB maxCount: 1000, maxEntrySize: 5 * 1024 * 1024 // 5MB }), // Optional: Specify which HTTP methods to cache (default: ['GET', 'HEAD']) methods: ['GET', 'HEAD'] })); // Set the global dispatcher to use our caching client setGlobalDispatcher(client); // Now all fetch requests will use the cache async function getData() { const response = await fetch('https://api.example.com/data'); // The server should set appropriate Cache-Control headers in the response // which the cache will respect based on the cache policy return response.json(); } // First request - fetches from origin const data1 = await getData(); // Second request - served from cache if within max-age const data2 = await getData(); ``` #### Key Features: - **Automatic Caching**: Respects `Cache-Control` and `Expires` headers - **Validation**: Supports `ETag` and `Last-Modified` validation - **Storage Options**: In-memory or persistent SQLite storage - **Flexible**: Configure cache size, TTL, and more ## Global Installation Undici provides an `install()` function to add fetch-related and other web API classes to `globalThis`, making them available globally: ```js import { install } from 'undici' // Install undici's global web APIs install() // Now you can use fetch classes globally without importing const response = await fetch('https://api.example.com/data') const data = await response.json() // All classes are available globally: const headers = new Headers([['content-type', 'application/json']]) const request = new Request('https://example.com') const formData = new FormData() const ws = new WebSocket('wss://example.com') const eventSource = new EventSource('https://example.com/events') ``` The `install()` function adds the following classes to `globalThis`: - `fetch` - The fetch function - `Headers` - HTTP headers management - `Response` - HTTP response representation - `Request` - HTTP request representation - `FormData` - Form data handling - `WebSocket` - WebSocket client - `CloseEvent`, `ErrorEvent`, `MessageEvent` - WebSocket events - `EventSource` - Server-sent events client When you call `install()`, these globals come from the same undici implementation. For example, global `fetch` and global `FormData` will both be undici's versions, and `WebSocket` and `EventSource` will also come from undici, which is the recommended setup if you want to use undici through globals. This is useful for: - Polyfilling environments that don't have fetch - Ensuring consistent fetch behavior across different Node.js versions - Making undici's implementations available globally for libraries that expect them ## Body Mixins The `body` mixins are the most common way to format the request/response body. Mixins include: - [`.arrayBuffer()`](https://fetch.spec.whatwg.org/#dom-body-arraybuffer) - [`.blob()`](https://fetch.spec.whatwg.org/#dom-body-blob) - [`.bytes()`](https://fetch.spec.whatwg.org/#dom-body-bytes) - [`.json()`](https://fetch.spec.whatwg.org/#dom-body-json) - [`.text()`](https://fetch.spec.whatwg.org/#dom-body-text) > [!NOTE] > The body returned from `undici.request` does not implement `.formData()`. > [!WARNING] > The body mixins `.arrayBuffer()`, `.blob()`, `.bytes()`, `.json()`, `.text()`, > and `.formData()` buffer the entire body in memory before returning. Where > applicable, they also decode or parse the payload and retain that > representation in memory. Calling these methods therefore means trusting that > the response body is small enough to fit in the available memory. Do not use > them for responses from untrusted or user-controlled sources. Instead, consume > the response body as a stream and enforce an application-specific size limit: > use `response.body` for fetch responses or the `body` returned by > `undici.request()`. For streaming decoded text, use `body.textStream()` on a > fetch `Request` or `Response`. Example usage: ```js import { request } from 'undici' const { statusCode, headers, trailers, body } = await request('http://localhost:3000/foo') console.log('response received', statusCode) console.log('headers', headers) console.log('data', await body.json()) console.log('trailers', trailers) ``` _Note: Once a mixin has been called then the body cannot be reused, thus calling additional mixins on `.body`, e.g. `.body.json(); .body.text()` will result in an error `TypeError: unusable` being thrown and returned through the `Promise` rejection._ Should you need to access the `body` in plain-text after using a mixin, the best practice is to use the `.text()` mixin first and then manually parse the text to the desired format. For more information about their behavior, please reference the body mixin from the [Fetch Standard](https://fetch.spec.whatwg.org/#body-mixin). ## Common API Methods This section documents our most commonly used API methods. Additional APIs are documented in their own files within the [docs](./docs/) folder and are accessible via the navigation list on the left side of the docs site. For the top-level APIs below, the `url` argument supplies the request origin and path. Do not pass `origin` or `path` in the second `options` argument. The linked `Dispatcher` option types include those fields because dispatcher methods are lower-level APIs that do not receive a separate `url` argument. ### `undici.request([url, options]): Promise` Arguments: * **url** `string | URL | UrlObject` * **options** [`RequestOptions`](./docs/docs/api/Dispatcher.md#parameter-requestoptions) * **dispatcher** `Dispatcher` - Default: [getGlobalDispatcher](#undicigetglobaldispatcher) * **method** `String` - Default: `PUT` if `options.body`, otherwise `GET` Returns a promise with the result of the `Dispatcher.request` method. Calls `options.dispatcher.request(options)`. See [Dispatcher.request](./docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback) for more details, and [request examples](./docs/examples/README.md) for examples. ### `undici.stream([url, options, ]factory): Promise` Arguments: * **url** `string | URL | UrlObject` * **options** [`StreamOptions`](./docs/docs/api/Dispatcher.md#parameter-streamoptions) * **dispatcher** `Dispatcher` - Default: [getGlobalDispatcher](#undicigetglobaldispatcher) * **method** `String` - Default: `PUT` if `options.body`, otherwise `GET` * **factory** `Dispatcher.stream.factory` Returns a promise with the result of the `Dispatcher.stream` method. Calls `options.dispatcher.stream(options, factory)`. See [Dispatcher.stream](./docs/docs/api/Dispatcher.md#dispatcherstreamoptions-factory-callback) for more details. ### `undici.pipeline([url, options, ]handler): Duplex` Arguments: * **url** `string | URL | UrlObject` * **options** [`PipelineOptions`](./docs/docs/api/Dispatcher.md#parameter-pipelineoptions) * **dispatcher** `Dispatcher` - Default: [getGlobalDispatcher](#undicigetglobaldispatcher) * **method** `String` - Default: `PUT` if `options.body`, otherwise `GET` * **handler** `Dispatcher.pipeline.handler` Returns: `stream.Duplex` Calls `options.dispatch.pipeline(options, handler)`. See [Dispatcher.pipeline](./docs/docs/api/Dispatcher.md#dispatcherpipelineoptions-handler) for more details. ### `undici.connect([url, options]): Promise` Starts two-way communications with the requested resource using [HTTP CONNECT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT). Arguments: * **url** `string | URL | UrlObject` * **options** [`ConnectOptions`](./docs/docs/api/Dispatcher.md#parameter-connectoptions) * **dispatcher** `Dispatcher` - Default: [getGlobalDispatcher](#undicigetglobaldispatcher) * **callback** `(err: Error | null, data: ConnectData | null) => void` (optional) Returns a promise with the result of the `Dispatcher.connect` method. Calls `options.dispatch.connect(options)`. See [Dispatcher.connect](./docs/docs/api/Dispatcher.md#dispatcherconnectoptions-callback) for more details. ### `undici.fetch(input[, init]): Promise` Implements [fetch](https://fetch.spec.whatwg.org/#fetch-method). * https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch * https://fetch.spec.whatwg.org/#fetch-method Basic usage example: ```js import { fetch } from 'undici' const res = await fetch('https://example.com') const json = await res.json() console.log(json) ``` You can pass an optional dispatcher to `fetch` as: ```js import { fetch, Agent } from 'undici' const res = await fetch('https://example.com', { // Mocks are also supported dispatcher: new Agent({ keepAliveTimeout: 10, keepAliveMaxTimeout: 10 }) }) const json = await res.json() console.log(json) ``` #### `request.body` A body can be of the following types: - ArrayBuffer - ArrayBufferView - AsyncIterables - Blob - Iterables - String - URLSearchParams - FormData In this implementation of fetch, ```request.body``` now accepts ```Async Iterables```. It is not present in the [Fetch Standard](https://fetch.spec.whatwg.org). ```js import { fetch } from 'undici' const data = { async *[Symbol.asyncIterator]() { yield 'hello' yield 'world' }, } await fetch('https://example.com', { body: data, method: 'POST', duplex: 'half' }) ``` [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData) besides text data and buffers can also utilize streams via [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) objects: ```js import { openAsBlob } from 'node:fs' const file = await openAsBlob('./big.csv') const body = new FormData() body.set('file', file, 'big.csv') await fetch('http://example.com', { method: 'POST', body }) ``` #### `request.duplex` - `'half'` In this implementation of fetch, `request.duplex` must be set if `request.body` is `ReadableStream` or `Async Iterables`, however, even though the value must be set to `'half'`, it is actually a _full_ duplex. For more detail refer to the [Fetch Standard](https://fetch.spec.whatwg.org/#dom-requestinit-duplex). #### `response.body` Nodejs has two kinds of streams: [web streams](https://nodejs.org/api/webstreams.html), which follow the API of the WHATWG web standard found in browsers, and an older Node-specific [streams API](https://nodejs.org/api/stream.html). `response.body` returns a readable web stream. If you would prefer to work with a Node stream you can convert a web stream using `.fromWeb()`. ```js import { fetch } from 'undici' import { Readable } from 'node:stream' const response = await fetch('https://example.com') const readableWebStream = response.body const readableNodeStream = Readable.fromWeb(readableWebStream) ``` ## Specification Compliance This section documents parts of the [HTTP/1.1](https://www.rfc-editor.org/rfc/rfc9110.html) and [Fetch Standard](https://fetch.spec.whatwg.org) that Undici does not support or does not fully implement. #### CORS Unlike browsers, Undici does not implement CORS (Cross-Origin Resource Sharing) checks by default. This means: - No preflight requests are automatically sent for cross-origin requests - No validation of `Access-Control-Allow-Origin` headers is performed - Requests to any origin are allowed regardless of the source This behavior is intentional for server-side environments where CORS restrictions are typically unnecessary. If your application requires CORS-like protections, you will need to implement these checks manually. #### Garbage Collection * https://fetch.spec.whatwg.org/#garbage-collection The [Fetch Standard](https://fetch.spec.whatwg.org) allows users to skip consuming the response body by relying on [garbage collection](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management#garbage_collection) to release connection resources. Garbage collection in Node is less aggressive and deterministic (due to the lack of clear idle periods that browsers have through the rendering refresh rate) which means that leaving the release of connection resources to the garbage collector can lead to excessive connection usage, reduced performance (due to less connection re-use), and even stalls or deadlocks when running out of connections. Therefore, __it is important to always either consume or cancel the response body anyway__. ```js // Do const { body, headers } = await fetch(url); for await (const chunk of body) { // force consumption of body } // Do not const { headers } = await fetch(url); ``` However, if you want to get only headers, it might be better to use `HEAD` request method. Usage of this method will obviate the need for consumption or cancelling of the response body. See [MDN - HTTP - HTTP request methods - HEAD](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD) for more details. ```js const headers = await fetch(url, { method: 'HEAD' }) .then(res => res.headers) ``` Note that consuming the response body is _mandatory_ for `request`: ```js // Do const { body, headers } = await request(url); await body.dump(); // force consumption of body // Do not const { headers } = await request(url); ``` #### Forbidden and Safelisted Header Names * https://fetch.spec.whatwg.org/#cors-safelisted-response-header-name * https://fetch.spec.whatwg.org/#forbidden-header-name * https://fetch.spec.whatwg.org/#forbidden-response-header-name * https://github.com/wintercg/fetch/issues/6 The [Fetch Standard](https://fetch.spec.whatwg.org) requires implementations to exclude certain headers from requests and responses. In browser environments, some headers are forbidden so the user agent remains in full control over them. In Undici, these constraints are removed to give more control to the user. #### Content-Encoding * https://www.rfc-editor.org/rfc/rfc9110#field.content-encoding Undici limits the number of `Content-Encoding` layers in a response to **5** to prevent resource exhaustion attacks. If a server responds with more than 5 content-encodings (e.g., `Content-Encoding: gzip, gzip, gzip, gzip, gzip, gzip`), the fetch will be rejected with an error. This limit matches the approach taken by [curl](https://curl.se/docs/CVE-2022-32206.html) and [urllib3](https://github.com/advisories/GHSA-gm62-xv2j-4rw9). #### `undici.upgrade([url, options]): Promise` Upgrade to a different protocol. See [MDN - HTTP - Protocol upgrade mechanism](https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism) for more details. Arguments: * **url** `string | URL | UrlObject` * **options** [`UpgradeOptions`](./docs/docs/api/Dispatcher.md#parameter-upgradeoptions) * **dispatcher** `Dispatcher` - Default: [getGlobalDispatcher](#undicigetglobaldispatcher) * **callback** `(error: Error | null, data: UpgradeData) => void` (optional) Returns a promise with the result of the `Dispatcher.upgrade` method. Calls `options.dispatcher.upgrade(options)`. See [Dispatcher.upgrade](./docs/docs/api/Dispatcher.md#dispatcherupgradeoptions-callback) for more details. ### `undici.setGlobalDispatcher(dispatcher)` * dispatcher `Dispatcher` Sets the global dispatcher used by Common API Methods. Global dispatcher is shared among compatible undici modules, including undici that is bundled internally with node.js. Undici stores this dispatcher under `Symbol.for('undici.globalDispatcher.2')`. `setGlobalDispatcher()` also mirrors the configured dispatcher to `Symbol.for('undici.globalDispatcher.1')` using `Dispatcher1Wrapper`, so Node.js built-in `fetch` can keep using the legacy handler contract while Undici uses the new handler API. ### `undici.getGlobalDispatcher()` Gets the global dispatcher used by Common API Methods. Returns: `Dispatcher` ### `undici.setGlobalOrigin(origin)` * origin `string | URL | undefined` Sets the global origin used in `fetch`. If `undefined` is passed, the global origin will be reset. This will cause `Response.redirect`, `new Request()`, and `fetch` to throw an error when a relative path is passed. ```js setGlobalOrigin('http://localhost:3000') const response = await fetch('/api/ping') console.log(response.url) // http://localhost:3000/api/ping ``` ### `undici.getGlobalOrigin()` Gets the global origin used in `fetch`. Returns: `URL` ### `UrlObject` * **port** `string | number` (optional) * **path** `string` (optional) * **pathname** `string` (optional) * **hostname** `string` (optional) * **origin** `string` (optional) * **protocol** `string` (optional) * **search** `string` (optional) #### Expect Undici does not support the `Expect` request header field. The request body is always immediately sent and the `100 Continue` response will be ignored. Refs: https://tools.ietf.org/html/rfc7231#section-5.1.1 #### Pipelining Undici will only use pipelining if configured with a `pipelining` factor greater than `1`. Only enable pipelining when the remote server is trusted. Also it is important to pass `blocking: false` to the request options to properly pipeline requests. Undici always assumes that connections are persistent and will immediately pipeline requests, without checking whether the connection is persistent. Hence, automatic fallback to HTTP/1.0 or HTTP/1.1 without pipelining is not supported. Undici will immediately pipeline when retrying requests after a failed connection. However, Undici will not retry the first remaining requests in the prior pipeline and instead error the corresponding callback/promise/stream. Undici will abort all running requests in the pipeline when any of them are aborted. * Refs: https://tools.ietf.org/html/rfc2616#section-8.1.2.2 * Refs: https://tools.ietf.org/html/rfc7230#section-6.3.2 #### Manual Redirect Since it is not possible to manually follow an HTTP redirect on the server-side, Undici returns the actual response instead of an `opaqueredirect` filtered one when invoked with a `manual` redirect. This aligns `fetch()` with the other implementations in Deno and Cloudflare Workers. Refs: https://fetch.spec.whatwg.org/#atomic-http-redirect-handling ### Workarounds #### Network address family autoselection. If you experience problem when connecting to a remote server that is resolved by your DNS servers to a IPv6 (AAAA record) first, there are chances that your local router or ISP might have problem connecting to IPv6 networks. In that case undici will throw an error with code `UND_ERR_CONNECT_TIMEOUT`. If the target server resolves to both a IPv6 and IPv4 (A records) address and you are using a compatible Node version (18.3.0 and above), you can fix the problem by providing the `autoSelectFamily` option (support by both `undici.request` and `undici.Agent`) which will enable the family autoselection algorithm when establishing the connection. ## Collaborators * [__Aras Abbasi__](https://github.com/Uzlopak) * [__Carlos Fuentes__](https://github.com/metcoder95), * [__Ethan Arrowood__](https://github.com/Ethan-Arrowood), * [__Matteo Collina__](https://github.com/mcollina), * [__Matthew Aitken__](https://github.com/KhafraDev), * [__Mert Can Altin__](https://github.com/mertcanaltin), * [__Robert Nagy__](https://github.com/ronag), * [__Trivikram Kamat__](https://github.com/trivikr), * [__tsctx__](https://github.com/tsctx) ## Past Collaborators * [__Szymon Marczak__](https://github.com/szmarczak), * [__Tomas Della Vedova__](https://github.com/delvedor), ### Releasers * [__Ethan Arrowood__](https://github.com/ethan-arrowood), * [__Matteo Collina__](https://github.com/mcollina), * [__Robert Nagy__](https://github.com/ronag), * [__Matthew Aitken__](https://github.com/KhafraDev), ## Long Term Support Undici aligns with the Node.js LTS schedule. The following table shows the supported versions: | Undici Version | Bundled in Node.js | Node.js Versions Supported | End of Life | |----------------|--------------------|----------------------------|-------------| | 5.x | 18.x | ≥14.0 (tested: 14, 16, 18) | 2024-04-30 | | 6.x | 20.x, 22.x | ≥18.17 (tested: 18, 20, 21, 22) | 2027-04-30 | | 7.x | 24.x | ≥20.18.1 (tested: 20, 22, 24) | 2028-04-30 | | 8.x | 26.x | ≥22.19.0 (tested: 22, 24, 26) | 2029-04-30 | ## License MIT --- END ORIGINAL BYTES --- --- Original license: package/lib/milo/LICENSE.md SHA-256: ca5cc852fbcbe4598fe1f8b04c103c8073a64fa9cbb14b358bfdd87232ae8bd9; bytes: 788 --- BEGIN ORIGINAL BYTES --- ISC License Copyright (c) 2023, and above Paolo Insogna, NearForm and other contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original license: package/lib/web/fetch/LICENSE SHA-256: a21d6c8d3fc631198b97e57584697f7f9c37805c71c6cf9a12e4442b40394b88; bytes: 1071 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2020 Ethan Arrowood 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. --- END ORIGINAL BYTES --- ================================================================ undici-types@6.21.0 Declared package license: MIT Published archive: https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz Locked integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a6db8096b2707bc0102d256917d4d33f298ba36d8c3f25de067a2b5bb379db27; bytes: 1090 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Matteo Collina and Undici contributors 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. --- END ORIGINAL BYTES --- ================================================================ undici-types@7.24.6 Declared package license: MIT Published archive: https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz Locked integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: a6db8096b2707bc0102d256917d4d33f298ba36d8c3f25de067a2b5bb379db27; bytes: 1090 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Matteo Collina and Undici contributors 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. --- END ORIGINAL BYTES --- ================================================================ unicode-trie@2.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/unicode-trie/-/unicode-trie-2.0.0.tgz Locked integrity: sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 43439dbd4f43837aadab215cdbe5a422cc6323a50c4ea84d8d6bbc3671666a1d; bytes: 1040 --- BEGIN ORIGINAL BYTES --- Copyright 2018 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 70e122e02240fbaea27ea185329930b0e5fa3ead0ac8b4825e24a93a747699e0; bytes: 2411 --- BEGIN ORIGINAL BYTES --- # unicode-trie A data structure for fast Unicode character metadata lookup, ported from ICU ## Background When implementing many Unicode algorithms such as text segmentation, normalization, bidi processing, etc., fast access to character metadata is crucial to good performance. There over a million code points in the Unicode standard, many of which produce the same result when looked up, so an array or hash table is not appropriate - those data structures are fast but would require a lot of memory. The data is generally grouped in ranges, so you could do a binary search, but that is not fast enough for some applications. The [International Components for Unicode](http://site.icu-project.org) (ICU) project came up with a data structure based on a [Trie](http://en.wikipedia.org/wiki/Trie) that provides fast access to Unicode metadata. The range data is precompiled to a serialized and flattened trie, which is then used at runtime to lookup the necessary data. According to my own tests, this is generally at least 50% faster than binary search, with not too much additional memory required. ## Installation npm install unicode-trie ## Building a Trie Unicode Tries are generally precompiled from data in the Unicode database for faster runtime performance. To build a Unicode Trie, use the `UnicodeTrieBuilder` class. ```js const UnicodeTrieBuilder = require('unicode-trie/builder'); const fs = require('fs'); // create a trie let t = new UnicodeTrieBuilder(); // optional parameters for default value, and error value // if not provided, both are set to 0 t = new UnicodeTrieBuilder(10, 999); // set individual values and ranges t.set(0x4567, 99); t.setRange(0x40, 0xe7, 0x1234); // you can lookup a value if you like t.get(0x4567); // => 99 // get a compiled trie (returns a UnicodeTrie object) const trie = t.freeze(); // write compressed trie to a binary file fs.writeFileSync('data.trie', t.toBuffer()); ``` ## Using a precompiled Trie Once you've built a precompiled trie, you can load it into the `UnicodeTrie` class, which is a readonly representation of the trie. From there, you can lookup values. ```js const UnicodeTrie = require('unicode-trie'); const fs = require('fs'); // load serialized trie from binary file const data = fs.readFileSync('data.trie'); const trie = new UnicodeTrie(data); // lookup a value trie.get(0x4567); // => 99 ``` ## License MIT --- END ORIGINAL BYTES --- ================================================================ unified@11.0.5 Declared package license: MIT Published archive: https://registry.npmjs.org/unified/-/unified-11.0.5.tgz Locked integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 05811400116ed61f1a7693b78fe8ca6598c155a12f3978e609db4df648a4cb3d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: b3593109fd9d60d79ba63a463b92fd33c629bf30f2b2ecbc0bf4cda8bb4f53f9; bytes: 49441 --- BEGIN ORIGINAL BYTES --- # [![unified][logo]][site] [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] **unified** lets you inspect and transform content with plugins. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [Overview](#overview) * [API](#api) * [`processor()`](#processor) * [`processor.compiler`](#processorcompiler) * [`processor.data([key[, value]])`](#processordatakey-value) * [`processor.freeze()`](#processorfreeze) * [`processor.parse(file)`](#processorparsefile) * [`processor.parser`](#processorparser) * [`processor.process(file[, done])`](#processorprocessfile-done) * [`processor.processSync(file)`](#processorprocesssyncfile) * [`processor.run(tree[, file][, done])`](#processorruntree-file-done) * [`processor.runSync(tree[, file])`](#processorrunsynctree-file) * [`processor.stringify(tree[, file])`](#processorstringifytree-file) * [`processor.use(plugin[, options])`](#processoruseplugin-options) * [`CompileResultMap`](#compileresultmap) * [`CompileResults`](#compileresults) * [`Compiler`](#compiler) * [`Data`](#data) * [`Parser`](#parser) * [`Pluggable`](#pluggable) * [`PluggableList`](#pluggablelist) * [`Plugin`](#plugin) * [`PluginTuple`](#plugintuple) * [`Preset`](#preset) * [`ProcessCallback`](#processcallback) * [`Processor`](#processor-1) * [`RunCallback`](#runcallback) * [`Settings`](#settings) * [`TransformCallback`](#transformcallback) * [`Transformer`](#transformer) * [Types](#types) * [Compatibility](#compatibility) * [Contribute](#contribute) * [Sponsor](#sponsor) * [Acknowledgments](#acknowledgments) * [License](#license) ## What is this? unified is two things: * **unified** is a collective of 500+ free and open source packages that work with content as structured data (ASTs) * `unified` (this project) is the core package, used in 1.3m+ projects on GH, to process content with plugins Several ecosystems are built on unified around different kinds of content. Notably, [remark][] (markdown), [rehype][] (HTML), and [retext][] (natural language). These ecosystems can be connected together. * for more about us, see [`unifiedjs.com`][site] * for updates, see [@unifiedjs][twitter] on Twitter * for questions, see [support][] * to help, see [contribute][] and [sponsor][] below ## When should I use this? In some cases, you are already using unified. For example, it’s used in MDX, Gatsby, Docusaurus, etc. In those cases, you don’t need to add `unified` yourself but you can include plugins into those projects. But the real fun (for some) is to get your hands dirty and work with syntax trees and build with it yourself. You can create those projects, or things like Prettier, or your own site generator. You can connect utilities together and make your own plugins that check for problems and transform from one thing to another. When you are dealing with one type of content (such as markdown), you can use the main package of that ecosystem instead (so `remark`). When you are dealing with different kinds of content (such as markdown and HTML), it’s recommended to use `unified` itself, and pick and choose the plugins you need. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install unified ``` In Deno with [`esm.sh`][esmsh]: ```js import {unified} from 'https://esm.sh/unified@11' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import rehypeDocument from 'rehype-document' import rehypeFormat from 'rehype-format' import rehypeStringify from 'rehype-stringify' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' import {unified} from 'unified' import {reporter} from 'vfile-reporter' const file = await unified() .use(remarkParse) .use(remarkRehype) .use(rehypeDocument, {title: '👋🌍'}) .use(rehypeFormat) .use(rehypeStringify) .process('# Hello world!') console.error(reporter(file)) console.log(String(file)) ``` Yields: ```txt no issues found ``` ```html 👋🌍

Hello world!

``` ## Overview `unified` is an interface for processing content with syntax trees. Syntax trees are a representation of content understandable to programs. Those programs, called *[plugins][api-plugin]*, take these trees and inspect and modify them. To get to the syntax tree from text, there is a *[parser][api-parser]*. To get from that back to text, there is a *[compiler][api-compiler]*. This is the *[process][api-process]* of a *processor*. ```ascii | ........................ process ........................... | | .......... parse ... | ... run ... | ... stringify ..........| +--------+ +----------+ Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output +--------+ | +----------+ X | +--------------+ | Transformers | +--------------+ ``` ###### Processors Processors process content. On its own, `unified` (the root processor) doesn’t work. It needs to be configured with plugins to work. For example: ```js const processor = unified() .use(remarkParse) .use(remarkRehype) .use(rehypeDocument, {title: '👋🌍'}) .use(rehypeFormat) .use(rehypeStringify) ``` That processor can do different things. It can: * …parse markdown (`parse`) * …turn parsed markdown into HTML and format the HTML (`run`) * …compile HTML (`stringify`) * …do all of the above (`process`) Every processor implements another processor. To create a processor, call another processor. The new processor is configured to work the same as its ancestor. But when the descendant processor is configured in the future it does not affect the ancestral processor. When processors are exposed from a module (for example, `unified` itself) they should not be configured directly, as that would change their behavior for all module users. Those processors are *[frozen][api-freeze]* and they should be called to create a new processor before they are used. ###### File When processing a document, metadata is gathered about that document. [`vfile`][vfile] is the file format that stores data, metadata, and messages about files for unified and plugins. There are several [utilities][vfile-utilities] for working with these files. ###### Syntax tree The syntax trees used in unified are [unist][] nodes. A tree represents a whole document and each [node][] is a plain JavaScript object with a `type` field. The semantics of nodes and the format of syntax trees is defined by other projects: * [esast][] — JavaScript * [hast][] — HTML * [mdast][] — markdown * [nlcst][] — natural language * [xast][] — XML There are many utilities for working with trees listed in each aforementioned project and maintained in the [`syntax-tree`][syntax-tree] organization. These utilities are a level lower than unified itself and are building blocks that can be used to make plugins. ###### Ecosystems Around each syntax tree is an ecosystem that focusses on that particular kind of content. At their core, they parse text to a tree and compile that tree back to text. They also provide plugins that work with the syntax tree, without requiring that the end user has knowledge about that tree. * [rehype][] (hast) — HTML * [remark][] (mdast) — markdown * [retext][] (nlcst) — natural language ###### Plugins Each aforementioned ecosystem comes with a large set of plugins that you can pick and choose from to do all kinds of things. * [List of remark plugins][remark-plugins] · [`remarkjs/awesome-remark`][awesome-remark] · [`remark-plugin` topic][topic-remark-plugin] * [List of rehype plugins][rehype-plugins] · [`rehypejs/awesome-rehype`][awesome-rehype] · [`rehype-plugin` topic][topic-rehype-plugin] * [List of retext plugins][retext-plugins] · [`retextjs/awesome-retext`][awesome-retext] · [`retext-plugin` topic][topic-retext-plugin] There are also a few plugins that work in any ecosystem: * [`unified-diff`](https://github.com/unifiedjs/unified-diff) — ignore unrelated messages in GitHub Actions and Travis * [`unified-infer-git-meta`](https://github.com/unifiedjs/unified-infer-git-meta) — infer metadata of a document from Git * [`unified-message-control`](https://github.com/unifiedjs/unified-message-control) — enable, disable, and ignore messages from content ###### Configuration Processors are configured with [plugins][api-plugin] or with the [`data`][api-data] method. Most plugins also accept configuration through options. See each plugin’s readme for more info. ###### Integrations unified can integrate with the file system through [`unified-engine`][unified-engine]. CLI apps can be created with [`unified-args`][unified-args], Gulp plugins with [`unified-engine-gulp`][unified-engine-gulp], and language servers with [`unified-language-server`][unified-language-server]. A streaming interface can be created with [`unified-stream`][unified-stream]. ###### Programming interface The [API][] provided by `unified` allows multiple files to be processed and gives access to metadata (such as lint messages): ```js import rehypeStringify from 'rehype-stringify' import remarkParse from 'remark-parse' import remarkPresetLintMarkdownStyleGuide from 'remark-preset-lint-markdown-style-guide' import remarkRehype from 'remark-rehype' import remarkRetext from 'remark-retext' import retextEnglish from 'retext-english' import retextEquality from 'retext-equality' import {unified} from 'unified' import {reporter} from 'vfile-reporter' const file = await unified() .use(remarkParse) .use(remarkPresetLintMarkdownStyleGuide) .use(remarkRetext, unified().use(retextEnglish).use(retextEquality)) .use(remarkRehype) .use(rehypeStringify) .process('*Emphasis* and _stress_, you guys!') console.error(reporter(file)) console.log(String(file)) ``` Yields: ```txt 1:16-1:24 warning Emphasis should use `*` as a marker emphasis-marker remark-lint 1:30-1:34 warning `guys` may be insensitive, use `people`, `persons`, `folks` instead gals-man retext-equality ⚠ 2 warnings ``` ```html

Emphasis and stress, you guys!

``` ###### Transforming between ecosystems Ecosystems can be combined in two modes. **Bridge** mode transforms the tree from one format (*origin*) to another (*destination*). A different processor runs on the destination tree. Afterwards, the original processor continues with the origin tree. **Mutate** mode also transforms the syntax tree from one format to another. But the original processor continues transforming the destination tree. In the previous example (“Programming interface”), `remark-retext` is used in bridge mode: the origin syntax tree is kept after retext is done; whereas `remark-rehype` is used in mutate mode: it sets a new syntax tree and discards the origin tree. The following plugins lets you combine ecosystems: * [`remark-retext`][remark-retext] — turn markdown into natural language * [`remark-rehype`][remark-rehype] — turn markdown into HTML * [`rehype-retext`][rehype-retext] — turn HTML into natural language * [`rehype-remark`][rehype-remark] — turn HTML into markdown ## API This package exports the identifier `unified` (the root `processor`). There is no default export. ### `processor()` Create a new processor. ###### Returns New *[unfrozen][api-freeze]* processor ([`processor`][api-processor]). This processor is configured to work the same as its ancestor. When the descendant processor is configured in the future it does not affect the ancestral processor. ###### Example This example shows how a new processor can be created (from `remark`) and linked to **stdin**(4) and **stdout**(4). ```js import process from 'node:process' import concatStream from 'concat-stream' import {remark} from 'remark' process.stdin.pipe( concatStream(function (buf) { process.stdout.write(String(remark().processSync(buf))) }) ) ``` ### `processor.compiler` Compiler to use ([`Compiler`][api-compiler], optional). ### `processor.data([key[, value]])` Configure the processor with info available to all plugins. Information is stored in an object. Typically, options can be given to a specific plugin, but sometimes it makes sense to have information shared with several plugins. For example, a list of HTML elements that are self-closing, which is needed during all [phases][overview]. > 👉 **Note**: setting information cannot occur on *[frozen][api-freeze]* > processors. > Call the processor first to create a new unfrozen processor. > 👉 **Note**: to register custom data in TypeScript, augment the > [`Data`][api-data] interface. ###### Signatures * `processor = processor.data(key, value)` * `processor = processor.data(dataset)` * `value = processor.data(key)` * `dataset = processor.data()` ###### Parameters * `key` ([`keyof Data`][api-data], optional) — field to get * `value` ([`Data[key]`][api-data]) — value to set * `values` ([`Data`][api-data]) — values to set ###### Returns The current processor when setting ([`processor`][api-processor]), the value at `key` when getting ([`Data[key]`][api-data]), or the entire dataset when getting without key ([`Data`][api-data]). ###### Example This example show how to get and set info: ```js import {unified} from 'unified' const processor = unified().data('alpha', 'bravo') processor.data('alpha') // => 'bravo' processor.data() // => {alpha: 'bravo'} processor.data({charlie: 'delta'}) processor.data() // => {charlie: 'delta'} ``` ### `processor.freeze()` Freeze a processor. Frozen processors are meant to be extended and not to be configured directly. When a processor is frozen it cannot be unfrozen. New processors working the same way can be created by calling the processor. It’s possible to freeze processors explicitly by calling `.freeze()`. Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`, `.stringify()`, `.process()`, or `.processSync()` are called. ###### Returns The current processor ([`processor`][api-processor]). ###### Example This example, `index.js`, shows how `rehype` prevents extensions to itself: ```js import rehypeParse from 'rehype-parse' import rehypeStringify from 'rehype-stringify' import {unified} from 'unified' export const rehype = unified().use(rehypeParse).use(rehypeStringify).freeze() ``` That processor can be used and configured like so: ```js import {rehype} from 'rehype' import rehypeFormat from 'rehype-format' // … rehype() .use(rehypeFormat) // … ``` A similar looking example is broken as operates on the frozen interface. If this behavior was allowed it would result in unexpected behavior so an error is thrown. **This is not valid**: ```js import {rehype} from 'rehype' import rehypeFormat from 'rehype-format' // … rehype .use(rehypeFormat) // … ``` Yields: ```txt ~/node_modules/unified/index.js:426 throw new Error( ^ Error: Cannot call `use` on a frozen processor. Create a new processor first, by calling it: use `processor()` instead of `processor`. at assertUnfrozen (~/node_modules/unified/index.js:426:11) at Function.use (~/node_modules/unified/index.js:165:5) … ``` ### `processor.parse(file)` Parse text to a syntax tree. > 👉 **Note**: `parse` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `parse` performs the [parse phase][overview], not the run phase > or other phases. ###### Parameters * `file` ([`Compatible`][vfile-compatible]) — file to parse; typically `string` or [`VFile`][vfile]; any value accepted as `x` in `new VFile(x)` ###### Returns Syntax tree representing `file` ([`Node`][node]). ###### Example This example shows how `parse` can be used to create a tree from a file. ```js import remarkParse from 'remark-parse' import {unified} from 'unified' const tree = unified().use(remarkParse).parse('# Hello world!') console.log(tree) ``` Yields: ```js { type: 'root', children: [ {type: 'heading', depth: 1, children: [Array], position: [Object]} ], position: { start: {line: 1, column: 1, offset: 0}, end: {line: 1, column: 15, offset: 14} } } ``` ### `processor.parser` Parser to use ([`Parser`][api-parser], optional). ### `processor.process(file[, done])` Process the given file as configured on the processor. > 👉 **Note**: `process` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `process` performs the [parse, run, and stringify > phases][overview]. ###### Signatures * `processor.process(file, done)` * `Promise = processor.process(file?)` ###### Parameters * `file` ([`Compatible`][vfile-compatible], optional) — file; typically `string` or [`VFile`][vfile]; any value accepted as `x` in `new VFile(x)` * `done` ([`ProcessCallback`][api-process-callback], optional) — callback ###### Returns Nothing if `done` is given (`undefined`). Otherwise a promise, rejected with a fatal error or resolved with the processed file ([`Promise`][vfile]). The parsed, transformed, and compiled value is available at `file.value` (see note). > 👉 **Note**: unified typically compiles by serializing: most > compilers return `string` (or `Uint8Array`). > Some compilers, such as the one configured with > [`rehype-react`][rehype-react], return other values (in this case, a React > tree). > If you’re using a compiler that doesn’t serialize, expect different result > values. > > To register custom results in TypeScript, add them to > [`CompileResultMap`][api-compile-result-map]. ###### Example This example shows how `process` can be used to process a file: ```js import rehypeDocument from 'rehype-document' import rehypeFormat from 'rehype-format' import rehypeStringify from 'rehype-stringify' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' import {unified} from 'unified' const file = await unified() .use(remarkParse) .use(remarkRehype) .use(rehypeDocument, {title: '👋🌍'}) .use(rehypeFormat) .use(rehypeStringify) .process('# Hello world!') console.log(String(file)) ``` Yields: ```html 👋🌍

Hello world!

``` ### `processor.processSync(file)` Process the given file as configured on the processor. An error is thrown if asynchronous transforms are configured. > 👉 **Note**: `processSync` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `processSync` performs the [parse, run, and stringify > phases][overview]. ###### Parameters * `file` ([`Compatible`][vfile-compatible], optional) — file; typically `string` or [`VFile`][vfile]; any value accepted as `x` in `new VFile(x)` ###### Returns The processed file ([`VFile`][vfile]). The parsed, transformed, and compiled value is available at `file.value` (see note). > 👉 **Note**: unified typically compiles by serializing: most > compilers return `string` (or `Uint8Array`). > Some compilers, such as the one configured with > [`rehype-react`][rehype-react], return other values (in this case, a React > tree). > If you’re using a compiler that doesn’t serialize, expect different result > values. > > To register custom results in TypeScript, add them to > [`CompileResultMap`][api-compile-result-map]. ###### Example This example shows how `processSync` can be used to process a file, if all transformers are synchronous. ```js import rehypeDocument from 'rehype-document' import rehypeFormat from 'rehype-format' import rehypeStringify from 'rehype-stringify' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' import {unified} from 'unified' const processor = unified() .use(remarkParse) .use(remarkRehype) .use(rehypeDocument, {title: '👋🌍'}) .use(rehypeFormat) .use(rehypeStringify) console.log(String(processor.processSync('# Hello world!'))) ``` Yields: ```html 👋🌍

Hello world!

``` ### `processor.run(tree[, file][, done])` Run *[transformers][api-transformer]* on a syntax tree. > 👉 **Note**: `run` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `run` performs the [run phase][overview], not other phases. ###### Signatures * `processor.run(tree, done)` * `processor.run(tree, file, done)` * `Promise = processor.run(tree, file?)` ###### Parameters * `tree` ([`Node`][node]) — tree to transform and inspect * `file` ([`Compatible`][vfile-compatible], optional) — file associated with `node`; any value accepted as `x` in `new VFile(x)` * `done` ([`RunCallback`][api-run-callback], optional) — callback ###### Returns Nothing if `done` is given (`undefined`). Otherwise, a promise rejected with a fatal error or resolved with the transformed tree ([`Promise`][node]). ###### Example This example shows how `run` can be used to transform a tree: ```js import remarkReferenceLinks from 'remark-reference-links' import {unified} from 'unified' import {u} from 'unist-builder' const tree = u('root', [ u('paragraph', [ u('link', {href: 'https://example.com'}, [u('text', 'Example Domain')]) ]) ]) const changedTree = await unified().use(remarkReferenceLinks).run(tree) console.log(changedTree) ``` Yields: ```js { type: 'root', children: [ {type: 'paragraph', children: [Array]}, {type: 'definition', identifier: '1', title: '', url: undefined} ] } ``` ### `processor.runSync(tree[, file])` Run *[transformers][api-transformer]* on a syntax tree. An error is thrown if asynchronous transforms are configured. > 👉 **Note**: `runSync` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `runSync` performs the [run phase][overview], not other phases. ###### Parameters * `tree` ([`Node`][node]) — tree to transform and inspect * `file` ([`Compatible`][vfile-compatible], optional) — file associated with `node`; any value accepted as `x` in `new VFile(x)` ###### Returns Transformed tree ([`Node`][node]). ### `processor.stringify(tree[, file])` Compile a syntax tree. > 👉 **Note**: `stringify` freezes the processor if not already > *[frozen][api-freeze]*. > 👉 **Note**: `stringify` performs the [stringify phase][overview], not the run > phase or other phases. ###### Parameters * `tree` ([`Node`][node]) — tree to compile * `file` ([`Compatible`][vfile-compatible], optional) — file associated with `node`; any value accepted as `x` in `new VFile(x)` ###### Returns Textual representation of the tree (`Uint8Array` or `string`, see note). > 👉 **Note**: unified typically compiles by serializing: most compilers > return `string` (or `Uint8Array`). > Some compilers, such as the one configured with > [`rehype-react`][rehype-react], return other values (in this case, a > React tree). > If you’re using a compiler that doesn’t serialize, expect different > result values. > > To register custom results in TypeScript, add them to > [`CompileResultMap`][api-compile-result-map]. ###### Example This example shows how `stringify` can be used to serialize a syntax tree: ```js import {h} from 'hastscript' import rehypeStringify from 'rehype-stringify' import {unified} from 'unified' const tree = h('h1', 'Hello world!') const document = unified().use(rehypeStringify).stringify(tree) console.log(document) ``` Yields: ```html

Hello world!

``` ### `processor.use(plugin[, options])` Configure the processor to use a plugin, a list of usable values, or a preset. If the processor is already using a plugin, the previous plugin configuration is changed based on the options that are passed in. In other words, the plugin is not added a second time. > 👉 **Note**: `use` cannot be called on [*frozen*][api-freeze] processors. > Call the processor first to create a new unfrozen processor. ###### Signatures * `processor.use(preset?)` * `processor.use(list)` * `processor.use(plugin[, ...parameters])` ###### Parameters * `preset` ([`Preset`][api-preset]) — plugins and settings * `list` ([`PluggableList`][api-pluggable-list]) — list of usable things * `plugin` ([`Plugin`][api-plugin]) — plugin * `parameters` (`Array`) — configuration for `plugin`, typically a single options object ###### Returns Current processor ([`processor`][api-processor]). ###### Example There are many ways to pass plugins to `.use()`. This example gives an overview: ```js import {unified} from 'unified' unified() // Plugin with options: .use(pluginA, {x: true, y: true}) // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`): .use(pluginA, {y: false, z: true}) // Plugins: .use([pluginB, pluginC]) // Two plugins, the second with options: .use([pluginD, [pluginE, {}]]) // Preset with plugins and settings: .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}}) // Settings only: .use({settings: {position: false}}) ``` ### `CompileResultMap` Interface of known results from compilers (TypeScript type). Normally, compilers result in text ([`Value`][vfile-value] of `vfile`). When you compile to something else, such as a React node (as in, `rehype-react`), you can augment this interface to include that type. ```ts import type {ReactNode} from 'somewhere' declare module 'unified' { interface CompileResultMap { // Register a new result (value is used, key should match it). ReactNode: ReactNode } } export {} // You may not need this, but it makes sure the file is a module. ``` Use [`CompileResults`][api-compile-results] to access the values. ###### Type ```ts interface CompileResultMap { // Note: if `Value` from `VFile` is changed, this should too. Uint8Array: Uint8Array string: string } ``` ### `CompileResults` Acceptable results from compilers (TypeScript type). To register custom results, add them to [`CompileResultMap`][api-compile-result-map]. ###### Type ```ts type CompileResults = CompileResultMap[keyof CompileResultMap] ``` ### `Compiler` A **compiler** handles the compiling of a syntax tree to something else (in most cases, text) (TypeScript type). It is used in the stringify phase and called with a [`Node`][node] and [`VFile`][vfile] representation of the document to compile. It should return the textual representation of the given tree (typically `string`). > 👉 **Note**: unified typically compiles by serializing: most compilers > return `string` (or `Uint8Array`). > Some compilers, such as the one configured with > [`rehype-react`][rehype-react], return other values (in this case, a > React tree). > If you’re using a compiler that doesn’t serialize, expect different > result values. > > To register custom results in TypeScript, add them to > [`CompileResultMap`][api-compile-result-map]. ###### Type ```ts type Compiler< Tree extends Node = Node, Result extends CompileResults = CompileResults > = (tree: Tree, file: VFile) => Result ``` ### `Data` Interface of known data that can be supported by all plugins (TypeScript type). Typically, options can be given to a specific plugin, but sometimes it makes sense to have information shared with several plugins. For example, a list of HTML elements that are self-closing, which is needed during all phases. To type this, do something like: ```ts declare module 'unified' { interface Data { htmlVoidElements?: Array | undefined } } export {} // You may not need this, but it makes sure the file is a module. ``` ###### Type ```ts interface Data { settings?: Settings | undefined } ``` See [`Settings`][api-settings] for more info. ### `Parser` A **parser** handles the parsing of text to a syntax tree (TypeScript type). It is used in the parse phase and is called with a `string` and [`VFile`][vfile] of the document to parse. It must return the syntax tree representation of the given file ([`Node`][node]). ###### Type ```ts type Parser = (document: string, file: VFile) => Tree ``` ### `Pluggable` Union of the different ways to add plugins and settings (TypeScript type). ###### Type ```ts type Pluggable = | Plugin, any, any> | PluginTuple, any, any> | Preset ``` See [`Plugin`][api-plugin], [`PluginTuple`][api-plugin-tuple], and [`Preset`][api-preset] for more info. ### `PluggableList` List of plugins and presets (TypeScript type). ###### Type ```ts type PluggableList = Array ``` See [`Pluggable`][api-pluggable] for more info. ### `Plugin` Single plugin (TypeScript type). Plugins configure the processors they are applied on in the following ways: * they change the processor, such as the parser, the compiler, or by configuring data * they specify how to handle trees and files In practice, they are functions that can receive options and configure the processor (`this`). > 👉 **Note**: plugins are called when the processor is *frozen*, not when they > are applied. ###### Type ```ts type Plugin< PluginParameters extends unknown[] = [], Input extends Node | string | undefined = Node, Output = Input > = ( this: Processor, ...parameters: PluginParameters ) => Input extends string // Parser. ? Output extends Node | undefined ? undefined | void : never : Output extends CompileResults // Compiler. ? Input extends Node | undefined ? undefined | void : never : // Inspect/transform. | Transformer< Input extends Node ? Input : Node, Output extends Node ? Output : Node > | undefined | void ``` See [`Transformer`][api-transformer] for more info. ###### Example `move.js`: ```js /** * @typedef Options * Configuration (required). * @property {string} extname * File extension to use (must start with `.`). */ /** @type {import('unified').Plugin<[Options]>} */ export function move(options) { if (!options || !options.extname) { throw new Error('Missing `options.extname`') } return function (_, file) { if (file.extname && file.extname !== options.extname) { file.extname = options.extname } } } ``` `example.md`: ```markdown # Hello, world! ``` `example.js`: ```js import rehypeStringify from 'rehype-stringify' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' import {read, write} from 'to-vfile' import {unified} from 'unified' import {reporter} from 'vfile-reporter' import {move} from './move.js' const file = await unified() .use(remarkParse) .use(remarkRehype) .use(move, {extname: '.html'}) .use(rehypeStringify) .process(await read('example.md')) console.error(reporter(file)) await write(file) // Written to `example.html`. ``` Yields: ```txt example.md: no issues found ``` …and in `example.html`: ```html

Hello, world!

``` ### `PluginTuple` Tuple of a plugin and its configuration (TypeScript type). The first item is a plugin, the rest are its parameters. ###### Type ```ts type PluginTuple< TupleParameters extends unknown[] = [], Input extends Node | string | undefined = undefined, Output = undefined > = [ plugin: Plugin, ...parameters: TupleParameters ] ``` See [`Plugin`][api-plugin] for more info. ### `Preset` Sharable configuration (TypeScript type). They can contain plugins and settings. ###### Fields * `plugins` ([`PluggableList`][api-pluggable-list], optional) — list of plugins and presets * `settings` ([`Data`][api-data], optional) — shared settings for parsers and compilers ###### Example `preset.js`: ```js import remarkCommentConfig from 'remark-comment-config' import remarkLicense from 'remark-license' import remarkPresetLintConsistent from 'remark-preset-lint-consistent' import remarkPresetLintRecommended from 'remark-preset-lint-recommended' import remarkToc from 'remark-toc' /** @type {import('unified').Preset} */ const preset = { plugins: [ remarkPresetLintRecommended, remarkPresetLintConsistent, remarkCommentConfig, [remarkToc, {maxDepth: 3, tight: true}], remarkLicense ] settings: {bullet: '*', emphasis: '*', fences: true}, } export default preset ``` `example.md`: ```markdown # Hello, world! _Emphasis_ and **importance**. ## Table of contents ## API ## License ``` `example.js`: ```js import {remark} from 'remark' import {read, write} from 'to-vfile' import {reporter} from 'vfile-reporter' import preset from './preset.js' const file = await remark() .use(preset) .process(await read('example.md')) console.error(reporter(file)) await write(file) ``` Yields: ```txt example.md: no issues found ``` `example.md` now contains: ```markdown # Hello, world! *Emphasis* and **importance**. ## Table of contents * [API](#api) * [License](#license) ## API ## License [MIT](license) © [Titus Wormer](https://wooorm.com) ``` ### `ProcessCallback` Callback called when the process is done (TypeScript type). Called with either an error or a result. ###### Parameters * `error` (`Error`, optional) — fatal error * `file` ([`VFile`][vfile], optional) — processed file ###### Returns Nothing (`undefined`). ###### Example This example shows how `process` can be used to process a file with a callback. ```js import remarkGithub from 'remark-github' import remarkParse from 'remark-parse' import remarkStringify from 'remark-stringify' import {unified} from 'unified' import {reporter} from 'vfile-reporter' unified() .use(remarkParse) .use(remarkGithub) .use(remarkStringify) .process('@unifiedjs', function (error, file) { if (error) throw error if (file) { console.error(reporter(file)) console.log(String(file)) } }) ``` Yields: ```txt no issues found ``` ```markdown [**@unifiedjs**](https://github.com/unifiedjs) ``` ### `Processor` Type of a [`processor`][api-processor] (TypeScript type). ### `RunCallback` Callback called when transformers are done (TypeScript type). Called with either an error or results. ###### Parameters * `error` (`Error`, optional) — fatal error * `tree` ([`Node`][node], optional) — transformed tree * `file` ([`VFile`][vfile], optional) — file ###### Returns Nothing (`undefined`). ### `Settings` Interface of known extra options, that can be supported by parser and compilers. This exists so that users can use packages such as `remark`, which configure both parsers and compilers (in this case `remark-parse` and `remark-stringify`), and still provide options for them. When you make parsers or compilers, that could be packaged up together, you should support `this.data('settings')` as input and merge it with explicitly passed `options`. Then, to type it, using `remark-stringify` as an example, do something like: ```ts declare module 'unified' { interface Settings { bullet: '*' | '+' | '-' // … } } export {} // You may not need this, but it makes sure the file is a module. ``` ###### Type ```ts interface Settings {} ``` ### `TransformCallback` Callback passed to transforms (TypeScript type). If the signature of a `transformer` accepts a third argument, the transformer may perform asynchronous operations, and must call it. ###### Parameters * `error` (`Error`, optional) — fatal error to stop the process * `tree` ([`Node`][node], optional) — new, changed, tree * `file` ([`VFile`][vfile], optional) — new, changed, file ###### Returns Nothing (`undefined`). ### `Transformer` Transformers handle syntax trees and files (TypeScript type). They are functions that are called each time a syntax tree and file are passed through the run phase. When an error occurs in them (either because it’s thrown, returned, rejected, or passed to `next`), the process stops. The run phase is handled by [`trough`][trough], see its documentation for the exact semantics of these functions. > 👉 **Note**: you should likely ignore `next`: don’t accept it. > it supports callback-style async work. > But promises are likely easier to reason about. ###### Type ```ts type Transformer< Input extends Node = Node, Output extends Node = Input > = ( tree: Input, file: VFile, next: TransformCallback ) => | Promise | Output | Error | undefined ``` ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`CompileResultMap`][api-compile-result-map], [`CompileResults`][api-compile-results], [`Compiler`][api-compiler], [`Data`][api-data], [`Parser`][api-parser], [`Pluggable`][api-pluggable], [`PluggableList`][api-pluggable-list], [`Plugin`][api-plugin], [`PluginTuple`][api-plugin-tuple], [`Preset`][api-preset], [`ProcessCallback`][api-process-callback], [`Processor`][api-processor], [`RunCallback`][api-run-callback], [`Settings`][api-settings], [`TransformCallback`][api-transform-callback], and [`Transformer`][api-transformer] For TypeScript to work, it is particularly important to type your plugins correctly. We strongly recommend using the `Plugin` type with its generics and to use the node types for the syntax trees provided by our packages (as in, [`@types/hast`][types-hast], [`@types/mdast`][types-mdast], [`@types/nlcst`][types-nlcst]). ```js /** * @typedef {import('hast').Root} HastRoot * @typedef {import('mdast').Root} MdastRoot */ /** * @typedef Options * Configuration (optional). * @property {boolean | null | undefined} [someField] * Some option (optional). */ // To type options: /** @type {import('unified').Plugin<[(Options | null | undefined)?]>} */ export function myPluginAcceptingOptions(options) { const settings = options || {} // `settings` is now `Options`. } // To type a plugin that works on a certain tree, without options: /** @type {import('unified').Plugin<[], MdastRoot>} */ export function myRemarkPlugin() { return function (tree, file) { // `tree` is `MdastRoot`. } } // To type a plugin that transforms one tree into another: /** @type {import('unified').Plugin<[], MdastRoot, HastRoot>} */ export function remarkRehype() { return function (tree) { // `tree` is `MdastRoot`. // Result must be `HastRoot`. } } // To type a plugin that defines a parser: /** @type {import('unified').Plugin<[], string, MdastRoot>} */ export function remarkParse(options) {} // To type a plugin that defines a compiler: /** @type {import('unified').Plugin<[], HastRoot, string>} */ export function rehypeStringify(options) {} ``` ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unified@^11`, compatible with Node.js 16. ## Contribute See [`contributing.md`][contributing] in [`unifiedjs/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. For info on how to submit a security report, see our [security policy][security]. ## Sponsor Support this effort and give back by sponsoring on [OpenCollective][collective]!
Vercel

Motif

HashiCorp

American Express

GitBook

Gatsby

Netlify

Coinbase

ThemeIsle

Expo

Boost Note

Markdown Space

Holloway


You?

## Acknowledgments Preliminary work for unified was done [in 2014][preliminary] for **[retext][]** and inspired by [`ware`][ware]. Further incubation happened in **[remark][]**. The project was finally [externalised][] in 2015 and [published][] as `unified`. The project was authored by **[@wooorm](https://github.com/wooorm)**. Although `unified` since moved its plugin architecture to [`trough`][trough], thanks to **[@calvinfo](https://github.com/calvinfo)**, **[@ianstormtaylor](https://github.com/ianstormtaylor)**, and others for their work on [`ware`][ware], as it was a huge initial inspiration. ## License [MIT][license] © [Titus Wormer][author] [logo]: https://raw.githubusercontent.com/unifiedjs/unified/93862e5/logo.svg?sanitize=true [build-badge]: https://github.com/unifiedjs/unified/workflows/main/badge.svg [build]: https://github.com/unifiedjs/unified/actions [coverage-badge]: https://img.shields.io/codecov/c/github/unifiedjs/unified.svg [coverage]: https://codecov.io/github/unifiedjs/unified [downloads-badge]: https://img.shields.io/npm/dm/unified.svg [downloads]: https://www.npmjs.com/package/unified [size-badge]: https://img.shields.io/bundlejs/size/unified [size]: https://bundlejs.com/?q=unified [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/unifiedjs/unified/discussions [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [health]: https://github.com/unifiedjs/.github [contributing]: https://github.com/unifiedjs/.github/blob/main/contributing.md [support]: https://github.com/unifiedjs/.github/blob/main/support.md [coc]: https://github.com/unifiedjs/.github/blob/main/code-of-conduct.md [security]: https://github.com/unifiedjs/.github/blob/main/security.md [license]: license [author]: https://wooorm.com [npm]: https://docs.npmjs.com/cli/install [site]: https://unifiedjs.com [twitter]: https://twitter.com/unifiedjs [rehype]: https://github.com/rehypejs/rehype [remark]: https://github.com/remarkjs/remark [retext]: https://github.com/retextjs/retext [syntax-tree]: https://github.com/syntax-tree [esast]: https://github.com/syntax-tree/esast [hast]: https://github.com/syntax-tree/hast [mdast]: https://github.com/syntax-tree/mdast [nlcst]: https://github.com/syntax-tree/nlcst [unist]: https://github.com/syntax-tree/unist [xast]: https://github.com/syntax-tree/xast [unified-engine]: https://github.com/unifiedjs/unified-engine [unified-args]: https://github.com/unifiedjs/unified-args [unified-engine-gulp]: https://github.com/unifiedjs/unified-engine-gulp [unified-language-server]: https://github.com/unifiedjs/unified-language-server [unified-stream]: https://github.com/unifiedjs/unified-stream [rehype-remark]: https://github.com/rehypejs/rehype-remark [rehype-retext]: https://github.com/rehypejs/rehype-retext [remark-rehype]: https://github.com/remarkjs/remark-rehype [remark-retext]: https://github.com/remarkjs/remark-retext [node]: https://github.com/syntax-tree/unist#node [vfile]: https://github.com/vfile/vfile [vfile-compatible]: https://github.com/vfile/vfile#compatible [vfile-value]: https://github.com/vfile/vfile#value [vfile-utilities]: https://github.com/vfile/vfile#list-of-utilities [rehype-react]: https://github.com/rehypejs/rehype-react [trough]: https://github.com/wooorm/trough#function-fninput-next [rehype-plugins]: https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins [remark-plugins]: https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins [retext-plugins]: https://github.com/retextjs/retext/blob/main/doc/plugins.md#list-of-plugins [awesome-rehype]: https://github.com/rehypejs/awesome-rehype [awesome-remark]: https://github.com/remarkjs/awesome-remark [awesome-retext]: https://github.com/retextjs/awesome-retext [topic-rehype-plugin]: https://github.com/topics/rehype-plugin [topic-remark-plugin]: https://github.com/topics/remark-plugin [topic-retext-plugin]: https://github.com/topics/retext-plugin [types-hast]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hast [types-mdast]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdast [types-nlcst]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nlcst [preliminary]: https://github.com/retextjs/retext/commit/8fcb1f [externalised]: https://github.com/remarkjs/remark/commit/9892ec [published]: https://github.com/unifiedjs/unified/commit/2ba1cf [ware]: https://github.com/segmentio/ware [api]: #api [contribute]: #contribute [overview]: #overview [sponsor]: #sponsor [api-compile-result-map]: #compileresultmap [api-compile-results]: #compileresults [api-compiler]: #compiler [api-data]: #data [api-freeze]: #processorfreeze [api-parser]: #parser [api-pluggable]: #pluggable [api-pluggable-list]: #pluggablelist [api-plugin]: #plugin [api-plugin-tuple]: #plugintuple [api-preset]: #preset [api-process]: #processorprocessfile-done [api-process-callback]: #processcallback [api-processor]: #processor [api-run-callback]: #runcallback [api-settings]: #settings [api-transform-callback]: #transformcallback [api-transformer]: #transformer --- END ORIGINAL BYTES --- ================================================================ unifont@0.7.5 Declared package license: MIT Published archive: https://registry.npmjs.org/unifont/-/unifont-0.7.5.tgz Locked integrity: sha512-ULe/Cs+ZIsq+dcFofNkhqielCrUJnb5mr+Yc4EBM2VlL+6OZR6+cjtI2mT1bJvRBrVncqHAbLURxmPLcCXzWMg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENCE SHA-256: a174fd5d58dfec7ad7f92c8a37fd17297e95f478565bb73946aa3a76b8c0747e; bytes: 1067 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2024 Daniel Roe 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 7515be3077b117197626168f738deb71743ece58327eff45d723397ce4ee9f8d; bytes: 17608 --- BEGIN ORIGINAL BYTES --- # unifont [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href] > Framework agnostic tools for accessing data from font CDNs and providers. ## Installation Using npm: ``` npm i unifont ``` Using pnpm: ``` pnpm add unifont ``` Using yarn: ``` yarn add unifont ``` ## Getting started This package is ESM-only. ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const availableFonts = await unifont.listFonts() const { fonts, fallbacks } = await unifont.resolveFont('Poppins') ``` `unifont` honours the `HTTPS_PROXY` / `HTTP_PROXY` (and lower-case) environment variables for outbound font metadata and binary fetches at build time, so it works behind corporate proxies without extra configuration. ## Built-in providers The following providers are built-in but you can build [custom providers](#building-your-own-provider) too. ### Adobe A provider for [Adobe Fonts](https://fonts.adobe.com/). ```js import { providers } from 'unifont' providers.adobe({ /* options */ }) ``` #### Options ##### `id` - Type: `string | string[]` - Required ```js import { providers } from 'unifont' providers.adobe({ id: 'your-id' }) providers.adobe({ id: ['foo', 'bar'] }) ``` It is recommended to load these IDs as environment variables. ### Bunny A provider for [Bunny Fonts](https://fonts.bunny.net/). ```js import { providers } from 'unifont' providers.bunny() ``` ### Fontshare A provider for [Fontshare](https://www.fontshare.com/). ```js import { providers } from 'unifont' providers.fontshare() ``` ### Fontsource A provider for [Fontsource](https://fontsource.org/)'s API. ```js import { providers } from 'unifont' providers.fontsource() ``` ### Google A provider for [Google Fonts](https://fonts.google.com/). ```js import { providers } from 'unifont' providers.google() ``` #### Options ##### `experimental.variableAxis` - Type: `{ [fontFamily: string]: Partial> }` Allows setting variable axis configuration on a per-font basis: ```js import { providers } from 'unifont' providers.google({ experimental: { variableAxis: { Poppins: { slnt: [['-15', '0']], CASL: [['0', '1']], CRSV: ['1'], MONO: [['0', '1']], }, }, }, }) ``` Overriden by the `experimental.variableAxis` family option. ##### `experimental.glyphs` - Type: `{ [fontFamily: string]: string[] }` Allows specifying a list of glyphs to be included in the font for each font family. This can reduce the size of the font file: ```js import { providers } from 'unifont' providers.google({ experimental: { glyphs: { Poppins: ['Hello', 'World'] }, }, }) ``` Overriden by the `experimental.glyphs` family option. #### Family options ##### `experimental.variableAxis` - Type: `Partial>` Allows setting variable axis configuration on a per-font basis: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { options: { google: { experimental: { variableAxis: { slnt: [['-15', '0']], CASL: [['0', '1']], CRSV: ['1'], MONO: [['0', '1']], }, }, }, }, }) ``` ##### `experimental.glyphs` - Type: `string[]` Allows specifying a list of glyphs to be included in the font for each font family. This can reduce the size of the font file: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { options: { google: { experimental: { glyphs: ['Hello', 'World'], }, }, }, }) ``` ### Google icons A provider for [Google Icons](https://fonts.google.com/icons). ```js import { providers } from 'unifont' providers.googleicons() ``` #### Options ##### `experimental.glyphs` - Type: `{ [fontFamily: string]: string[] }` Allows specifying a list of glyphs to be included in the font for each font family. This can reduce the size of the font file: ```js import { providers } from 'unifont' providers.googleicons({ experimental: { glyphs: { 'Material Symbols Outlined': ['arrow_right', 'favorite', 'arrow_drop_down'] }, }, }) ``` Only available when resolving the new `Material Symbols` icons. Overriden by the `experimental.glyphs` family option. #### Family options ##### `experimental.glyphs` - Type: `string[]` Allows specifying a list of glyphs to be included in the font for each font family. This can reduce the size of the font file: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.googleicons(), ]) const { fonts } = await unifont.resolveFont('Poppins', { options: { googleicons: { experimental: { 'Material Symbols Outlined': ['arrow_right', 'favorite', 'arrow_drop_down'] }, }, }, }) ``` Only available when resolving the new `Material Symbols` icons. ### npm A provider for npm packages, either from locally installed packages in `node_modules` or from a CDN. ```js import { providers } from 'unifont' providers.npm() ``` The provider automatically detects fonts from your `package.json` dependencies and can resolve fonts from packages like `@fontsource/*`, `@fontsource-variable/*`, and other known font packages. #### Options ##### `cdn` - Type: `string` - Default: `'https://cdn.jsdelivr.net/npm'` CDN to use for fetching npm packages remotely: ```js import { providers } from 'unifont' providers.npm({ cdn: 'https://esm.sh' }) ``` ##### `remote` - Type: `boolean` - Default: `true` Whether to fall back to fetching from the CDN when local resolution fails. Set to `false` to only resolve from locally installed packages: ```js import { providers } from 'unifont' providers.npm({ remote: true }) ``` ##### `readFile` - Type: `(path: string) => Promise` Optional function to read a file from the local filesystem. When provided, the provider will try to resolve fonts from locally installed packages in `node_modules` before falling back to the CDN (unless `remote` is set to `false`): ```js import { readFile } from 'node:fs/promises' import { providers } from 'unifont' providers.npm({ readFile: path => readFile(path, 'utf-8').catch(() => null), remote: false, }) ``` ##### `root` - Type: `string` - Default: `'.'` Root directory of the project, used to find `package.json` and `node_modules` when resolving local packages: ```js import { providers } from 'unifont' providers.npm({ root: './src' }) ``` #### Family options ##### `package` - Type: `string` - Default: Auto-detected or inferred from family name The npm package name. When not specified, the provider will try to find the font family in known font package patterns or infer based on Fontsource conventions: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.npm(), ]) const { fonts } = await unifont.resolveFont('Roboto', { options: { npm: { package: '@fontsource/roboto' }, }, }) ``` ##### `version` - Type: `string` - Default: `'latest'` The version of the package (used for CDN resolution only): ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.npm(), ]) const { fonts } = await unifont.resolveFont('Roboto', { options: { npm: { version: '5.0.0' }, }, }) ``` ##### `file` - Type: `string` - Default: `'index.css'` The entry CSS file to parse from the package: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.npm(), ]) const { fonts } = await unifont.resolveFont('Roboto', { options: { npm: { file: 'latin.css' }, }, }) ``` ## `Unifont` Use `createUnifont()` to create a `Unifont` instance. It requires an array of font providers at this first parameter: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) ``` ### Options `createUnifont()` accepts options as its 2nd parameter. #### `storage` - `Type`: `Storage` Allows caching the results of font APIs to avoid unnecessary hits to them. Uses a memory cache by default. This storage type is compatible with [`unstorage`](https://unstorage.unjs.io.): ```ts import { createUnifont, providers } from 'unifont' import { createStorage } from 'unstorage' import fsDriver from 'unstorage/drivers/fs-lite' const storage = createStorage({ driver: fsDriver({ base: 'node_modules/.cache/unifont' }), }) const unifont = await createUnifont([ providers.google() ], { storage }) // cached data is stored in `node_modules/.cache/unifont` await unifont.resolveFont('Poppins') ``` #### `throwOnError` - Type: `boolean` Allows throwing on error if a font provider: - Fails to initialize - Fails while calling `resolveFont()` - Fails while calling `listFonts()` If set to `false` (default), an error will be logged to the console instead: ```ts import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google() ], { throwOnError: true }) ``` ### Methods #### `resolveFont()` - Type: `(fontFamily: string, options?: Partial, providers?: T[]) => Promise` Retrieves font face data and fallbacks from available providers: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), providers.fontsource(), ]) const { fonts, fallbacks } = await unifont.resolveFont('Poppins') ``` It loops through all providers and returns the result of the first provider that can return some data. Fallbacks, if returned, contain the name of a [generic font family](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/font-family#generic-name). That can be useful, for example, to generate optimized fallbacks using font metrics. ##### Options It accepts options as the 2nd parameter. Each provider chooses to support them or not. ###### `weights` - Type: `string[]` - Default: `['400']` Specifies what weights to retrieve. Variable weights must me in the format ` `: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { weights: ['300', '500 900'] }) ``` ###### `styles` - Type: `('normal' | 'italic' | 'oblique')[]` - Default: `['normal', 'italic']` Specifies what styles to retrieve: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { styles: ['normal'] }) ``` ###### `subsets` - Type: `string[]` - Default: `['cyrillic-ext', 'cyrillic', 'greek-ext', 'greek', 'vietnamese', 'latin-ext', 'latin']` Specifies what subsets to retrieve: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { subsets: ['latin'] }) ``` ###### `options` - Type: `{ [key: string]?: Record }` A provider can define options to provide on a font family basis. Types will be automatically inferred: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { options: { google: { experimental: { glyphs: ['Hello', 'World'] } } }, }) ``` ###### `formats` - Type: `('woff2' | 'woff' | 'otf' | 'ttf' | 'eot')[]` - Default: `['woff2']` Specifies what font formats to retrieve: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const { fonts } = await unifont.resolveFont('Poppins', { formats: ['woff2', 'woff2'] }) ``` ##### Providers - Type: `string[]` By default it uses all the providers provided to `createUnifont()`. However you can restrict usage to only a subset: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), providers.fontsource(), ]) const { fonts } = await unifont.resolveFont('Poppins', {}, ['google']) ``` #### `listFonts()` - Type: `(providers?: T[]) => Promise` Retrieves font names available for all providers: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), ]) const availableFonts = await unifont.listFont() ``` It may return `undefined` if no provider is able to return names. ##### Providers - Type: `string[]` By default it uses all the providers provided to `createUnifont()`. However you can restrict usage to only a subset: ```js import { createUnifont, providers } from 'unifont' const unifont = await createUnifont([ providers.google(), providers.fontsource(), ]) const availableFonts = await unifont.listFont(['google']) ``` ## Building your own provider ### Defining a provider To build your own font provider, use the `defineFontProvider()` helper: ```ts import { defineFontProvider } from 'unifont' export const myProvider = defineFontProvider(/* ... */) ``` It accepts a unique name as a first argument and a callback function as 2nd argument: ```ts import { defineFontProvider } from 'unifont' export const myProvider = defineFontProvider('my-provider', async (options, ctx) => { // ... }) ``` If you use options, you can simply annotate it: ```ts import { defineFontProvider } from 'unifont' export interface MyProviderOptions { foo?: string } export const myProvider = defineFontProvider('my-provider', async (options: MyProviderOptions, ctx) => { // ... }) ``` The context (`ctx`) gives access to the [`storage`](#storage), allowing you to cache results. We'll see how below. ### Initialization The callback runs when a `Unifont` instance is created. It is used for initialization logic, such as fetching the list of available fonts: ```ts import { defineFontProvider } from 'unifont' export const myProvider = defineFontProvider('my-provider', async (options, ctx) => { const fonts: { name: string, cssUrl: string }[] = await ctx.storage.getItem('my-provider:meta.json', () => fetch('https://api.example.com/fonts.json').then(res => res.json())) // ... }) ``` You can now use this data in the methods. ### `listFonts()` While optional, it's easy to implement this method now that we have the full list: ```ts import { defineFontProvider } from 'unifont' export const myProvider = defineFontProvider('my-provider', async (options, ctx) => { const fonts: { name: string, cssUrl: string }[] = [/* ... */] return { listFonts() { return fonts.map(font => font.name) } // ... } }) ``` ### `resolveFont()` This is where most of the logic lies. It depends a lot on how the provider works, and often involves parsing CSS files. Have a look at the implementation of built-in providers for inspiration! ```ts import { hash } from 'ohash' import { defineFontProvider } from 'unifont' export const myProvider = defineFontProvider('my-provider', async (options, ctx) => { const fonts: { name: string, cssUrl: string }[] = [/* ... */] return { // ... async resolveFont(fontFamily, options) { const font = fonts.find(font => font.name === fontFamily) if (!font) { return } return { fonts: await ctx.storage.getItem(`my-provider:${fontFamily}-${hash(options)}-data.json`, async () => { // Fetch an API, extract CSS... return [/* ... */] }) } } } }) ``` If you use family options, you can override the type of `options` and it will be inferred: ```ts import type { ResolveFontOptions } from 'unifont' import { hash } from 'ohash' import { defineFontProvider } from 'unifont' export interface MyProviderFamilyOptions { foo?: string } export const myProvider = defineFontProvider('my-provider', async (options, ctx) => { // ... return { // ... async resolveFont(fontFamily, options: ResolveFontOptions) { // ... } } }) ``` ## 💻 Development - Clone this repository - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` - Install dependencies using `pnpm install` - Run interactive tests using `pnpm dev` ## License Made with ❤️ Published under [MIT License](./LICENCE). [npm-version-src]: https://npmx.dev/api/registry/badge/version/unifont [npm-version-href]: https://npmx.dev/package/unifont [npm-downloads-src]: https://npmx.dev/api/registry/badge/downloads/unifont [npm-downloads-href]: https://npm.chart.dev/unifont [github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/unifont/ci.yml?branch=main&style=flat-square [github-actions-href]: https://github.com/unjs/unifont/actions?query=workflow%3Aci [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/unifont/main?style=flat-square [codecov-href]: https://codecov.io/gh/unjs/unifont --- END ORIGINAL BYTES --- ================================================================ unist-util-is@6.0.1 Declared package license: MIT Published archive: https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz Locked integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 82974dbf2639d13edab95c32ed9cb6c0867ede272cd2e07ce47ce8548fe55c05; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT license) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 2f634a5199704ccef938d2f7015a135da2dcbb1c06f52d4d893faaea32cc6304; bytes: 8881 --- BEGIN ORIGINAL BYTES --- # unist-util-is [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [unist][] utility to check if nodes pass a test. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`is(node[, test[, index, parent[, context]]])`](#isnode-test-index-parent-context) * [`convert(test)`](#converttest) * [`Check`](#check) * [`Test`](#test) * [`TestFunction`](#testfunction) * [Examples](#examples) * [Example of `convert`](#example-of-convert) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a small utility that checks that a node is a certain node. ## When should I use this? Use this small utility if you find yourself repeating code for checking what nodes are. A similar package, [`hast-util-is-element`][hast-util-is-element], works on hast elements. For more advanced tests, [`unist-util-select`][unist-util-select] can be used to match against CSS selectors. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install unist-util-is ``` In Deno with [`esm.sh`][esmsh]: ```js import {is} from 'https://esm.sh/unist-util-is@6' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {is} from 'unist-util-is' const node = {type: 'strong'} const parent = {type: 'paragraph', children: [node]} is() // => false is({children: []}) // => false is(node) // => true is(node, 'strong') // => true is(node, 'emphasis') // => false is(node, node) // => true is(parent, {type: 'paragraph'}) // => true is(parent, {type: 'strong'}) // => false is(node, test) // => false is(node, test, 4, parent) // => false is(node, test, 5, parent) // => true function test(node, n) { return n === 5 } ``` ## API This package exports the identifiers [`convert`][api-convert] and [`is`][api-is]. There is no default export. ### `is(node[, test[, index, parent[, context]]])` Check if `node` is a `Node` and whether it passes the given test. ###### Parameters * `node` (`unknown`, optional) — thing to check, typically [`Node`][node] * `test` ([`Test`][api-test], optional) — a test for a specific element * `index` (`number`, optional) — the node’s position in its parent * `parent` ([`Node`][node], optional) — the node’s parent * `context` (`unknown`, optional) — context object (`this`) to call `test` with ###### Returns Whether `node` is a [`Node`][node] and passes a test (`boolean`). ###### Throws When an incorrect `test`, `index`, or `parent` is given. There is no error thrown when `node` is not a node. ### `convert(test)` Generate a check from a test. Useful if you’re going to test many nodes, for example when creating a utility where something else passes a compatible test. The created function is a bit faster because it expects valid input only: a `node`, `index`, and `parent`. ###### Parameters * `test` ([`Test`][api-test], optional) — a test for a specific node ###### Returns A check ([`Check`][api-check]). ### `Check` Check that an arbitrary value is a node (TypeScript type). ###### Parameters * `this` (`unknown`, optional) — context object (`this`) to call `test` with * `node` (`unknown`) — anything (typically a node) * `index` (`number`, optional) — the node’s position in its parent * `parent` ([`Node`][node], optional) — the node’s parent ###### Returns Whether this is a node and passes a test (`boolean`). ### `Test` Check for an arbitrary node (TypeScript type). ###### Type ```ts type Test = | Array | TestFunction | string> | Record | TestFunction | string | null | undefined ``` Checks that the given thing is a node, and then: * when `string`, checks that the node has that tag name * when `function`, see [`TestFunction`][api-test-function] * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values * when `Array`, checks if one of the subtests pass ### `TestFunction` Check if a node passes a test (TypeScript type). ###### Parameters * `node` ([`Node`][node]) — a node * `index` (`number` or `undefined`) — the node’s position in its parent * `parent` ([`Node`][node] or `undefined`) — the node’s parent ###### Returns Whether this node passes the test (`boolean`, optional). ## Examples ### Example of `convert` ```js import {u} from 'unist-builder' import {convert} from 'unist-util-is' const test = convert('leaf') const tree = u('tree', [ u('node', [u('leaf', '1')]), u('leaf', '2'), u('node', [u('leaf', '3'), u('leaf', '4')]), u('leaf', '5') ]) const leafs = tree.children.filter(function (child, index) { return test(child, index, tree) }) console.log(leafs) ``` Yields: ```js [{type: 'leaf', value: '2'}, {type: 'leaf', value: '5'}] ``` ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`Check`][api-check], [`Test`][api-test], [`TestFunction`][api-test-function]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unist-util-is@^6`, compatible with Node.js 16. ## Related * [`unist-util-find-after`](https://github.com/syntax-tree/unist-util-find-after) — find a node after another node * [`unist-util-find-before`](https://github.com/syntax-tree/unist-util-find-before) — find a node before another node * [`unist-util-find-all-after`](https://github.com/syntax-tree/unist-util-find-all-after) — find all nodes after another node * [`unist-util-find-all-before`](https://github.com/syntax-tree/unist-util-find-all-before) — find all nodes before another node * [`unist-util-find-all-between`](https://github.com/mrzmmr/unist-util-find-all-between) — find all nodes between two nodes * [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter) — create a new tree with nodes that pass a check * [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove) — remove nodes from tree ## Contribute See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [api-check]: #check [api-convert]: #converttest [api-is]: #isnode-test-index-parent-context [api-test]: #test [api-test-function]: #testfunction [author]: https://wooorm.com [backers-badge]: https://opencollective.com/unified/backers/badge.svg [build]: https://github.com/syntax-tree/unist-util-is/actions [build-badge]: https://github.com/syntax-tree/unist-util-is/workflows/main/badge.svg [chat]: https://github.com/syntax-tree/unist/discussions [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [collective]: https://opencollective.com/unified [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [coverage]: https://codecov.io/github/syntax-tree/unist-util-is [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-is.svg [downloads]: https://www.npmjs.com/package/unist-util-is [downloads-badge]: https://img.shields.io/npm/dm/unist-util-is.svg [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [hast-util-is-element]: https://github.com/syntax-tree/hast-util-is-element [health]: https://github.com/syntax-tree/.github [license]: license [node]: https://github.com/syntax-tree/unist#node [npm]: https://docs.npmjs.com/cli/install [size]: https://bundlejs.com/?q=unist-util-is [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-is [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [support]: https://github.com/syntax-tree/.github/blob/main/support.md [typescript]: https://www.typescriptlang.org [unist]: https://github.com/syntax-tree/unist [unist-util-select]: https://github.com/syntax-tree/unist-util-select --- END ORIGINAL BYTES --- ================================================================ unist-util-position@5.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz Locked integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: c077360cb20de196af3a2b70d25889811c6e7f884ab6acd67b11c65302636810; bytes: 6563 --- BEGIN ORIGINAL BYTES --- # unist-util-position [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [unist][] utility to get positional info of nodes. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`position(node)`](#positionnode) * [`pointEnd(node)`](#pointendnode) * [`pointStart(node)`](#pointstartnode) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This utility helps with accessing positional info on a potentially dirty tree. ## When should I use this? The positional info is typically consistent and proper in unist trees generated by our ecosystem, but, user plugins could mess that up. If you’re making a reusable plugin, and accessing the positional info often, you might want to guard against that by using this utility. You might also find the utility [`unist-util-generated`][unist-util-generated] useful to check whether a node is considered to be generated (not in the original input file). You might also enjoy [`unist-util-stringify-position`][unist-util-stringify-position] when you want to display positional info to users. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install unist-util-position ``` In Deno with [`esm.sh`][esmsh]: ```js import {pointEnd, pointStart, position} from 'https://esm.sh/unist-util-position@5' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {fromMarkdown} from 'mdast-util-from-markdown' import {pointEnd, pointStart, position} from 'unist-util-position' const tree = fromMarkdown('# foo\n\n* bar\n') console.log(position(tree)) console.log(pointStart(tree)) console.log(pointEnd(tree)) ``` Yields: ```js {start: {line: 1, column: 1, offset: 0}, end: {line: 4, column: 1, offset: 13}} {line: 1, column: 1, offset: 0} {line: 4, column: 1, offset: 13} ``` ## API This package exports the identifiers [`pointEnd`][pointend], [`pointStart`][pointstart], and [`position`][position]. There is no default export. ### `position(node)` Get the positional info of `node`. ###### Parameters * `node` ([`Node`][node]) — node ###### Returns Position, if valid ([`Position`][unist-position] or `undefined`). ### `pointEnd(node)` Get the ending point of `node`. ###### Parameters * `node` ([`Node`][node]) — node ###### Returns Point, if valid ([`Point`][unist-point] or `undefined`). ### `pointStart(node)` Get the starting point of `node`. ###### Parameters * `node` ([`Node`][node]) — node ###### Returns Point, if valid ([`Point`][unist-point] or `undefined`). ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unist-util-position@^5`, compatible with Node.js 16. ## Related * [`unist-util-stringify-position`](https://github.com/syntax-tree/unist-util-stringify-position) — serialize a node, position, or point as a human readable location * [`unist-util-position-from-estree`](https://github.com/syntax-tree/unist-util-position-from-estree) — get a position from an estree node * [`unist-util-remove-position`](https://github.com/syntax-tree/unist-util-remove-position) — remove positions from tree * [`unist-util-generated`](https://github.com/syntax-tree/unist-util-generated) — check if a node is generated * [`unist-util-source`](https://github.com/syntax-tree/unist-util-source) — get the source of a node ## Contribute See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/unist-util-position/workflows/main/badge.svg [build]: https://github.com/syntax-tree/unist-util-position/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-position.svg [coverage]: https://codecov.io/github/syntax-tree/unist-util-position [downloads-badge]: https://img.shields.io/npm/dm/unist-util-position.svg [downloads]: https://www.npmjs.com/package/unist-util-position [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-position [size]: https://bundlejs.com/?q=unist-util-position [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [license]: license [author]: https://wooorm.com [health]: https://github.com/syntax-tree/.github [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [support]: https://github.com/syntax-tree/.github/blob/main/support.md [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [unist]: https://github.com/syntax-tree/unist [node]: https://github.com/syntax-tree/unist#node [unist-position]: https://github.com/syntax-tree/unist#position [unist-point]: https://github.com/syntax-tree/unist#point [unist-util-generated]: https://github.com/syntax-tree/unist-util-generated [unist-util-stringify-position]: https://github.com/syntax-tree/unist-util-stringify-position [position]: #positionnode [pointend]: #pointendnode [pointstart]: #pointstartnode --- END ORIGINAL BYTES --- ================================================================ unist-util-stringify-position@4.0.0 Declared package license: MIT Published archive: https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz Locked integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 1f1777d359d93f038bb6a3c58ba877ec37b44662212e34407904dc346df3d990; bytes: 6025 --- BEGIN ORIGINAL BYTES --- # unist-util-stringify-position [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [unist][] utility to pretty print the positional info of a node. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`stringifyPosition(node|position|point)`](#stringifypositionnodepositionpoint) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This package is a utility that takes any [unist][] (whether mdast, hast, etc) node, position, or point, and serializes its positional info. ## When should I use this? This utility is useful to display where something occurred in the original document, in one standard way, for humans. For example, when throwing errors or warning messages about something. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install unist-util-stringify-position ``` In Deno with [`esm.sh`][esmsh]: ```js import {stringifyPosition} from 'https://esm.sh/unist-util-stringify-position@4' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {stringifyPosition} from 'unist-util-stringify-position' stringifyPosition({line: 2, column: 3}) // => '2:3' (point) stringifyPosition({start: {line: 2}, end: {line: 3}}) // => '2:1-3:1' (position) stringifyPosition({ type: 'text', value: '!', position: { start: {line: 5, column: 11}, end: {line: 5, column: 12} } }) // => '5:11-5:12' (node) ``` ## API This package exports the identifier [`stringifyPosition`][stringifyposition]. There is no default export. ### `stringifyPosition(node|position|point)` Serialize the positional info of a point, position (start and end points), or node. ###### Parameters * `node` ([`Node`][node]) — node whose `position` fields to serialize * `position` ([`Position`][position]) — position whose `start` and `end` points to serialize * `point` ([`Point`][point]) — point whose `line` and `column` fields to serialize ###### Returns Pretty printed positional info of a node (`string`). In the format of a range `ls:cs-le:ce` (when given `node` or `position`) or a point `l:c` (when given `point`), where `l` stands for line, `c` for column, `s` for `start`, and `e` for end. An empty string (`''`) is returned if the given value is neither `node`, `position`, nor `point`. ## Types This package is fully typed with [TypeScript][]. It exports no additional types. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unist-util-stringify-position@^4`, compatible with Node.js 16. ## Security This project is safe. ## Related * [`unist-util-generated`](https://github.com/syntax-tree/unist-util-generated) — check if a node is generated * [`unist-util-position`](https://github.com/syntax-tree/unist-util-position) — get positional info of nodes * [`unist-util-remove-position`](https://github.com/syntax-tree/unist-util-remove-position) — remove positional info from trees * [`unist-util-source`](https://github.com/syntax-tree/unist-util-source) — get the source of a value (node or position) in a file ## Contribute See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/unist-util-stringify-position/workflows/main/badge.svg [build]: https://github.com/syntax-tree/unist-util-stringify-position/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-stringify-position.svg [coverage]: https://codecov.io/github/syntax-tree/unist-util-stringify-position [downloads-badge]: https://img.shields.io/npm/dm/unist-util-stringify-position.svg [downloads]: https://www.npmjs.com/package/unist-util-stringify-position [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-stringify-position [size]: https://bundlejs.com/?q=unist-util-stringify-position [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [license]: license [author]: https://wooorm.com [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [support]: https://github.com/syntax-tree/.github/blob/main/support.md [coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [unist]: https://github.com/syntax-tree/unist [node]: https://github.com/syntax-tree/unist#node [position]: https://github.com/syntax-tree/unist#position [point]: https://github.com/syntax-tree/unist#point [stringifyposition]: #stringifypositionnodepositionpoint --- END ORIGINAL BYTES --- ================================================================ unist-util-visit@5.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz Locked integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 63cb98b3f6abfb3c3592c16f88253c1bdc834087bf52671e8ce5609e4eb693cf; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 84a7d82383b6420ad932991398278a498c60a431e49106fb4a60408ee30e94ac; bytes: 8603 --- BEGIN ORIGINAL BYTES --- # unist-util-visit [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [unist][github-unist] utility to walk the tree. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`visit(tree[, test], visitor[, reverse])`](#visittree-test-visitor-reverse) * [`CONTINUE`](#continue) * [`EXIT`](#exit) * [`SKIP`](#skip) * [`Action`](#action) * [`ActionTuple`](#actiontuple) * [`BuildVisitor`](#buildvisitor) * [`Index`](#index) * [`Test`](#test) * [`Visitor`](#visitor) * [`VisitorResult`](#visitorresult) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a very important utility for working with unist as it lets you walk the tree. ## When should I use this? You can use this utility when you want to walk the tree. You can use [`unist-util-visit-parents`][github-vp] if you care about the entire stack of parents. ## Install This package is [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npmjs-install]: ```sh npm install unist-util-visit ``` In Deno with [`esm.sh`][esmsh]: ```js import {CONTINUE, EXIT, SKIP, visit} from 'https://esm.sh/unist-util-visit@5' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {fromMarkdown} from 'mdast-util-from-markdown' import {visit} from 'unist-util-visit' const tree = fromMarkdown('Some *emphasis*, **strong**, and `code`.') visit(tree, 'text', function (node, index, parent) { console.log([node.value, parent ? parent.type : index]) }) ``` Yields: ```js [ 'Some ', 'paragraph' ] [ 'emphasis', 'emphasis' ] [ ', ', 'paragraph' ] [ 'strong', 'strong' ] [ ', and ', 'paragraph' ] [ '.', 'paragraph' ] ``` ## API This package exports the identifiers [`CONTINUE`][api-continue], [`EXIT`][api-exit], [`SKIP`][api-skip], and [`visit`][api-visit]. It exports the [TypeScript][] types [`ActionTuple`][api-action-tuple], [`Action`][api-action], [`BuildVisitor`][api-build-visitor], [`Index`][api-index], [`Test`][api-test], [`VisitorResult`][api-visitor-result], and [`Visitor`][api-visitor]. There is no default export. ### `visit(tree[, test], visitor[, reverse])` This function works exactly the same as [`unist-util-visit-parents`][github-vp], but [`Visitor`][api-visitor] has a different signature. ### `CONTINUE` Continue traversing as normal (`true`). ### `EXIT` Stop traversing immediately (`false`). ### `SKIP` Do not traverse this node’s children (`'skip'`). ### `Action` Union of the action types (TypeScript type). See [`Action` in `unist-util-visit-parents`][github-vp-action]. ### `ActionTuple` List with an action and an index (TypeScript type). See [`ActionTuple` in `unist-util-visit-parents`][github-vp-action-tuple]. ### `BuildVisitor` Build a typed `Visitor` function from a tree and a test (TypeScript type). See [`BuildVisitor` in `unist-util-visit-parents`][github-vp-build-visitor]. ### `Index` Move to the sibling at `index` next (TypeScript type). See [`Index` in `unist-util-visit-parents`][github-vp-index]. ### `Test` [`unist-util-is`][github-unist-util-is] compatible test (TypeScript type). ### `Visitor` Handle a node (matching `test`, if given) (TypeScript type). Visitors are free to transform `node`. They can also transform `parent`. Replacing `node` itself, if `SKIP` is not returned, still causes its descendants to be walked (which is a bug). When adding or removing previous siblings of `node` (or next siblings, in case of reverse), the `Visitor` should return a new `Index` to specify the sibling to traverse after `node` is traversed. Adding or removing next siblings of `node` (or previous siblings, in case of reverse) is handled as expected without needing to return a new `Index`. Removing the children property of `parent` still results in them being traversed. ###### Parameters * `node` ([`Node`][github-unist-node]) — found node * `index` (`number` or `undefined`) — index of `node` in `parent` * `parent` ([`Node`][github-unist-node] or `undefined`) — parent of `node` ###### Returns What to do next. An `Index` is treated as a tuple of `[CONTINUE, Index]`. An `Action` is treated as a tuple of `[Action]`. Passing a tuple back only makes sense if the `Action` is `SKIP`. When the `Action` is `EXIT`, that action can be returned. When the `Action` is `CONTINUE`, `Index` can be returned. ### `VisitorResult` Any value that can be returned from a visitor (TypeScript type). See [`VisitorResult` in `unist-util-visit-parents`][github-vp-visitor-result]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unist-util-visit@^5`, compatible with Node.js 16. ## Related * [`unist-util-visit-parents`][github-vp] — walk the tree with a stack of parents * [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter) — create a new tree with all nodes that pass a test * [`unist-util-map`](https://github.com/syntax-tree/unist-util-map) — create a new tree with all nodes mapped by a given function * [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap) — create a new tree by mapping (to an array) with the given function * [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove) — remove nodes from a tree that pass a test * [`unist-util-select`](https://github.com/syntax-tree/unist-util-select) — select nodes with CSS-like selectors ## Contribute See [`contributing.md`][health-contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][health-support] for ways to get help. This project has a [code of conduct][health-coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][file-license] © [Titus Wormer][wooorm] [api-action]: #action [api-action-tuple]: #actiontuple [api-build-visitor]: #buildvisitor [api-continue]: #continue [api-exit]: #exit [api-index]: #index [api-skip]: #skip [api-test]: #test [api-visit]: #visittree-test-visitor-reverse [api-visitor]: #visitor [api-visitor-result]: #visitorresult [badge-build-image]: https://github.com/syntax-tree/unist-util-visit/workflows/main/badge.svg [badge-build-url]: https://github.com/syntax-tree/unist-util-visit/actions [badge-coverage-image]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-visit.svg [badge-coverage-url]: https://codecov.io/github/syntax-tree/unist-util-visit [badge-downloads-image]: https://img.shields.io/npm/dm/unist-util-visit.svg [badge-downloads-url]: https://www.npmjs.com/package/unist-util-visit [badge-size-image]: https://img.shields.io/bundlejs/size/unist-util-visit [badge-size-url]: https://bundlejs.com/?q=unist-util-visit [esmsh]: https://esm.sh [file-license]: license [github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [github-unist]: https://github.com/syntax-tree/unist [github-unist-node]: https://github.com/syntax-tree/unist#nodes [github-unist-util-is]: https://github.com/syntax-tree/unist-util-is [github-vp]: https://github.com/syntax-tree/unist-util-visit-parents [github-vp-action]: https://github.com/syntax-tree/unist-util-visit-parents#action [github-vp-action-tuple]: https://github.com/syntax-tree/unist-util-visit-parents#actiontuple [github-vp-build-visitor]: https://github.com/syntax-tree/unist-util-visit-parents#buildvisitor [github-vp-index]: https://github.com/syntax-tree/unist-util-visit-parents#index [github-vp-visitor-result]: https://github.com/syntax-tree/unist-util-visit-parents#visitorresult [health]: https://github.com/syntax-tree/.github [health-coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md [health-contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md [health-support]: https://github.com/syntax-tree/.github/blob/main/support.md [npmjs-install]: https://docs.npmjs.com/cli/install [typescript]: https://www.typescriptlang.org [wooorm]: https://wooorm.com --- END ORIGINAL BYTES --- ================================================================ unist-util-visit-parents@6.0.2 Declared package license: MIT Published archive: https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz Locked integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 018886a3389f28b0c2d30bf30c795bc5e5feda0b497ae05748aa227f78f46c1b; bytes: 10283 --- BEGIN ORIGINAL BYTES --- # unist-util-visit-parents [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] [unist][] utility to walk the tree with a stack of parents. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`visitParents(tree[, test], visitor[, reverse])`](#visitparentstree-test-visitor-reverse) * [`CONTINUE`](#continue) * [`EXIT`](#exit) * [`SKIP`](#skip) * [`Action`](#action) * [`ActionTuple`](#actiontuple) * [`BuildVisitor`](#buildvisitor) * [`Index`](#index) * [`Test`](#test) * [`Visitor`](#visitor) * [`VisitorResult`](#visitorresult) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [License](#license) ## What is this? This is a very important utility for working with unist as it lets you walk the tree. ## When should I use this? You can use this utility when you want to walk the tree and want to know about every parent of each node. You can use [`unist-util-visit`][unist-util-visit] if you don’t care about the entire stack of parents. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install unist-util-visit-parents ``` In Deno with [`esm.sh`][esmsh]: ```js import {visitParents} from 'https://esm.sh/unist-util-visit-parents@6' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {visitParents} from 'unist-util-visit-parents' import {fromMarkdown} from 'mdast-util-from-markdown' const tree = fromMarkdown('Some *emphasis*, **strong**, and `code`.') visitParents(tree, 'strong', function (node, ancestors) { console.log(node.type, ancestors.map(ancestor => ancestor.type)) }) ``` Yields: ```js strong ['root', 'paragraph'] ``` ## API This package exports the identifiers [`CONTINUE`][api-continue], [`EXIT`][api-exit], [`SKIP`][api-skip], and [`visitParents`][api-visitparents]. There is no default export. ### `visitParents(tree[, test], visitor[, reverse])` Visit nodes, with ancestral information. This algorithm performs *[depth-first][]* *[tree traversal][tree-traversal]* in *[preorder][]* (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**). You can choose for which nodes `visitor` is called by passing a `test`. For complex tests, you should test yourself in `visitor`, as it will be faster and will have improved type information. Walking the tree is an intensive task. Make use of the return values of the visitor when possible. Instead of walking a tree multiple times, walk it once, use [`unist-util-is`][unist-util-is] to check if a node matches, and then perform different operations. You can change the tree. See [`Visitor`][api-visitor] for more info. ###### Parameters * `tree` ([`Node`][node]) — tree to traverse * `test` ([`Test`][api-test], optional) — [`unist-util-is`][unist-util-is]-compatible test * `visitor` ([`Visitor`][api-visitor]) — handle each node * `reverse` (`boolean`, default: `false`) — traverse in reverse preorder (NRL) instead of the default preorder (NLR) ###### Returns Nothing (`undefined`). ### `CONTINUE` Continue traversing as normal (`true`). ### `EXIT` Stop traversing immediately (`false`). ### `SKIP` Do not traverse this node’s children (`'skip'`). ### `Action` Union of the action types (TypeScript type). ###### Type ```ts type Action = typeof CONTINUE | typeof EXIT | typeof SKIP ``` ### `ActionTuple` List with one or two values, the first an action, the second an index (TypeScript type). ###### Type ```ts type ActionTuple = [ (Action | null | undefined | void)?, (Index | null | undefined)? ] ``` ### `BuildVisitor` Build a typed `Visitor` function from a tree and a test (TypeScript type). It will infer which values are passed as `node` and which as `parents`. ###### Type parameters * `Tree` ([`Node`][node], default: `Node`) — tree type * `Check` ([`Test`][api-test], default: `Test`) — test type ###### Returns [`Visitor`][api-visitor]. ### `Index` Move to the sibling at `index` next (after node itself is completely traversed) (TypeScript type). Useful if mutating the tree, such as removing the node the visitor is currently on, or any of its previous siblings. Results less than `0` or greater than or equal to `children.length` stop traversing the parent. ###### Type ```ts type Index = number ``` ### `Test` [`unist-util-is`][unist-util-is] compatible test (TypeScript type). ### `Visitor` Handle a node (matching `test`, if given) (TypeScript type). Visitors are free to transform `node`. They can also transform the parent of node (the last of `ancestors`). Replacing `node` itself, if `SKIP` is not returned, still causes its descendants to be walked (which is a bug). When adding or removing previous siblings of `node` (or next siblings, in case of reverse), the `Visitor` should return a new `Index` to specify the sibling to traverse after `node` is traversed. Adding or removing next siblings of `node` (or previous siblings, in case of reverse) is handled as expected without needing to return a new `Index`. Removing the children property of an ancestor still results in them being traversed. ###### Parameters * `node` ([`Node`][node]) — found node * `parents` ([`Array`][node]) — ancestors of `node` ###### Returns What to do next. An `Index` is treated as a tuple of `[CONTINUE, Index]`. An `Action` is treated as a tuple of `[Action]`. Passing a tuple back only makes sense if the `Action` is `SKIP`. When the `Action` is `EXIT`, that action can be returned. When the `Action` is `CONTINUE`, `Index` can be returned. ### `VisitorResult` Any value that can be returned from a visitor (TypeScript type). ###### Type ```ts type VisitorResult = | Action | ActionTuple | Index | null | undefined | void ``` ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`Action`][api-action], [`ActionTuple`][api-actiontuple], [`BuildVisitor`][api-buildvisitor], [`Index`][api-index], [`Test`][api-test], [`Visitor`][api-visitor], and [`VisitorResult`][api-visitorresult]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `unist-util-visit-parents@^6`, compatible with Node.js 16. ## Related * [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit) — walk the tree with one parent * [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter) — create a new tree with all nodes that pass a test * [`unist-util-map`](https://github.com/syntax-tree/unist-util-map) — create a new tree with all nodes mapped by a given function * [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap) — create a new tree by mapping (to an array) with the given function * [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove) — remove nodes from a tree that pass a test * [`unist-util-select`](https://github.com/syntax-tree/unist-util-select) — select nodes with CSS-like selectors ## Contribute See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/syntax-tree/unist-util-visit-parents/workflows/main/badge.svg [build]: https://github.com/syntax-tree/unist-util-visit-parents/actions [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-visit-parents.svg [coverage]: https://codecov.io/github/syntax-tree/unist-util-visit-parents [downloads-badge]: https://img.shields.io/npm/dm/unist-util-visit-parents.svg [downloads]: https://www.npmjs.com/package/unist-util-visit-parents [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-visit-parents [size]: https://bundlejs.com/?q=unist-util-visit-parents [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/syntax-tree/unist/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [license]: license [author]: https://wooorm.com [health]: https://github.com/syntax-tree/.github [contributing]: https://github.com/syntax-tree/.github/blob/HEAD/contributing.md [support]: https://github.com/syntax-tree/.github/blob/HEAD/support.md [coc]: https://github.com/syntax-tree/.github/blob/HEAD/code-of-conduct.md [unist]: https://github.com/syntax-tree/unist [node]: https://github.com/syntax-tree/unist#node [depth-first]: https://github.com/syntax-tree/unist#depth-first-traversal [tree-traversal]: https://github.com/syntax-tree/unist#tree-traversal [preorder]: https://github.com/syntax-tree/unist#preorder [unist-util-visit]: https://github.com/syntax-tree/unist-util-visit [unist-util-is]: https://github.com/syntax-tree/unist-util-is [api-visitparents]: #visitparentstree-test-visitor-reverse [api-continue]: #continue [api-exit]: #exit [api-skip]: #skip [api-action]: #action [api-actiontuple]: #actiontuple [api-buildvisitor]: #buildvisitor [api-index]: #index [api-test]: #test [api-visitor]: #visitor [api-visitorresult]: #visitorresult --- END ORIGINAL BYTES --- ================================================================ unstorage@1.17.5 Declared package license: MIT Published archive: https://registry.npmjs.org/unstorage/-/unstorage-1.17.5.tgz Locked integrity: sha512-0i3iqvRfx29hkNntHyQvJTpf5W9dQ9ZadSoRU8+xVlhVtT7jAX57fazYO9EHvcRCfBCyi5YRya7XCDOsbTgkPg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 46231df5a7733c3f52f11b71f3df61813007745b62b09031acfb45fb42d75082; bytes: 1078 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) Pooya Parsa 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 9f1cd8d6fddc7616eb5828b415e2348e45793d2dd42bfd22d20b2d872d860bb1; bytes: 3302 --- BEGIN ORIGINAL BYTES --- # 💾 Unstorage [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Codecov][codecov-src]][codecov-href] [![bundle][bundle-src]][bundle-href] [![License][license-src]][license-href] Unstorage provides an async Key-Value storage API with conventional features like multi driver mounting, watching and working with metadata, dozens of built-in drivers and a [tiny core](https://bundlephobia.com/package/unstorage). 👉 [Documentation](https://unstorage.unjs.io) ## Features - Designed for all environments: Browser, NodeJS, and Workers - Lots of Built-in drivers - Asynchronous API - Unix-style driver mounting to combine storages - Default [in-memory](https://unstorage.unjs.io/drivers/memory) storage - Tree-shakable utils and tiny core - Auto JSON value serialization and deserialization - Binary and raw value support - State [snapshots](https://unstorage.unjs.io/getting-started/utils#snapshots) and hydration - Storage watcher - HTTP Storage with [built-in server](https://unstorage.unjs.io/guide/http-server) ## Usage Install `unstorage` npm package: ```sh # yarn yarn add unstorage # npm npm install unstorage # pnpm pnpm add unstorage ``` ```js import { createStorage } from "unstorage"; const storage = createStorage(/* opts */); await storage.getItem("foo:bar"); // or storage.getItem('/foo/bar') ``` 👉 Check out the [the documentation](https://unstorage.unjs.io) for usage information. ## Nightly release channel You can use the nightly release channel to try the latest changes in the `main` branch via [`unstorage-nightly`](https://www.npmjs.com/package/unstorage-nightly). If directly using `unstorage` in your project: ```json { "devDependencies": { "unstorage": "npm:unstorage-nightly" } } ``` If using `unstorage` via another tool in your project: ```json { "resolutions": { "unstorage": "npm:unstorage-nightly" } } ``` ## Contribution - Clone repository - Install dependencies with `pnpm install` - Use `pnpm dev` to start jest watcher verifying changes - Use `pnpm test` before pushing to ensure all tests and lint checks passing ## License [MIT](./LICENSE) [npm-version-src]: https://img.shields.io/npm/v/unstorage?style=flat&colorA=18181B&colorB=F0DB4F [npm-version-href]: https://npmjs.com/package/unstorage [npm-downloads-src]: https://img.shields.io/npm/dm/unstorage?style=flat&colorA=18181B&colorB=F0DB4F [npm-downloads-href]: https://npmjs.com/package/unstorage [github-actions-src]: https://img.shields.io/github/workflow/status/unjs/unstorage/ci/main?style=flat&colorA=18181B&colorB=F0DB4F [github-actions-href]: https://github.com/unjs/unstorage/actions?query=workflow%3Aci [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/unstorage/main?style=flat&colorA=18181B&colorB=F0DB4F [codecov-href]: https://codecov.io/gh/unjs/unstorage [bundle-src]: https://img.shields.io/bundlephobia/minzip/unstorage?style=flat&colorA=18181B&colorB=F0DB4F [bundle-href]: https://bundlephobia.com/result?p=unstorage [license-src]: https://img.shields.io/github/license/unjs/unstorage.svg?style=flat&colorA=18181B&colorB=F0DB4F [license-href]: https://github.com/unjs/unstorage/blob/main/LICENSE --- END ORIGINAL BYTES --- ================================================================ verkit@0.4.1 Declared package license: MIT Published archive: https://registry.npmjs.org/verkit/-/verkit-0.4.1.tgz Locked integrity: sha512-mMVzj0TXExtVdlDEq+Mzp0eyOuyznNpFobNM3uAqe3HVm/Ps2c+u17BligMkZjZCA6EiXpoon8iRTer3iu40SQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 9bdd8f6bcee5d0e8ae77dc278122ee2a9c87395490fc1a2c6b132ad63be79c71; bytes: 1110 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) Copyright © 2026-PRESENT Kevin Deng (https://github.com/sxzz) 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: bb112f796afd149bf61c78c150c151a7811b8ae4009098e9e7c5950bcb7ae362; bytes: 9460 --- BEGIN ORIGINAL BYTES --- # verkit [![Open on npmx][npmx-version-src]][npmx-href] [![npm downloads][npmx-downloads-src]][npmx-href] [![Unit Test][unit-test-src]][unit-test-href] [![Codecov][codecov-src]][codecov-href] Fast, zero-dependency SemVer for ESM and TypeScript, with functional, tree-shakeable APIs. ## Features - ✅ Complete SemVer version and range toolkit. - 🚀 Faster than [node-semver] across tested operations. - 📦 Pure ESM with zero runtime dependencies. - 💙 First-class TypeScript declarations. - 🌳 Functional, tree-shakeable named exports. - 🔁 Mutable `SemVer` and `SemVerRange` records. - ⚡ 23.3% smaller for full CDN imports. - 🪶 60.2% smaller with common bundled imports. - 🛡️ Immutable collection operations. ## Install ```bash npm add verkit ``` ## Versions ```ts import { coerce, increment, normalize, normalizeFull, parse, truncate, } from 'verkit' const version = parse('1.2.3-rc.1+sha.abc') const coerced = coerce('release 42.6.7.9', { rtl: true }) version.patch = 4 normalizeFull(version) // '1.2.4-rc.1+sha.abc' normalize(version) // '1.2.4-rc.1' increment(version, 'minor') // '1.3.0' truncate(version, 'patch') // '1.2.4' coerced?.major // 6 ``` Version APIs accept strings or mutable `SemVer` objects returned by `parse` or `coerce`. `normalizeFull` keeps build metadata; normalized, incremented, and truncated versions omit it. ## Comparison ```ts import { compare, compareBuild, isGreaterThan, sortReversed } from 'verkit' compare('1.0.0+one', '1.0.0+two') // 0 compareBuild('1.0.0+one', '1.0.0+two') // -1 isGreaterThan('2.0.0', '1.0.0') // true sortReversed(['1.0.0', '2.0.0']) // ['2.0.0', '1.0.0'] ``` `compare` ignores build metadata; `compareBuild` uses it as a tie-breaker. ## Ranges ```ts import { findMaxSatisfying, normalizeRange, parseRange, satisfies, } from 'verkit' const range = parseRange('^1.2.3') normalizeRange(range) // '>=1.2.3 <2.0.0-0' satisfies('1.5.0', range) // true findMaxSatisfying(['1.2.3', '1.5.0', '2.0.0'], range) // '1.5.0' ``` Range APIs accept strings or mutable `SemVerRange` objects. They support comparators, unions, hyphens, wildcards, tilde, caret, loose parsing, and prereleases. Range options are fixed when a `SemVerRange` is created. APIs that receive a parsed range use its stored options and do not accept another options argument: ```ts const prereleases = parseRange('1.x', { includePrerelease: true }) satisfies('1.0.0-rc.1', prereleases) // true ``` To use different options, pass the original range string again or create another parsed range. ## API See the [API reference](https://npmx.dev/package-docs/verkit). ## Invalid input behavior `parse`, `parseComparator`, and `parseRange` throw detailed `TypeError`s. Their `tryParse*` wrappers return `null`; other safe transforms and predicates keep their documented `null`/`false` behavior. ## Migrating from node-semver Only renamed or reshaped [node-semver] APIs are listed; same-named functions such as `clean`, `coerce`, `compare`, and `satisfies` are omitted. | node-semver | verkit | | ---------------------------------------------- | --------------------------------------------------------------------------------------------------- | | `SemVer` | `parse` | | `parse` | `tryParse` | | `valid` | `normalize` | | `inc`, `diff` | `increment`, `difference` | | `major`, `minor`, `patch`, `prerelease` | `getMajor`, `getMinor`, `getPatch`, `getPrerelease` | | `rcompare`, `compareLoose`, `cmp` | `compareReversed`, `compare` with `{ loose: true }`, `compareWithOperator` | | `eq`, `neq`, `gt`, `gte`, `lt`, `lte` | `isEqual`, `isNotEqual`, `isGreaterThan`, `isGreaterThanOrEqual`, `isLessThan`, `isLessThanOrEqual` | | `rsort` | `sortReversed` | | `rcompareIdentifiers` | `compareIdentifiersReversed` | | `Comparator` | `SemVerComparator`, `parseComparator`, `tryParseComparator` | | Comparator formatting, test, and intersection | `normalizeComparator`, `satisfiesComparator`, `comparatorsIntersect` | | `Range` | `parseRange` | | `toComparators`, `validRange` | `rangeToComparators`, `normalizeRange` | | `maxSatisfying`, `minSatisfying`, `minVersion` | `findMaxSatisfying`, `findMinSatisfying`, `findMinimumForRange` | | `outside`, `gtr`, `ltr` | `isOutsideRange`, `isGreaterThanRange`, `isLessThanRange` | | `intersects`, `subset` | `rangesIntersect`, `isRangeSubset` | | `RELEASE_TYPES` | `INCREMENT_TYPES` (also includes `release`) | `valid` returns a normalized `string | null` in node-semver, so its equivalent is `normalize`. Use `isValid` when you only need a boolean. Use options objects such as `{ loose: true }` and `{ identifier, identifierBase }`. Range options belong to the string-parsing step; parsed `SemVerRange` objects already contain them. ## Differences from node-semver verkit follows [node-semver] semantics with four user-visible differences: - Array helpers never mutate their inputs. - Parsed `SemVerRange` objects retain their parse-time options. node-semver helpers may reparse a `Range` from `raw` using call-site options. - verkit is ESM-only, with no CommonJS, CLI, or `NODE_DEBUG=semver` output. - Error text, stack traces, and supported runtimes may differ. ## Bundle size Full package imports, minified with Rolldown: | Package | Minified | gzip | Brotli | | --------------------- | -------: | ------: | ------: | | verkit | 18,868 B | 5,923 B | 5,394 B | | [semver][node-semver] | 24,585 B | 7,355 B | 6,696 B | | verkit reduction | 23.3% | 19.5% | 19.4% | Common validation, range, comparison, increment, and coercion imports, tree-shaken and minified with Rolldown: | Package | Minified | gzip | Brotli | | --------------------- | -------: | ------: | ------: | | verkit | 9,834 B | 3,361 B | 3,086 B | | [semver][node-semver] | 24,736 B | 7,426 B | 6,762 B | | verkit reduction | 60.2% | 54.7% | 54.4% | Run `pnpm test:size` to reproduce the comparison. ## Benchmarks Measured on a MacBook Pro with an Apple M1 Max and 32 GB RAM. Higher is better. | Operation | verkit ops/s | semver ops/s | Faster | | ------------------------- | -----------: | -----------: | ------------ | | Parse and normalize | 3.67M | 3.26M | verkit 1.13× | | Compare | 3.09M | 2.36M | verkit 1.31× | | Compare parsed versions | 40.59M | 28.62M | verkit 1.42× | | Increment | 3.38M | 2.03M | verkit 1.66× | | Coerce | 2.77M | 2.32M | verkit 1.19× | | Satisfy uncached ranges | 148.5K | 122.3K | verkit 1.21× | | Satisfy pre-parsed inputs | 22.91M | 7.20M | verkit 3.18× | Range benchmarks either cycle through 1,001 inputs to avoid cache hits or parse once and reuse the resulting objects. Run runtime benchmarks with `pnpm bench`. ## Sponsors

Sponsors

## License [MIT](./LICENSE) © 2026-PRESENT [Kevin Deng](https://github.com/sxzz). Parts of the implementation and test fixtures are derived from [node-semver] under the ISC license; see [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md). [npmx-version-src]: https://npmx.dev/api/registry/badge/version/verkit [npmx-downloads-src]: https://npmx.dev/api/registry/badge/downloads-month/verkit [npmx-href]: https://npmx.dev/verkit [node-semver]: https://github.com/npm/node-semver [unit-test-src]: https://github.com/sxzz/verkit/actions/workflows/unit-test.yml/badge.svg [unit-test-href]: https://github.com/sxzz/verkit/actions/workflows/unit-test.yml [codecov-src]: https://codecov.io/gh/sxzz/verkit/graph/badge.svg?token=hBBtxizmt9 [codecov-href]: https://codecov.io/gh/sxzz/verkit --- END ORIGINAL BYTES --- ================================================================ vfile@6.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz Locked integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 05811400116ed61f1a7693b78fe8ca6598c155a12f3978e609db4df648a4cb3d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2015 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 7d3399e6415b1e60c4542731fec6223ec67437f863b901bdacf9729238356041; bytes: 22615 --- BEGIN ORIGINAL BYTES ---

vfile

[![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Sponsors][sponsors-badge]][collective] [![Backers][backers-badge]][collective] [![Chat][chat-badge]][chat] **vfile** is a small and browser friendly virtual file format that tracks metadata about files (such as its `path` and `value`) and lint [messages][api-vfile-messages]. ## Contents * [unified](#unified) * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`VFile(options?)`](#vfileoptions) * [`file.cwd`](#filecwd) * [`file.data`](#filedata) * [`file.history`](#filehistory) * [`file.messages`](#filemessages) * [`file.value`](#filevalue) * [`file.basename`](#filebasename) * [`file.dirname`](#filedirname) * [`file.extname`](#fileextname) * [`file.path`](#filepath) * [`file.stem`](#filestem) * [`VFile#fail(reason[, options])`](#vfilefailreason-options) * [`VFile#info(reason[, options])`](#vfileinforeason-options) * [`VFile#message(reason[, options])`](#vfilemessagereason-options) * [`VFile#toString(encoding?)`](#vfiletostringencoding) * [`Compatible`](#compatible) * [`Data`](#data) * [`DataMap`](#datamap) * [`Map`](#map) * [`MessageOptions`](#messageoptions) * [`Options`](#options) * [`Reporter`](#reporter) * [`ReporterSettings`](#reportersettings) * [`Value`](#value) * [Well-known](#well-known) * [List of utilities](#list-of-utilities) * [Reporters](#reporters) * [Types](#types) * [Compatibility](#compatibility) * [Contribute](#contribute) * [Sponsor](#sponsor) * [Acknowledgments](#acknowledgments) * [License](#license) ## unified **vfile** is part of the unified collective. * for more about us, see [`unifiedjs.com`][site] * for how the collective is governed, see [`unifiedjs/collective`][governance] * for updates, see [@unifiedjs][twitter] on Twitter ## What is this? This package provides a virtual file format. It exposes an API to access the file value, path, metadata about the file, and specifically supports attaching lint messages and errors to certain places in these files. ## When should I use this? The virtual file format is useful when dealing with the concept of files in places where you might not be able to access the file system. The message API is particularly useful when making things that check files (as in, linting). vfile is made for [unified][], which amongst other things checks files. However, vfile can be used in other projects that deal with parsing, transforming, and serializing data, to build linters, compilers, static site generators, and other build tools. This is different from the excellent [`vinyl`][vinyl] in that vfile has a smaller API, a smaller size, and focuses on messages. ## Install This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh npm install vfile ``` In Deno with [`esm.sh`][esmsh]: ```js import {VFile} from 'https://esm.sh/vfile@6' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {VFile} from 'vfile' const file = new VFile({ path: '~/example.txt', value: 'Alpha *braavo* charlie.' }) console.log(file.path) // => '~/example.txt' console.log(file.dirname) // => '~' file.extname = '.md' console.log(file.basename) // => 'example.md' file.basename = 'index.text' console.log(file.history) // => ['~/example.txt', '~/example.md', '~/index.text'] file.message('Unexpected unknown word `braavo`, did you mean `bravo`?', { place: {line: 1, column: 8}, source: 'spell', ruleId: 'typo' }) console.log(file.messages) ``` Yields: ```txt [ [~/index.text:1:8: Unexpected unknown word `braavo`, did you mean `bravo`?] { ancestors: undefined, cause: undefined, column: 8, fatal: false, line: 1, place: { line: 1, column: 8 }, reason: 'Unexpected unknown word `braavo`, did you mean `bravo`?', ruleId: 'typo', source: 'spell', file: '~/index.text' } ] ``` ## API This package exports the identifier [`VFile`][api-vfile]. There is no default export. ### `VFile(options?)` Create a new virtual file. `options` is treated as: * `string` or [`Uint8Array`][mdn-uint8-array] — `{value: options}` * `URL` — `{path: options}` * `VFile` — shallow copies its data over to the new file * `object` — all fields are shallow copied over to the new file Path related fields are set in the following order (least specific to most specific): `history`, `path`, `basename`, `stem`, `extname`, `dirname`. You cannot set `dirname` or `extname` without setting either `history`, `path`, `basename`, or `stem` too. ###### Parameters * `options` ([`Compatible`][api-compatible], optional) — file value ###### Returns New instance (`VFile`). ###### Example ```js new VFile() new VFile('console.log("alpha");') new VFile(new Uint8Array([0x65, 0x78, 0x69, 0x74, 0x20, 0x31])) new VFile({path: path.join('path', 'to', 'readme.md')}) new VFile({stem: 'readme', extname: '.md', dirname: path.join('path', 'to')}) new VFile({other: 'properties', are: 'copied', ov: {e: 'r'}}) ``` ### `file.cwd` Base of `path` (`string`, default: `process.cwd()` or `'/'` in browsers). ### `file.data` Place to store custom info (`Record`, default: `{}`). It’s OK to store custom data directly on the file but moving it to `data` is recommended. ### `file.history` List of file paths the file moved between (`Array`). The first is the original path and the last is the current path. ### `file.messages` List of messages associated with the file ([`Array`][api-vfile-message]). ### `file.value` Raw value ([`Uint8Array`][mdn-uint8-array], `string`, `undefined`). ### `file.basename` Get or set the basename (including extname) (`string?`, example: `'index.min.js'`). Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'` on windows). Cannot be nullified (use `file.path = file.dirname` instead). ### `file.dirname` Get or set the parent path (`string?`, example: `'~'`). Cannot be set if there’s no `path` yet. ### `file.extname` Get or set the extname (including dot) (`string?`, example: `'.js'`). Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'` on windows). Cannot be set if there’s no `path` yet. ### `file.path` Get or set the full path (`string?`, example: `'~/index.min.js'`). Cannot be nullified. You can set a file URL (a `URL` object with a `file:` protocol) which will be turned into a path with [`url.fileURLToPath`][file-url-to-path]. ### `file.stem` Get or set the stem (basename w/o extname) (`string?`, example: `'index.min'`). Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'` on windows). Cannot be nullified. ### `VFile#fail(reason[, options])` Create a fatal message for `reason` associated with the file. The `fatal` field of the message is set to `true` (error; file not usable) and the `file` field is set to the current file path. The message is added to the `messages` field on `file`. > 🪦 **Note**: also has obsolete signatures. ###### Parameters * `reason` (`string`) — reason for message, should use markdown * `options` ([`MessageOptions`][api-message-options], optional) — configuration ###### Returns Nothing (`never`). ###### Throws Message ([`VFileMessage`][vmessage]). ### `VFile#info(reason[, options])` Create an info message for `reason` associated with the file. The `fatal` field of the message is set to `undefined` (info; change likely not needed) and the `file` field is set to the current file path. The message is added to the `messages` field on `file`. > 🪦 **Note**: also has obsolete signatures. ###### Parameters * `reason` (`string`) — reason for message, should use markdown * `options` ([`MessageOptions`][api-message-options], optional) — configuration ###### Returns Message ([`VFileMessage`][vmessage]). ### `VFile#message(reason[, options])` Create a message for `reason` associated with the file. The `fatal` field of the message is set to `false` (warning; change may be needed) and the `file` field is set to the current file path. The message is added to the `messages` field on `file`. > 🪦 **Note**: also has obsolete signatures. ###### Parameters * `reason` (`string`) — reason for message, should use markdown * `options` ([`MessageOptions`][api-message-options], optional) — configuration ###### Returns Message ([`VFileMessage`][vmessage]). ### `VFile#toString(encoding?)` Serialize the file. > **Note**: which encodings are supported depends on the engine. > For info on Node.js, see: > . ###### Parameters * `encoding` (`string`, default: `'utf8'`) — character encoding to understand `value` as when it’s a [`Uint8Array`][mdn-uint8-array] ###### Returns Serialized file (`string`). ### `Compatible` Things that can be passed to the constructor (TypeScript type). ###### Type ```ts type Compatible = Options | URL | VFile | Value ``` ### `Data` Custom info (TypeScript type). Known attributes can be added to [`DataMap`][api-data-map]. ###### Type ```ts type Data = Record & Partial ``` ### `DataMap` This map registers the type of the `data` key of a `VFile` (TypeScript type). This type can be augmented to register custom `data` types. ###### Type ```ts interface DataMap {} ``` ###### Example ```ts declare module 'vfile' { interface DataMap { // `file.data.name` is typed as `string` name: string } } ``` ### `Map` Raw source map (TypeScript type). See [`source-map`][source-map]. ###### Fields * `version` (`number`) — which version of the source map spec this map is following * `sources` (`Array`) — an array of URLs to the original source files * `names` (`Array`) — an array of identifiers which can be referenced by individual mappings * `sourceRoot` (`string`, optional) — the URL root from which all sources are relative * `sourcesContent` (`Array`, optional) — an array of contents of the original source files * `mappings` (`string`) — a string of base64 VLQs which contain the actual mappings * `file` (`string`) — the generated file this source map is associated with ### `MessageOptions` Options to create messages (TypeScript type). See [`Options` in `vfile-message`][vfile-message-options]. ### `Options` An object with arbitrary fields and the following known fields (TypeScript type). ###### Fields * `basename` (`string`, optional) — set `basename` (name) * `cwd` (`string`, optional) — set `cwd` (working directory) * `data` ([`Data`][api-data], optional) — set `data` (associated info) * `dirname` (`string`, optional) — set `dirname` (path w/o basename) * `extname` (`string`, optional) — set `extname` (extension with dot) * `history` (`Array`, optional) — set `history` (paths the file moved between) * `path` (`URL | string`, optional) — set `path` (current path) * `stem` (`string`, optional) — set `stem` (name without extension) * `value` ([`Value`][api-value], optional) — set `value` (the contents of the file) ### `Reporter` Type for a reporter (TypeScript type). ###### Type ```ts type Reporter = ( files: Array, options: Settings ) => string ``` ### `ReporterSettings` Configuration for reporters (TypeScript type). ###### Type ```ts type ReporterSettings = Record ``` ### `Value` Contents of the file (TypeScript type). Can either be text or a [`Uint8Array`][mdn-uint8-array] structure. ###### Type ```ts type Value = Uint8Array | string ``` ### Well-known The following fields are considered “non-standard”, but they are allowed, and some utilities use them: * `map` ([`Map`][api-map]) — source map; this type is equivalent to the `RawSourceMap` type from the `source-map` module * `result` (`unknown`) — custom, non-string, compiled, representation; this is used by unified to store non-string results; one example is when turning markdown into React nodes * `stored` (`boolean`) — whether a file was saved to disk; this is used by vfile reporters There are also well-known fields on messages, see [them in a similar section of `vfile-message`](https://github.com/vfile/vfile-message#well-known). ## List of utilities * [`convert-vinyl-to-vfile`](https://github.com/dustinspecker/convert-vinyl-to-vfile) — transform from [Vinyl][] * [`to-vfile`](https://github.com/vfile/to-vfile) — create a file from a file path and read and write to the file system * [`vfile-find-down`](https://github.com/vfile/vfile-find-down) — find files by searching the file system downwards * [`vfile-find-up`](https://github.com/vfile/vfile-find-up) — find files by searching the file system upwards * [`vfile-glob`](https://github.com/shinnn/vfile-glob) — find files by glob patterns * [`vfile-is`](https://github.com/vfile/vfile-is) — check if a file passes a test * [`vfile-location`](https://github.com/vfile/vfile-location) — convert between positional and offset locations * [`vfile-matter`](https://github.com/vfile/vfile-matter) — parse the YAML front matter * [`vfile-message`](https://github.com/vfile/vfile-message) — create a file message * [`vfile-messages-to-vscode-diagnostics`](https://github.com/shinnn/vfile-messages-to-vscode-diagnostics) — transform file messages to VS Code diagnostics * [`vfile-mkdirp`](https://github.com/vfile/vfile-mkdirp) — make sure the directory of a file exists on the file system * [`vfile-rename`](https://github.com/vfile/vfile-rename) — rename the path parts of a file * [`vfile-sort`](https://github.com/vfile/vfile-sort) — sort messages by line/column * [`vfile-statistics`](https://github.com/vfile/vfile-statistics) — count messages per category: failures, warnings, etc * [`vfile-to-eslint`](https://github.com/vfile/vfile-to-eslint) — convert to ESLint formatter compatible output > 👉 **Note**: see [unist][] for projects that work with nodes. ## Reporters * [`vfile-reporter`][reporter] — create a report * [`vfile-reporter-json`](https://github.com/vfile/vfile-reporter-json) — create a JSON report * [`vfile-reporter-folder-json`](https://github.com/vfile/vfile-reporter-folder-json) — create a JSON representation of vfiles * [`vfile-reporter-pretty`](https://github.com/vfile/vfile-reporter-pretty) — create a pretty report * [`vfile-reporter-junit`](https://github.com/kellyselden/vfile-reporter-junit) — create a jUnit report * [`vfile-reporter-position`](https://github.com/Hocdoc/vfile-reporter-position) — create a report with content excerpts > 👉 **Note**: want to make your own reporter? > Reporters *must* accept `Array` as their first argument, and return > `string`. > Reporters *may* accept other values too, in which case it’s suggested to stick > to `vfile-reporter`s interface. ## Types This package is fully typed with [TypeScript][]. It exports the additional types [`Compatible`][api-compatible], [`Data`][api-data], [`DataMap`][api-data-map], [`Map`][api-map], [`MessageOptions`][api-message-options], [`Options`][api-options], [`Reporter`][api-reporter], [`ReporterSettings`][api-reporter-settings], and [`Value`][api-value]. ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `vfile@^6`, compatible with Node.js 16. ## Contribute See [`contributing.md`][contributing] in [`vfile/.github`][health] for ways to get started. See [`support.md`][support] for ways to get help. This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## Sponsor Support this effort and give back by sponsoring on [OpenCollective][collective]!
Vercel

Motif

HashiCorp

GitBook

Gatsby

Netlify

Coinbase

ThemeIsle

Expo

Boost Note

Markdown Space

Holloway


You?

## Acknowledgments The initial release of this project was authored by [**@wooorm**](https://github.com/wooorm). Thanks to [**@contra**](https://github.com/contra), [**@phated**](https://github.com/phated), and others for their work on [Vinyl][], which was a huge inspiration. Thanks to [**@brendo**](https://github.com/brendo), [**@shinnn**](https://github.com/shinnn), [**@KyleAMathews**](https://github.com/KyleAMathews), [**@sindresorhus**](https://github.com/sindresorhus), and [**@denysdovhan**](https://github.com/denysdovhan) for contributing commits since! ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/vfile/vfile/workflows/main/badge.svg [build]: https://github.com/vfile/vfile/actions [coverage-badge]: https://img.shields.io/codecov/c/github/vfile/vfile.svg [coverage]: https://codecov.io/github/vfile/vfile [downloads-badge]: https://img.shields.io/npm/dm/vfile.svg [downloads]: https://www.npmjs.com/package/vfile [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=vfile [size]: https://bundlejs.com/?q=vfile [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg [backers-badge]: https://opencollective.com/unified/backers/badge.svg [collective]: https://opencollective.com/unified [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg [chat]: https://github.com/vfile/vfile/discussions [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [health]: https://github.com/vfile/.github [contributing]: https://github.com/vfile/.github/blob/main/contributing.md [support]: https://github.com/vfile/.github/blob/main/support.md [coc]: https://github.com/vfile/.github/blob/main/code-of-conduct.md [license]: license [author]: https://wooorm.com [unified]: https://github.com/unifiedjs/unified [vinyl]: https://github.com/gulpjs/vinyl [site]: https://unifiedjs.com [twitter]: https://twitter.com/unifiedjs [unist]: https://github.com/syntax-tree/unist#list-of-utilities [reporter]: https://github.com/vfile/vfile-reporter [vmessage]: https://github.com/vfile/vfile-message [vfile-message-options]: https://github.com/vfile/vfile-message#options [mdn-uint8-array]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array [source-map]: https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23 [file-url-to-path]: https://nodejs.org/api/url.html#url_url_fileurltopath_url [governance]: https://github.com/unifiedjs/collective [api-vfile-messages]: #filemessages [api-vfile-message]: #vfilemessagereason-options [api-vfile]: #vfileoptions [api-compatible]: #compatible [api-data]: #data [api-data-map]: #datamap [api-map]: #map [api-message-options]: #messageoptions [api-options]: #options [api-reporter]: #reporter [api-reporter-settings]: #reportersettings [api-value]: #value --- END ORIGINAL BYTES --- ================================================================ vfile-message@4.0.3 Declared package license: MIT Published archive: https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz Locked integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: dd1081884a92952802f4803110a6bb543acea9a814c786d58605b4c1219b5ebb; bytes: 1094 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 8237675f4e88e434357f4fc5617ce7b20250349e5386f88d77cc9237794aa1f9; bytes: 6959 --- BEGIN ORIGINAL BYTES --- # vfile-message [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] Create [vfile][github-vfile] messages. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`VFileMessage(reason[, options])`](#vfilemessagereason-options) * [`Options`](#options) * [Well-known](#well-known) * [Compatibility](#compatibility) * [Contribute](#contribute) * [License](#license) ## What is this? This package provides a (lint) message format. ## When should I use this? In most cases, you can use `file.message` from `VFile` itself, but in some cases you might not have a file, and still want to emit warnings or errors, in which case this can be used directly. ## Install This package is [ESM only][github-gist-esm]. In Node.js (version 16+), install with [npm][npmjs-install]: ```sh npm install vfile-message ``` In Deno with [`esm.sh`][esmsh]: ```js import {VFileMessage} from 'https://esm.sh/vfile-message@4' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {VFileMessage} from 'vfile-message' const message = new VFileMessage( 'Unexpected unknown word `braavo`, did you mean `bravo`?', {place: {column: 8, line: 1}, ruleId: 'typo', source: 'spell'} ) console.log(message) ``` Yields: ```text [1:8: Unexpected unknown word `braavo`, did you mean `bravo`?] { reason: 'Unexpected unknown word `braavo`, did you mean `bravo`?', line: 1, column: 8, ancestors: undefined, cause: undefined, fatal: undefined, place: {line: 1, column: 8}, ruleId: 'typo', source: 'spell' } ``` ## API This package exports the identifier [`VFileMessage`][api-vfile-message]. There is no default export. It exports the additional [TypeScript][] type [`Options`][api-options]. ### `VFileMessage(reason[, options])` Create a message for `reason`. > 🪦 **Note**: also has obsolete signatures. ###### Parameters * `reason` (`string`) — reason for message (should use markdown) * `options` ([`Options`][api-options], optional) — configuration. ###### Extends [`Error`][developer-mozilla-error]. ###### Returns Instance of `VFileMessage`. ###### Fields * `ancestors` ([`Array`][github-unist-node] or `undefined`) — stack of (inclusive) ancestor nodes surrounding the message * `cause` ([`Error`][developer-mozilla-error] or `undefined`) — original error cause of the message * `column` (`number` or `undefined`) — starting column of message * `fatal` (`boolean` or `undefined`) — state of problem; `true`: error, file not usable; `false`: warning, change may be needed; `undefined`: info, change likely not needed * `line` (`number` or `undefined`) — starting line of message * `place` ([`Point`][github-unist-point], [`Position`][github-unist-position] or `undefined`) — place of message * `reason` (`string`) — reason for message (should use markdown) * `ruleId` (`string` or `undefined`, example: `'my-rule'`) — category of message * `source` (`string` or `undefined`, example: `'my-package'`) — namespace of message ### `Options` Configuration (TypeScript type). ###### Fields * `ancestors` ([`Array`][github-unist-node], optional) — stack of (inclusive) ancestor nodes surrounding the message * `cause` ([`Error`][developer-mozilla-error], optional) — original error cause of the message * `place` ([`Point`][github-unist-point] or [`Position`][github-unist-position], optional) — place of message * `ruleId` (`string`, optional, example: `'my-rule'`) — category of message * `source` (`string`, optional, , example: `'my-package'`) — namespace of who sent the message ### Well-known It’s OK to store custom data directly on the `VFileMessage`, some of those are handled by [utilities][github-vfile-util]. The following fields are documented and typed here. ###### Fields * `actual` (`string`, optional) — specify the source value that’s being reported, which is deemed incorrect * `expected` (`Array`, optional) — suggest acceptable values that can be used instead of `actual` * `url` (`string`, optional) — link to docs for the message (this must be an absolute URL that can be passed as `x` to `new URL(x)`) * `note` (`string`, optional) — long form description of the message (you should use markdown) ## Compatibility Projects maintained by the unified collective are compatible with maintained versions of Node.js. When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, `vfile-message@^4`, compatible with Node.js 16. ## Contribute See [`contributing.md`][health-contributing] in [`vfile/.github`][health] for ways to get started. See [`support.md`][health-support] for ways to get help. This project has a [code of conduct][health-coc]. By interacting with this repository, organization, or community you agree to abide by its terms. ## License [MIT][file-license] © [Titus Wormer][wooorm] [api-options]: #options [api-vfile-message]: #vfilemessagereason-options [badge-build-image]: https://github.com/vfile/vfile-message/workflows/main/badge.svg [badge-build-url]: https://github.com/vfile/vfile-message/actions [badge-coverage-image]: https://img.shields.io/codecov/c/github/vfile/vfile-message.svg [badge-coverage-url]: https://codecov.io/github/vfile/vfile-message [badge-downloads-image]: https://img.shields.io/npm/dm/vfile-message.svg [badge-downloads-url]: https://www.npmjs.com/package/vfile-message [badge-size-image]: https://img.shields.io/bundlejs/size/vfile-message [badge-size-url]: https://bundlejs.com/?q=vfile-message [developer-mozilla-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error [esmsh]: https://esm.sh [file-license]: license [github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [github-unist-node]: https://github.com/syntax-tree/unist#node [github-unist-point]: https://github.com/syntax-tree/unist#point [github-unist-position]: https://github.com/syntax-tree/unist#position [github-vfile]: https://github.com/vfile/vfile [github-vfile-util]: https://github.com/vfile/vfile#utilities [health]: https://github.com/vfile/.github [health-coc]: https://github.com/vfile/.github/blob/main/code-of-conduct.md [health-contributing]: https://github.com/vfile/.github/blob/main/contributing.md [health-support]: https://github.com/vfile/.github/blob/main/support.md [npmjs-install]: https://docs.npmjs.com/cli/install [typescript]: https://www.typescriptlang.org [wooorm]: https://wooorm.com --- END ORIGINAL BYTES --- ================================================================ vite@8.3.8 Declared package license: MIT Published archive: https://registry.npmjs.org/vite/-/vite-8.3.8.tgz Locked integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: a22152baa1aef74402443008e767e7c689a524c0909d19b0431d97f5ab066a13; bytes: 98196 --- BEGIN ORIGINAL BYTES --- # Vite core license Vite is released under the MIT license: MIT License Copyright (c) 2019-present, VoidZero Inc. and Vite contributors 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. # Licenses of bundled dependencies The published Vite artifact additionally contains code with the following licenses: BSD-2-Clause, CC0-1.0, ISC, MIT # Bundled dependencies: ## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping License: MIT By: Justin Ridgewell Repositories: https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps > Copyright 2024 Justin Ridgewell > > 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. --------------------------------------- ## @jridgewell/resolve-uri License: MIT By: Justin Ridgewell Repository: https://github.com/jridgewell/resolve-uri > Copyright 2019 Justin Ridgewell > > 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. --------------------------------------- ## @polka/compression License: MIT Repository: https://github.com/lukeed/polka --------------------------------------- ## @polka/url License: MIT By: Luke Edwards Repository: https://github.com/lukeed/polka --------------------------------------- ## @rollup/plugin-alias, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils License: MIT By: Johannes Stein Repository: https://github.com/rollup/plugins License: MIT By: LarsDenBakker Repository: https://github.com/rollup/plugins License: MIT By: Rich Harris Repository: https://github.com/rollup/plugins > The MIT License (MIT) > > Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors) > > 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. --------------------------------------- ## @vitest/utils License: MIT Repository: https://github.com/vitest-dev/vitest > MIT License > > Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors > > 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. --------------------------------------- ## @voidzero-dev/vite-task-client License: MIT Repository: https://github.com/voidzero-dev/vite-task > MIT License > > Copyright (c) 2026-present, VoidZero Inc. > > 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. --------------------------------------- ## anymatch License: ISC By: Elan Shanker Repository: https://github.com/micromatch/anymatch > The ISC License > > Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) > > Permission to use, copy, modify, and/or distribute this software for any > purpose with or without fee is hereby granted, provided that the above > copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## artichokie License: MIT By: sapphi-red, Evan You Repository: https://github.com/sapphi-red/artichokie > MIT License > > Copyright (c) 2020-present, Yuxi (Evan) You > Copyright (c) 2023-present, sapphi-red > > 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. --------------------------------------- ## binary-extensions License: MIT By: Sindre Sorhus Repository: https://github.com/sindresorhus/binary-extensions > MIT License > > Copyright (c) Sindre Sorhus (https://sindresorhus.com) > Copyright (c) Paul Miller (https://paulmillr.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. --------------------------------------- ## braces, fill-range, is-number License: MIT By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm Repository: https://github.com/micromatch/braces License: MIT By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling Repository: https://github.com/jonschlinkert/fill-range License: MIT By: Jon Schlinkert, Olsten Larck, Rouven Weßling Repository: https://github.com/jonschlinkert/is-number > The MIT License (MIT) > > Copyright (c) 2014-present, Jon Schlinkert. > > 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. --------------------------------------- ## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, wsl-utils License: MIT By: Sindre Sorhus Repositories: https://github.com/sindresorhus/bundle-name, https://github.com/sindresorhus/default-browser, https://github.com/sindresorhus/default-browser-id, https://github.com/sindresorhus/define-lazy-prop, https://github.com/sindresorhus/is-docker, https://github.com/sindresorhus/is-inside-container, https://github.com/sindresorhus/is-wsl, https://github.com/sindresorhus/open, https://github.com/sindresorhus/run-applescript, https://github.com/sindresorhus/wsl-utils > 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. --------------------------------------- ## cac License: MIT By: egoist, Kevin Deng Repository: https://github.com/cacjs/cac > The MIT License (MIT) > > Copyright (c) EGOIST <0x142857@gmail.com> (https://github.com/egoist) > > 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. --------------------------------------- ## chokidar License: MIT By: Paul Miller, Elan Shanker Repository: https://github.com/paulmillr/chokidar > The MIT License (MIT) > > Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker > > 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. --------------------------------------- ## connect License: MIT By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell Repository: https://github.com/senchalabs/connect > (The MIT License) > > Copyright (c) 2010 Sencha Inc. > Copyright (c) 2011 LearnBoost > Copyright (c) 2011-2014 TJ Holowaychuk > Copyright (c) 2015 Douglas Christopher Wilson > > 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. --------------------------------------- ## convert-source-map License: MIT By: Thorsten Lorenz Repository: https://github.com/thlorenz/convert-source-map > Copyright 2013 Thorsten Lorenz. > All rights reserved. > > 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. --------------------------------------- ## cors License: MIT By: Troy Goode Repository: https://github.com/expressjs/cors > (The MIT License) > > Copyright (c) 2013 Troy Goode > > 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. --------------------------------------- ## cssesc License: MIT By: Mathias Bynens Repository: https://github.com/mathiasbynens/cssesc > Copyright Mathias Bynens > > 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. --------------------------------------- ## dotenv-expand License: BSD-2-Clause By: motdotla Repository: https://github.com/motdotla/dotenv-expand > Copyright (c) 2016, Scott Motte > All rights reserved. > > Redistribution and use in source and binary forms, with or without > modification, are permitted provided that the following conditions are met: > > * Redistributions of source code must retain the above copyright notice, this > list of conditions and the following disclaimer. > > * Redistributions in binary form must reproduce the above copyright notice, > this list of conditions and the following disclaimer in the documentation > and/or other materials provided with the distribution. > > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" > AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE > DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE > FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR > SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER > CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, > OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------- ## ee-first License: MIT By: Jonathan Ong, Douglas Christopher Wilson Repository: https://github.com/jonathanong/ee-first > The MIT License (MIT) > > Copyright (c) 2014 Jonathan Ong me@jongleberry.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. --------------------------------------- ## encodeurl License: MIT By: Douglas Christopher Wilson Repository: https://github.com/pillarjs/encodeurl > (The MIT License) > > Copyright (c) 2016 Douglas Christopher Wilson > > 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. --------------------------------------- ## entities License: BSD-2-Clause By: Felix Boehm Repository: https://github.com/fb55/entities > Copyright (c) Felix Böhm > All rights reserved. > > Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: > > Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. > > Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. > > THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, > EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------- ## es-module-lexer License: MIT By: Guy Bedford Repository: https://github.com/guybedford/es-module-lexer > MIT License > ----------- > > Copyright (C) 2018-2022 Guy Bedford > > 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. --------------------------------------- ## escape-html License: MIT Repository: https://github.com/component/escape-html > (The MIT License) > > Copyright (c) 2012-2013 TJ Holowaychuk > Copyright (c) 2015 Andreas Lubbe > Copyright (c) 2015 Tiancheng "Timothy" Gu > > 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. --------------------------------------- ## estree-walker License: MIT By: Rich Harris Repository: https://github.com/Rich-Harris/estree-walker > Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors) > > 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. --------------------------------------- ## etag License: MIT By: Douglas Christopher Wilson, David Björklund Repository: https://github.com/jshttp/etag > (The MIT License) > > Copyright (c) 2014-2016 Douglas Christopher Wilson > > 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. --------------------------------------- ## finalhandler License: MIT By: Douglas Christopher Wilson Repository: https://github.com/pillarjs/finalhandler > (The MIT License) > > Copyright (c) 2014-2017 Douglas Christopher Wilson > > 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. --------------------------------------- ## follow-redirects License: MIT By: Ruben Verborgh, Olivier Lalonde, James Talmage Repository: https://github.com/follow-redirects/follow-redirects > Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh > > 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. --------------------------------------- ## fresh-import License: MIT By: sapphi-red Repository: https://github.com/sapphi-red/fresh-import > MIT License > > Copyright (c) 2026 sapphi-red > > 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. --------------------------------------- ## generic-names License: MIT By: Alexey Litvinov Repository: https://github.com/css-modules/generic-names > The MIT License (MIT) > > Copyright (c) 2015 Alexey Litvinov > > 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. --------------------------------------- ## glob-parent License: ISC By: Gulp Team, Elan Shanker, Blaine Bublitz Repository: https://github.com/gulpjs/glob-parent > The ISC License > > Copyright (c) 2015, 2019 Elan Shanker > > Permission to use, copy, modify, and/or distribute this software for any > purpose with or without fee is hereby granted, provided that the above > copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## host-validation-middleware License: MIT By: sapphi-red Repository: https://github.com/sapphi-red/host-validation-middleware > MIT License > > Copyright (c) 2025 sapphi-red > > 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. --------------------------------------- ## http-proxy-3 License: MIT By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz Repository: https://github.com/sagemathinc/http-proxy-3 > node-http-3 > > Copyright (c) 2010-2025 William Stein, Charlie Robbins, Jarrett Cruger & the Contributors. > > 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. --------------------------------------- ## icss-utils License: ISC By: Glen Maddern Repository: https://github.com/css-modules/icss-utils > ISC License (ISC) > Copyright 2018 Glen Maddern > > Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## is-binary-path License: MIT By: Sindre Sorhus Repository: https://github.com/sindresorhus/is-binary-path > MIT License > > Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.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. --------------------------------------- ## is-extglob License: MIT By: Jon Schlinkert Repository: https://github.com/jonschlinkert/is-extglob > The MIT License (MIT) > > Copyright (c) 2014-2016, Jon Schlinkert > > 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. --------------------------------------- ## is-glob License: MIT By: Jon Schlinkert, Brian Woodward, Daniel Perez Repository: https://github.com/micromatch/is-glob > The MIT License (MIT) > > Copyright (c) 2014-2017, Jon Schlinkert. > > 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. --------------------------------------- ## is-reference License: MIT By: Rich Harris Repository: https://github.com/Rich-Harris/is-reference --------------------------------------- ## js-tokens License: MIT By: Simon Lydell Repository: https://github.com/lydell/js-tokens > The MIT License (MIT) > > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 Simon Lydell > > 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. --------------------------------------- ## launch-editor, launch-editor-middleware License: MIT By: Evan You Repositories: https://github.com/vitejs/launch-editor, https://github.com/vitejs/launch-editor > The MIT License (MIT) > > Copyright (c) 2017-present, Yuxi (Evan) You > > 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. --------------------------------------- ## lilconfig License: MIT By: antonk52 Repository: https://github.com/antonk52/lilconfig > MIT License > > Copyright (c) 2022 Anton Kastritskiy > > 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. --------------------------------------- ## loader-utils License: MIT By: Tobias Koppers @sokra Repository: https://github.com/webpack/loader-utils > Copyright JS Foundation and other contributors > > 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. --------------------------------------- ## lodash.camelcase License: MIT By: John-David Dalton, Blaine Bublitz, Mathias Bynens Repository: https://github.com/lodash/lodash > Copyright jQuery Foundation and other contributors > > Based on Underscore.js, copyright Jeremy Ashkenas, > DocumentCloud and Investigative Reporters & Editors > > This software consists of voluntary contributions made by many > individuals. For exact contribution history, see the revision history > available at https://github.com/lodash/lodash > > The following license applies to all parts of this software except as > documented below: > > ==== > > 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. > > ==== > > Copyright and related rights for sample code are waived via CC0. Sample > code is defined as all source code displayed within the prose of the > documentation. > > CC0: http://creativecommons.org/publicdomain/zero/1.0/ > > ==== > > Files located in the node_modules and vendor directories are externally > maintained libraries used by this software which have their own > licenses; we recommend you read them, as their terms may differ from the > terms above. --------------------------------------- ## magic-string License: MIT By: Rich Harris Repository: https://github.com/Rich-Harris/magic-string > Copyright 2018 Rich Harris > > 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. --------------------------------------- ## mlly, ufo License: MIT Repositories: https://github.com/unjs/mlly, https://github.com/unjs/ufo > MIT License > > Copyright (c) Pooya Parsa > > 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. --------------------------------------- ## mrmime License: MIT By: Luke Edwards Repository: https://github.com/lukeed/mrmime > The MIT License (MIT) > > Copyright (c) Luke Edwards (https://lukeed.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. --------------------------------------- ## normalize-path License: MIT By: Jon Schlinkert, Blaine Bublitz Repository: https://github.com/jonschlinkert/normalize-path > The MIT License (MIT) > > Copyright (c) 2014-2018, Jon Schlinkert. > > 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. --------------------------------------- ## object-assign License: MIT By: Sindre Sorhus Repository: https://github.com/sindresorhus/object-assign > The MIT License (MIT) > > 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. --------------------------------------- ## obug License: MIT By: Kevin Deng Repository: https://github.com/sxzz/obug > The MIT License (MIT) > > Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz) > Copyright (c) 2014-2017 TJ Holowaychuk > Copyright (c) 2018-2021 Josh Junon > > 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. --------------------------------------- ## on-finished License: MIT By: Douglas Christopher Wilson, Jonathan Ong Repository: https://github.com/jshttp/on-finished > (The MIT License) > > Copyright (c) 2013 Jonathan Ong > Copyright (c) 2014 Douglas Christopher Wilson > > 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. --------------------------------------- ## parse5 License: MIT By: Ivan Nikulin, James Garbutt, Felix Boehm, Titus Repository: https://github.com/inikulin/parse5 > Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin) > > 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. --------------------------------------- ## parseurl License: MIT By: Douglas Christopher Wilson, Jonathan Ong Repository: https://github.com/pillarjs/parseurl > (The MIT License) > > Copyright (c) 2014 Jonathan Ong > Copyright (c) 2014-2017 Douglas Christopher Wilson > > 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. --------------------------------------- ## periscopic License: MIT Repository: https://github.com/Rich-Harris/periscopic > Copyright (c) 2019 Rich Harris > > 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. --------------------------------------- ## picocolors License: ISC By: Alexey Raspopov Repository: https://github.com/alexeyraspopov/picocolors > ISC License > > Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov > > Permission to use, copy, modify, and/or distribute this software for any > purpose with or without fee is hereby granted, provided that the above > copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## postcss-import License: MIT By: Maxime Thirouin Repository: https://github.com/postcss/postcss-import > The MIT License (MIT) > > Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson > > 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. --------------------------------------- ## postcss-load-config License: MIT By: Michael Ciniawky, Ryan Dunckel, Mateusz Derks, Dalton Santos, Patrick Gilday, François Wouts Repository: https://github.com/postcss/postcss-load-config > The MIT License (MIT) > > Copyright Michael Ciniawsky > > 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. --------------------------------------- ## postcss-modules License: MIT By: Alexander Madyankin Repository: https://github.com/css-modules/postcss-modules > The MIT License (MIT) > > Copyright 2015-present Alexander Madyankin > > 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. --------------------------------------- ## postcss-modules-extract-imports License: ISC By: Glen Maddern Repository: https://github.com/css-modules/postcss-modules-extract-imports > Copyright 2015 Glen Maddern > > Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## postcss-modules-local-by-default License: MIT By: Mark Dalgleish Repository: https://github.com/css-modules/postcss-modules-local-by-default > The MIT License (MIT) > > Copyright 2015 Mark Dalgleish > > 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. --------------------------------------- ## postcss-modules-scope License: ISC By: Glen Maddern Repository: https://github.com/css-modules/postcss-modules-scope > ISC License (ISC) > > Copyright (c) 2015, Glen Maddern > > Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## postcss-modules-values License: ISC By: Glen Maddern Repository: https://github.com/css-modules/postcss-modules-values > ISC License (ISC) > > Copyright (c) 2015, Glen Maddern > > Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------- ## postcss-selector-parser License: MIT By: Maxime Thirouin, Ben Briggs, Chris Eppstein Repository: https://github.com/postcss/postcss-selector-parser > Copyright (c) Ben Briggs (http://beneb.info) > > 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. --------------------------------------- ## postcss-value-parser License: MIT By: Bogdan Chadkin Repository: https://github.com/TrySound/postcss-value-parser > Copyright (c) Bogdan Chadkin > > 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. --------------------------------------- ## readdirp License: MIT By: Thorsten Lorenz, Paul Miller Repository: https://github.com/paulmillr/readdirp > MIT License > > Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.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. --------------------------------------- ## resolve.exports, totalist License: MIT By: Luke Edwards Repositories: https://github.com/lukeed/resolve.exports, https://github.com/lukeed/totalist > The MIT License (MIT) > > Copyright (c) Luke Edwards (lukeed.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. --------------------------------------- ## shell-quote License: MIT By: James Halliday Repository: http://github.com/ljharb/shell-quote > The MIT License > > Copyright (c) 2013 James Halliday (mail@substack.net) > > 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. --------------------------------------- ## sirv License: MIT By: Luke Edwards Repository: https://github.com/lukeed/sirv --------------------------------------- ## statuses License: MIT By: Douglas Christopher Wilson, Jonathan Ong Repository: https://github.com/jshttp/statuses > The MIT License (MIT) > > Copyright (c) 2014 Jonathan Ong > Copyright (c) 2016 Douglas Christopher Wilson > > 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. --------------------------------------- ## std-env License: MIT Repository: https://github.com/unjs/std-env > MIT License > > Copyright (c) Pooya Parsa > > 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. --------------------------------------- ## string-hash License: CC0-1.0 By: The Dark Sky Company Repository: https://github.com/darkskyapp/string-hash --------------------------------------- ## strip-literal License: MIT By: Anthony Fu Repository: https://github.com/antfu/strip-literal > MIT License > > Copyright (c) 2022 Anthony Fu > > 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. --------------------------------------- ## tinyexec License: MIT By: James Garbutt Repository: https://github.com/tinylibs/tinyexec > MIT License > > Copyright (c) 2024 Tinylibs > > 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. --------------------------------------- ## to-regex-range License: MIT By: Jon Schlinkert, Rouven Weßling Repository: https://github.com/micromatch/to-regex-range > The MIT License (MIT) > > Copyright (c) 2015-present, Jon Schlinkert. > > 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. --------------------------------------- ## unpipe License: MIT By: Douglas Christopher Wilson Repository: https://github.com/stream-utils/unpipe > (The MIT License) > > Copyright (c) 2015 Douglas Christopher Wilson > > 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. --------------------------------------- ## util-deprecate License: MIT By: Nathan Rajlich Repository: https://github.com/TooTallNate/util-deprecate > (The MIT License) > > Copyright (c) 2014 Nathan Rajlich > > 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. --------------------------------------- ## utils-merge License: MIT By: Jared Hanson Repository: https://github.com/jaredhanson/utils-merge > The MIT License (MIT) > > Copyright (c) 2013-2017 Jared Hanson > > 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. --------------------------------------- ## vary License: MIT By: Douglas Christopher Wilson Repository: https://github.com/jshttp/vary > (The MIT License) > > Copyright (c) 2014-2017 Douglas Christopher Wilson > > 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. --------------------------------------- ## ws License: MIT By: Einar Otto Stangvik Repository: https://github.com/websockets/ws > Copyright (c) 2011 Einar Otto Stangvik > Copyright (c) 2013 Arnout Kazemier and contributors > Copyright (c) 2016 Luigi Pinca and contributors > > 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. --------------------------------------- ## zimmerframe License: MIT Repository: https://github.com/sveltejs/zimmerframe > MIT License > > Copyright (c) 2023 [these people](https://github.com/Rich-Harris/zimmerframe/graphs/contributors) > > 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. --- END ORIGINAL BYTES --- ================================================================ vitefu@1.1.3 Declared package license: MIT Published archive: https://registry.npmjs.org/vitefu/-/vitefu-1.1.3.tgz Locked integrity: sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: ed0b4f44d335645e243ff856c66b5ca7b353ed58d10307e6d4dbfb35658a7814; bytes: 1074 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2026 Bjorn and Dominik 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 1e527d5ab269c13588c85a47355ed7f79d6338dfc031b508ea1458d4c5063bd9; bytes: 123 --- BEGIN ORIGINAL BYTES --- # vitefu Utilities for building frameworks with Vite. ## Usage See [src/index.d.ts](./src/index.d.ts). ## License MIT --- END ORIGINAL BYTES --- ================================================================ xxhash-wasm@1.1.0 Declared package license: MIT Published archive: https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz Locked integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.md SHA-256: 6f6b3afa109ea0d073b8e3cf0feea0aba07d357fcdebeef54dd34b3c0b3f9ac5; bytes: 1109 --- BEGIN ORIGINAL BYTES --- The MIT License (MIT) ===================== Copyright © 2017 Michael Jungo 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. --- END ORIGINAL BYTES --- ================================================================ yaml@2.9.1 Declared package license: ISC Published archive: https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz Locked integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 5bba27375d93e9119f76c1015f7672cf9ad5f70952296e0842fb2243d6376869; bytes: 738 --- BEGIN ORIGINAL BYTES --- Copyright Eemeli Aro Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: c8aa393826fb1c55ae195399864e7f454a2c66c4d9491459545b26cac4b958e6; bytes: 6266 --- BEGIN ORIGINAL BYTES --- # YAML `yaml` is a definitive library for [YAML](https://yaml.org/), the human friendly data serialization standard. This library: - Supports both YAML 1.1 and YAML 1.2 and all common data schemas, - Passes all of the [yaml-test-suite](https://github.com/yaml/yaml-test-suite) tests, - Can accept any string as input without throwing, parsing as much YAML out of it as it can, and - Supports parsing, modifying, and writing YAML comments and blank lines. The library is released under the ISC open source license, and the code is [available on GitHub](https://github.com/eemeli/yaml/). It has no external dependencies and runs on Node.js as well as modern browsers. For the purposes of versioning, any changes that break any of the documented endpoints or APIs will be considered semver-major breaking changes. Undocumented library internals may change between minor versions, and previous APIs may be deprecated (but not removed). The minimum supported TypeScript version of the included typings is 3.9; for use in earlier versions you may need to set `skipLibCheck: true` in your config. This requirement may be updated between minor versions of the library. For more information, see the project's documentation site: [**eemeli.org/yaml**](https://eemeli.org/yaml/) For build instructions and contribution guidelines, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md). To install: ```sh npm install yaml # or deno add jsr:@eemeli/yaml ``` **Note:** These docs are for `yaml@2`. For v1, see the [v1.10.0 tag](https://github.com/eemeli/yaml/tree/v1.10.0) for the source and [eemeli.org/yaml/v1](https://eemeli.org/yaml/v1/) for the documentation. ## API Overview The API provided by `yaml` has three layers, depending on how deep you need to go: [Parse & Stringify](https://eemeli.org/yaml/#parse-amp-stringify), [Documents](https://eemeli.org/yaml/#documents), and the underlying [Lexer/Parser/Composer](https://eemeli.org/yaml/#parsing-yaml). The first has the simplest API and "just works", the second gets you all the bells and whistles supported by the library along with a decent [AST](https://eemeli.org/yaml/#content-nodes), and the third lets you get progressively closer to YAML source, if that's your thing. A [command-line tool](https://eemeli.org/yaml/#command-line-tool) is also included. ### Parse & Stringify ```js import { parse, stringify } from 'yaml' ``` - [`parse(str, reviver?, options?): value`](https://eemeli.org/yaml/#yaml-parse) - [`stringify(value, replacer?, options?): string`](https://eemeli.org/yaml/#yaml-stringify) ### Documents ```js import { Document, isDocument, parseAllDocuments, parseDocument } from 'yaml' ``` - [`Document`](https://eemeli.org/yaml/#documents) - [`constructor(value, replacer?, options?)`](https://eemeli.org/yaml/#creating-documents) - [`#contents`](https://eemeli.org/yaml/#content-nodes) - [`#directives`](https://eemeli.org/yaml/#stream-directives) - [`#errors`](https://eemeli.org/yaml/#errors) - [`#warnings`](https://eemeli.org/yaml/#errors) - [`isDocument(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`parseAllDocuments(str, options?): Document[]`](https://eemeli.org/yaml/#parsing-documents) - [`parseDocument(str, options?): Document`](https://eemeli.org/yaml/#parsing-documents) ### Content Nodes ```js import { isAlias, isCollection, isMap, isNode, isPair, isScalar, isSeq, Scalar, visit, visitAsync, YAMLMap, YAMLSeq } from 'yaml' ``` - [`isAlias(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isCollection(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isMap(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isNode(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isPair(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isScalar(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`isSeq(foo): boolean`](https://eemeli.org/yaml/#identifying-node-types) - [`new Scalar(value)`](https://eemeli.org/yaml/#scalar-values) - [`new YAMLMap()`](https://eemeli.org/yaml/#collections) - [`new YAMLSeq()`](https://eemeli.org/yaml/#collections) - [`doc.createAlias(node, name?): Alias`](https://eemeli.org/yaml/#creating-nodes) - [`doc.createNode(value, options?): Node`](https://eemeli.org/yaml/#creating-nodes) - [`doc.createPair(key, value): Pair`](https://eemeli.org/yaml/#creating-nodes) - [`visit(node, visitor)`](https://eemeli.org/yaml/#finding-and-modifying-nodes) - [`visitAsync(node, visitor)`](https://eemeli.org/yaml/#finding-and-modifying-nodes) ### Parsing YAML ```js import { Composer, Lexer, Parser } from 'yaml' ``` - [`new Lexer().lex(src)`](https://eemeli.org/yaml/#lexer) - [`new Parser(onNewLine?).parse(src)`](https://eemeli.org/yaml/#parser) - [`new Composer(options?).compose(tokens)`](https://eemeli.org/yaml/#composer) ## YAML.parse ```yaml # file.yml YAML: - A human-readable data serialization language - https://en.wikipedia.org/wiki/YAML yaml: - A complete JavaScript implementation - https://www.npmjs.com/package/yaml ``` ```js import fs from 'fs' import YAML from 'yaml' YAML.parse('3.14159') // 3.14159 YAML.parse('[ true, false, maybe, null ]\n') // [ true, false, 'maybe', null ] const file = fs.readFileSync('./file.yml', 'utf8') YAML.parse(file) // { YAML: // [ 'A human-readable data serialization language', // 'https://en.wikipedia.org/wiki/YAML' ], // yaml: // [ 'A complete JavaScript implementation', // 'https://www.npmjs.com/package/yaml' ] } ``` ## YAML.stringify ```js import YAML from 'yaml' YAML.stringify(3.14159) // '3.14159\n' YAML.stringify([true, false, 'maybe', null]) // `- true // - false // - maybe // - null // ` YAML.stringify({ number: 3, plain: 'string', block: 'two\nlines\n' }) // `number: 3 // plain: string // block: | // two // lines // ` ``` --- Browser testing provided by: BrowserStack --- END ORIGINAL BYTES --- ================================================================ yargs-parser@22.0.0 Declared package license: ISC Published archive: https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz Locked integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE.txt SHA-256: 365496ca1f56da40b23c9815fc40fa9005847b2f8f8fd1c1a4929ef25ec8cd1d; bytes: 731 --- BEGIN ORIGINAL BYTES --- Copyright (c) 2016, Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: 3a295cc50b185c69ff3c6dd449c86c40a299c6d5254d302c209979600b17698b; bytes: 11916 --- BEGIN ORIGINAL BYTES --- # yargs-parser ![ci](https://github.com/yargs/yargs-parser/workflows/ci/badge.svg) [![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/yargs-parser) The mighty option parser used by [yargs](https://github.com/yargs/yargs). visit the [yargs website](http://yargs.js.org/) for more examples, and thorough usage instructions. ## Example ```sh npm i yargs-parser --save ``` ```js const argv = require('yargs-parser')(process.argv.slice(2)) console.log(argv) ``` ```console $ node example.js --foo=33 --bar hello { _: [], foo: 33, bar: 'hello' } ``` _or parse a string!_ ```js const argv = require('yargs-parser')('--foo=99 --bar=33') console.log(argv) ``` ```console { _: [], foo: 99, bar: 33 } ``` Convert an array of mixed types before passing to `yargs-parser`: ```js const parse = require('yargs-parser') parse(['-f', 11, '--zoom', 55].join(' ')) // <-- array to string parse(['-f', 11, '--zoom', 55].map(String)) // <-- array of strings ``` ## Deno Example As of `v19` `yargs-parser` supports [Deno](https://github.com/denoland/deno): ```typescript import parser from "https://deno.land/x/yargs_parser/deno.ts"; const argv = parser('--foo=99 --bar=9987930', { string: ['bar'] }) console.log(argv) ``` ## ESM Example As of `v19` `yargs-parser` supports ESM (_both in Node.js and in the browser_): **Node.js:** ```js import parser from 'yargs-parser' const argv = parser('--foo=99 --bar=9987930', { string: ['bar'] }) console.log(argv) ``` **Browsers:** ```html ``` ## API ### parser(args, opts={}) Parses command line arguments returning a simple mapping of keys and values. **expects:** * `args`: a string or array of strings representing the options to parse. * `opts`: provide a set of hints indicating how `args` should be parsed: * `opts.alias`: an object representing the set of aliases for a key: `{alias: {foo: ['f']}}`. * `opts.array`: indicate that keys should be parsed as an array: `{array: ['foo', 'bar']}`.
Indicate that keys should be parsed as an array and coerced to booleans / numbers:
`{array: [{ key: 'foo', boolean: true }, {key: 'bar', number: true}]}`. * `opts.boolean`: arguments should be parsed as booleans: `{boolean: ['x', 'y']}`. * `opts.coerce`: provide a custom synchronous function that returns a coerced value from the argument provided (or throws an error). For arrays the function is called only once for the entire array:
`{coerce: {foo: function (arg) {return modifiedArg}}}`. * `opts.config`: indicate a key that represents a path to a configuration file (this file will be loaded and parsed). * `opts.configObjects`: configuration objects to parse, their properties will be set as arguments:
`{configObjects: [{'x': 5, 'y': 33}, {'z': 44}]}`. * `opts.configuration`: provide configuration options to the yargs-parser (see: [configuration](#configuration)). * `opts.count`: indicate a key that should be used as a counter, e.g., `-vvv` = `{v: 3}`. * `opts.default`: provide default values for keys: `{default: {x: 33, y: 'hello world!'}}`. * `opts.envPrefix`: environment variables (`process.env`) with the prefix provided should be parsed. * `opts.narg`: specify that a key requires `n` arguments: `{narg: {x: 2}}`. * `opts.normalize`: `path.normalize()` will be applied to values set to this key. * `opts.number`: keys should be treated as numbers. * `opts.string`: keys should be treated as strings (even if they resemble a number `-x 33`). **returns:** * `obj`: an object representing the parsed value of `args` * `key/value`: key value pairs for each argument and their aliases. * `_`: an array representing the positional arguments. * [optional] `--`: an array with arguments after the end-of-options flag `--`. ### require('yargs-parser').detailed(args, opts={}) Parses a command line string, returning detailed information required by the yargs engine. **expects:** * `args`: a string or array of strings representing options to parse. * `opts`: provide a set of hints indicating how `args`, inputs are identical to `require('yargs-parser')(args, opts={})`. **returns:** * `argv`: an object representing the parsed value of `args` * `key/value`: key value pairs for each argument and their aliases. * `_`: an array representing the positional arguments. * [optional] `--`: an array with arguments after the end-of-options flag `--`. * `error`: populated with an error object if an exception occurred during parsing. * `aliases`: the inferred list of aliases built by combining lists in `opts.alias`. * `newAliases`: any new aliases added via camel-case expansion: * `boolean`: `{ fooBar: true }` * `defaulted`: any new argument created by `opts.default`, no aliases included. * `boolean`: `{ foo: true }` * `configuration`: given by default settings and `opts.configuration`. ### Configuration The yargs-parser applies several automated transformations on the keys provided in `args`. These features can be turned on and off using the `configuration` field of `opts`. ```js var parsed = parser(['--no-dice'], { configuration: { 'boolean-negation': false } }) ``` ### short option groups * default: `true`. * key: `short-option-groups`. Should a group of short-options be treated as boolean flags? ```console $ node example.js -abc { _: [], a: true, b: true, c: true } ``` _if disabled:_ ```console $ node example.js -abc { _: [], abc: true } ``` ### camel-case expansion * default: `true`. * key: `camel-case-expansion`. Should hyphenated arguments be expanded into camel-case aliases? ```console $ node example.js --foo-bar { _: [], 'foo-bar': true, fooBar: true } ``` _if disabled:_ ```console $ node example.js --foo-bar { _: [], 'foo-bar': true } ``` ### dot-notation * default: `true` * key: `dot-notation` Should keys that contain `.` be treated as objects? ```console $ node example.js --foo.bar { _: [], foo: { bar: true } } ``` _if disabled:_ ```console $ node example.js --foo.bar { _: [], "foo.bar": true } ``` ### parse numbers * default: `true` * key: `parse-numbers` Should keys that look like numbers be treated as such? ```console $ node example.js --foo=99.3 { _: [], foo: 99.3 } ``` _if disabled:_ ```console $ node example.js --foo=99.3 { _: [], foo: "99.3" } ``` ### parse positional numbers * default: `true` * key: `parse-positional-numbers` Should positional keys that look like numbers be treated as such. ```console $ node example.js 99.3 { _: [99.3] } ``` _if disabled:_ ```console $ node example.js 99.3 { _: ['99.3'] } ``` ### boolean negation * default: `true` * key: `boolean-negation` Should variables prefixed with `--no` be treated as negations? ```console $ node example.js --no-foo { _: [], foo: false } ``` _if disabled:_ ```console $ node example.js --no-foo { _: [], "no-foo": true } ``` ### combine arrays * default: `false` * key: `combine-arrays` Should arrays be combined when provided by both command line arguments and a configuration file. ### duplicate arguments array * default: `true` * key: `duplicate-arguments-array` Should arguments be coerced into an array when duplicated: ```console $ node example.js -x 1 -x 2 { _: [], x: [1, 2] } ``` _if disabled:_ ```console $ node example.js -x 1 -x 2 { _: [], x: 2 } ``` ### flatten duplicate arrays * default: `true` * key: `flatten-duplicate-arrays` Should array arguments be coerced into a single array when duplicated: ```console $ node example.js -x 1 2 -x 3 4 { _: [], x: [1, 2, 3, 4] } ``` _if disabled:_ ```console $ node example.js -x 1 2 -x 3 4 { _: [], x: [[1, 2], [3, 4]] } ``` ### greedy arrays * default: `true` * key: `greedy-arrays` Should arrays consume more than one positional argument following their flag. ```console $ node example --arr 1 2 { _: [], arr: [1, 2] } ``` _if disabled:_ ```console $ node example --arr 1 2 { _: [2], arr: [1] } ``` **Note: in `v18.0.0` we are considering defaulting greedy arrays to `false`.** ### nargs eats options * default: `false` * key: `nargs-eats-options` Should nargs consume dash options as well as positional arguments. ### negation prefix * default: `no-` * key: `negation-prefix` The prefix to use for negated boolean variables. ```console $ node example.js --no-foo { _: [], foo: false } ``` _if set to `quux`:_ ```console $ node example.js --quuxfoo { _: [], foo: false } ``` ### populate -- * default: `false`. * key: `populate--` Should unparsed flags be stored in `--` or `_`. _If disabled:_ ```console $ node example.js a -b -- x y { _: [ 'a', 'x', 'y' ], b: true } ``` _If enabled:_ ```console $ node example.js a -b -- x y { _: [ 'a' ], '--': [ 'x', 'y' ], b: true } ``` ### set placeholder key * default: `false`. * key: `set-placeholder-key`. Should a placeholder be added for keys not set via the corresponding CLI argument? _If disabled:_ ```console $ node example.js -a 1 -c 2 { _: [], a: 1, c: 2 } ``` _If enabled:_ ```console $ node example.js -a 1 -c 2 { _: [], a: 1, b: undefined, c: 2 } ``` ### halt at non-option * default: `false`. * key: `halt-at-non-option`. Should parsing stop at the first positional argument? This is similar to how e.g. `ssh` parses its command line. _If disabled:_ ```console $ node example.js -a run b -x y { _: [ 'b' ], a: 'run', x: 'y' } ``` _If enabled:_ ```console $ node example.js -a run b -x y { _: [ 'b', '-x', 'y' ], a: 'run' } ``` ### strip aliased * default: `false` * key: `strip-aliased` Should aliases be removed before returning results? _If disabled:_ ```console $ node example.js --test-field 1 { _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 } ``` _If enabled:_ ```console $ node example.js --test-field 1 { _: [], 'test-field': 1, testField: 1 } ``` ### strip dashed * default: `false` * key: `strip-dashed` Should dashed keys be removed before returning results? This option has no effect if `camel-case-expansion` is disabled. _If disabled:_ ```console $ node example.js --test-field 1 { _: [], 'test-field': 1, testField: 1 } ``` _If enabled:_ ```console $ node example.js --test-field 1 { _: [], testField: 1 } ``` ### unknown options as args * default: `false` * key: `unknown-options-as-args` Should unknown options be treated like regular arguments? An unknown option is one that is not configured in `opts`. _If disabled_ ```console $ node example.js --unknown-option --known-option 2 --string-option --unknown-option2 { _: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true } ``` _If enabled_ ```console $ node example.js --unknown-option --known-option 2 --string-option --unknown-option2 { _: ['--unknown-option'], knownOption: 2, stringOption: '--unknown-option2' } ``` ## Supported Node.js Versions Libraries in this ecosystem make a best effort to track [Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a). ## Special Thanks The yargs project evolves from optimist and minimist. It owes its existence to a lot of James Halliday's hard work. Thanks [substack](https://github.com/substack) **beep** **boop** \o/ ## License ISC --- END ORIGINAL BYTES --- ================================================================ yocto-queue@1.2.2 Declared package license: MIT Published archive: https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz Locked integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: 5c932d88256b4ab958f64a856fa48e8bd1f55bc1d96b8149c65689e0c61789d3; bytes: 1117 --- BEGIN ORIGINAL BYTES --- 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. --- END ORIGINAL BYTES --- ================================================================ yoga-layout@3.2.1 Declared package license: MIT Published archive: https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz Locked integrity: sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ== Unresolved: upstream-license-text-not-bundled-collection-remains-unresolved The author published no license text in the distributed files; the terms are those of the declared identifier MIT. ================================================================ zod@4.6.6 Declared package license: MIT Published archive: https://registry.npmjs.org/zod/-/zod-4.6.6.tgz Locked integrity: sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/LICENSE SHA-256: 3f1189b28e3866e0d979968d466b78f813f76827cfdca1fbb124cc0a5c8841f8; bytes: 1072 --- BEGIN ORIGINAL BYTES --- MIT License Copyright (c) 2025 Colin McDonnell 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/README.md SHA-256: b5651740a66d68e8c55c4fdea2df8b00448f99a0433008fef99a54f859024039; bytes: 7304 --- BEGIN ORIGINAL BYTES ---

Zod logo

Zod

TypeScript-first schema validation with static type inference
by @colinhacks


Zod CI status License npm discord server stars

Docs   •   Discord   •   𝕏   •   Bluesky


### [Read the docs →](https://zod.dev/api)

## What is Zod? Zod is a TypeScript-first validation library. Define a schema and parse some data with it. You'll get back a strongly typed, validated result. ```ts import * as z from "zod"; const User = z.object({ name: z.string(), }); // some untrusted data... const input = { /* stuff */ }; // the parsed result is validated and type safe! const data = User.parse(input); // so you can use it with confidence :) console.log(data.name); ```
## Features - Zero external dependencies - Works in Node.js and all modern browsers - Tiny: `2kb` core bundle (gzipped) - Immutable API: methods return a new instance - Concise interface - Works with TypeScript and plain JS - Built-in JSON Schema conversion - Extensive ecosystem
## Installation ```sh npm install zod ```
## Basic usage Before you can do anything else, you need to define a schema. For the purposes of this guide, we'll use a simple object schema. ```ts import * as z from "zod"; const Player = z.object({ username: z.string(), xp: z.number(), }); ``` ### Parsing data Given any Zod schema, use `.parse` to validate an input. If it's valid, Zod returns a strongly-typed _deep clone_ of the input. ```ts Player.parse({ username: "billie", xp: 100 }); // => returns { username: "billie", xp: 100 } ``` **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.parseAsync()` method instead. ```ts const schema = z.string().refine(async (val) => val.length <= 8); await schema.parseAsync("hello"); // => "hello" ``` ### AOT compilation For hot validation paths, `z.compile(schema)` returns a schema clone with an ahead-of-time compiled fast path. Valid inputs take the compiled path; invalid inputs fall back to the regular parser so error reporting stays identical. Across a 55-schema benchmark the median speedup is **2.4x**, and it scales with how much work the schema does per parse: a large array of objects is ~9x, a 20-key object ~9x, a nested object ~4.5x, while a bare `z.string()` gains nothing — compilation removes per-node dispatch and allocation, and a single `typeof` has none to remove. ```ts const CompiledPlayer = z.compile(Player); CompiledPlayer.parse({ username: "billie", xp: 100 }); ``` To enable compilation globally for schemas constructed after import: ```ts import "zod/compile"; // place before modules that define schemas ``` Things to know: - Compilation uses `new Function`. Global mode is automatically disabled when `z.config({ jitless: true })` is set (e.g. CSP environments); calling `z.compile()` directly is an explicit opt-in. - Schemas with async refinements or transforms can't be compiled, and neither can a few other constructs. That is not an error: `z.compile()` hands the schema back unchanged and it keeps using the regular parser, exactly as global mode leaves it. Pass `{ strict: true }` to throw `ZodCompileAsyncError` / `ZodCompileUnsupportedError` instead. - On invalid input, refinements and transforms may run twice (fast path, then fallback). - Deriving a new schema from a compiled one (`.refine()`, `.extend()`, etc.) returns an uncompiled schema — compile the final schema. See [`compile` docs](https://zod.dev/compile) for details. ### Handling errors When validation fails, the `.parse()` method will throw a `ZodError` instance with granular information about the validation issues. ```ts try { Player.parse({ username: 42, xp: "100" }); } catch (err) { if (err instanceof z.ZodError) { err.issues; /* [ { expected: 'string', code: 'invalid_type', path: [ 'username' ], message: 'Invalid input: expected string, received number' }, { expected: 'number', code: 'invalid_type', path: [ 'xp' ], message: 'Invalid input: expected number, received string' } ] */ } } ``` To avoid a `try/catch` block, you can use the `.safeParse()` method to get back a plain result object containing either the successfully parsed data or a `ZodError`. The result type is a [discriminated union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions), so you can handle both cases conveniently. ```ts const result = Player.safeParse({ username: 42, xp: "100" }); if (!result.success) { result.error; // ZodError instance } else { result.data; // { username: string; xp: number } } ``` **Note** — If your schema uses certain asynchronous APIs like `async` [refinements](https://zod.dev/api#refinements) or [transforms](https://zod.dev/api#transforms), you'll need to use the `.safeParseAsync()` method instead. ```ts const schema = z.string().refine(async (val) => val.length <= 8); await schema.safeParseAsync("hello"); // => { success: true; data: "hello" } ``` ### Inferring types Zod infers a static type from your schema definitions. You can extract this type with the `z.infer<>` utility and use it however you like. ```ts const Player = z.object({ username: z.string(), xp: z.number(), }); // extract the inferred type type Player = z.infer; // use it in your code const player: Player = { username: "billie", xp: 100 }; ``` In some cases, the input & output types of a schema can diverge. For instance, the `.transform()` API can convert the input from one type to another. In these cases, you can extract the input and output types independently: ```ts const mySchema = z.string().transform((val) => val.length); type MySchemaIn = z.input; // => string type MySchemaOut = z.output; // equivalent to z.infer // number ``` --- END ORIGINAL BYTES --- ================================================================ zwitch@2.0.4 Declared package license: MIT Published archive: https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz Locked integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A== Unresolved: No collection gap detected; not an independent legal determination --- Original license: package/license SHA-256: ca4662cb5d1b738fbe5350c0d5485ba11773b4b7208974082ae6e129a52d631d; bytes: 1099 --- BEGIN ORIGINAL BYTES --- (The MIT License) Copyright (c) 2016 Titus Wormer 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. --- END ORIGINAL BYTES --- --- Original licensing-readme: package/readme.md SHA-256: 86dd5d00f587a6233fb73e151ade04368f01649b108189ec932436d318067b89; bytes: 4930 --- BEGIN ORIGINAL BYTES --- # zwitch [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] Handle values based on a field. ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) * [`zwitch(key[, options])`](#zwitchkey-options) * [`one(value[, rest…])`](#onevalue-rest) * [`function handler(value[, rest…])`](#function-handlervalue-rest) * [Types](#types) * [Compatibility](#compatibility) * [Related](#related) * [Contribute](#contribute) * [Security](#security) * [License](#license) ## What is this? This is a tiny package that lets you `switch` between some field on objects. ## When should I use this? This package is very useful when mapping one AST to another. It’s a lot like a `switch` statement on one field, but it’s extensible. ## Install This package is [ESM only][esm]. In Node.js (version 14.14+, 16.0+), install with [npm][]: ```sh npm install zwitch ``` In Deno with [`esm.sh`][esmsh]: ```js import {zwitch} from 'https://esm.sh/zwitch@2' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js import {zwitch} from 'zwitch' const handle = zwitch('type', {invalid, unknown, handlers: {alpha: handleAlpha}}) handle({type: 'alpha'}) function handleAlpha() { /* … */ } ``` Or, with a `switch` statement: ```js const field = 'type' function handle(value) { let fn = invalid if (value && typeof value === 'object' && field in value) { switch (value[field]) { case 'alpha': fn = handleAlpha break default: fn = unknown break } } return fn.apply(this, arguments) } handle({type: 'alpha'}) function handleAlpha() { /* … */ } function unknown() { /* … */ } function invalid() { /* … */ } ``` ## API This package exports the identifier `zwitch`. There is no default export. ### `zwitch(key[, options])` Create a switch, based on a `key` (`string`). ##### `options` Options can be omitted and added later to `one`. ###### `options.handlers` Handlers to use, stored on `one.handlers` (`Record`, optional). ###### `options.unknown` Handler to use for unknown values, stored on `one.unknown` (`Function`, optional). ###### `options.invalid` Handler to use for invalid values, stored on `one.invalid` (`Function`, optional). ###### Returns See [`one`][one] (`Function`). ### `one(value[, rest…])` Handle one value. Based on the bound `key`, a respective handler will be called. If `value` is not an object, or doesn’t have a `key` property, the special “invalid” handler will be called. If `value` has an unknown `key`, the special “unknown” handler will be called. All arguments, and the context object (`this`), are passed through to the [handler][], and it’s result is returned. ###### `one.handlers` Map of [handler][]s (`Record`). ###### `one.invalid` Special [`handler`][handler] called if a value doesn’t have a `key` property. If not set, `undefined` is returned for invalid values. ###### `one.unknown` Special [`handler`][handler] called if a value does not have a matching handler. If not set, `undefined` is returned for unknown values. ### `function handler(value[, rest…])` Handle one value. ## Types This package is fully typed with [TypeScript][]. It exports the types `Handler`, `UnknownHandler`, `InvalidHandler`, and `Options`. ## Compatibility This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers. ## Related * [`mapz`](https://github.com/wooorm/mapz) — functional map ## Contribute Yes please! See [How to Contribute to Open Source][contribute]. ## Security This package is safe. ## License [MIT][license] © [Titus Wormer][author] [build-badge]: https://github.com/wooorm/zwitch/workflows/main/badge.svg [build]: https://github.com/wooorm/zwitch/actions [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/zwitch.svg [coverage]: https://codecov.io/github/wooorm/zwitch [downloads-badge]: https://img.shields.io/npm/dm/zwitch.svg [downloads]: https://www.npmjs.com/package/zwitch [size-badge]: https://img.shields.io/bundlephobia/minzip/zwitch.svg [size]: https://bundlephobia.com/result?p=zwitch [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh [typescript]: https://www.typescriptlang.org [contribute]: https://opensource.guide/how-to-contribute/ [license]: license [author]: https://wooorm.com [one]: #onevalue-rest [handler]: #function-handlervalue-rest --- END ORIGINAL BYTES ---