{"_id":"@ahmttyydn/import","_rev":"7-5cbe01c5e310b14f9915ee588b981620","name":"@ahmttyydn/import","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"@ahmttyydn/import","version":"1.0.0","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.0","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/scalar/scalar","bugs":{"url":"https://github.com/scalar/scalar/issues/new/choose"},"dist":{"shasum":"a069fe17e265949fde2d9cb676b6a7cb07b7497d","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.0.tgz","fileCount":10,"integrity":"sha512-lt05Ot3w98Jqxwqrve3tqRE6FCnUiJVVF0B6Vb2aw6PzoKLTzk5KjJadSsHVy7uMKQjG7T9u61BZybmhGhvSwg==","signatures":[{"sig":"MEUCIQDB3Btb4KqhGn7Lf21fuMOkAC/Md/OqxC1MofQd+zNKaQIgdEnFaN3OBkj4QedwvuRue9EVbbRjVc3wqLdbXBAR3QM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41704},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.0.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"},"_resolved":"/private/var/folders/6s/_0b0836n1t9dc5prz2rp43h80000gn/T/91869dc7b6a5ecf5bbfee40d2c104174/ahmttyydn-import-1.0.0.tgz","_integrity":"sha512-lt05Ot3w98Jqxwqrve3tqRE6FCnUiJVVF0B6Vb2aw6PzoKLTzk5KjJadSsHVy7uMKQjG7T9u61BZybmhGhvSwg==","repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.6.2","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.11.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.0_1775418663295_0.8090249235466149","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ahmttyydn/import","version":"1.0.1","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.1","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"df2933638a98eb59d7e3cb464b6dda354c218f7d","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.1.tgz","fileCount":10,"integrity":"sha512-ieoUuci3MPC3DFNvTscHLXAa5jxX/bXDhDWcljtIdfhv2e4MWCtCySkyZHQ5lVPeWwhD17v3M9VePGRZXBJpag==","signatures":[{"sig":"MEQCIGGtY6ZbgrlZSZ19xqLVMrC0KjjHkLsLPK/DgNhlSfz4AiBx9z1AOtKt2efxDLYkNIbF2+PbcvIJhxIDnWslb+Z+DQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41707},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.1.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"_resolved":"/tmp/ef6b8e2c4e72b172861b1d0391a32cee/ahmttyydn-import-1.0.1.tgz","_integrity":"sha512-ieoUuci3MPC3DFNvTscHLXAa5jxX/bXDhDWcljtIdfhv2e4MWCtCySkyZHQ5lVPeWwhD17v3M9VePGRZXBJpag==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.11.0","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.1"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.1_1775438247039_0.9041182130291765","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@ahmttyydn/import","version":"1.0.2","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.2","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"b7aee57398635602cdea502a65640ee642e605a5","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.2.tgz","fileCount":10,"integrity":"sha512-+e2dGkUjryu8pJxWsMIJIRAOm76QLJF9uG+OJG5OFDFqyRNA5BSNw2HRYmr0ItqF3xJ5LiaC+AIQIPhmiKbAoQ==","signatures":[{"sig":"MEUCIQDqE4xdWQPZxg026m8QVU7ktxXRdAN/IP3mPy77NgQf5QIgNCAI9xcfmAXBmEbrf6nkhyK8myNsFxc0RwMmD+kKpaU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41707},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.2.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"_resolved":"/tmp/927b2d3bbad20ac94741045e5283fa44/ahmttyydn-import-1.0.2.tgz","_integrity":"sha512-+e2dGkUjryu8pJxWsMIJIRAOm76QLJF9uG+OJG5OFDFqyRNA5BSNw2HRYmr0ItqF3xJ5LiaC+AIQIPhmiKbAoQ==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.11.0","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.2_1775439094581_0.20085411428794564","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@ahmttyydn/import","version":"1.0.4","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.4","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"b1e80090cfac711b197e99d13415e3915958e9d8","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.4.tgz","fileCount":10,"integrity":"sha512-sMBD5Dc8SOFA8oTxz8xgGmAyiEBZL0HGIFynoFfH5dhma7RDgbPdXB+WMw+u4gdhvhpNB4M/p50JZDR1Oam6Uw==","signatures":[{"sig":"MEUCIGMkaL4teb4RGg9nt/7UH0LtfGzt5LNU1nfIZzuWPH9MAiEAqNmhTSiwe9PKK2n7T+lf49yrYUBBTvRsB2AG8KN6MSo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41707},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.4.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"_resolved":"/tmp/cc644624a2cd7d7c20d772bf0a52ddff/ahmttyydn-import-1.0.4.tgz","_integrity":"sha512-sMBD5Dc8SOFA8oTxz8xgGmAyiEBZL0HGIFynoFfH5dhma7RDgbPdXB+WMw+u4gdhvhpNB4M/p50JZDR1Oam6Uw==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.11.0","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.4"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.4_1775441002471_0.37470306465235703","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@ahmttyydn/import","version":"1.0.6","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.6","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"0c0f8c02389c31820885cbd18b2fabd50703684d","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.6.tgz","fileCount":10,"integrity":"sha512-gj4d1rjgwGq6h8U13U6djbzO9C8sAC39oiblOxR7+EFnkNi21fWi9U4Up68mMYp38wh6zOaZaJEoMU2He4uiog==","signatures":[{"sig":"MEQCIAU/keWAE+tDGDDHdz9x//bfj9QgvvVVLWNuI77Ge7XmAiAn0CSGiLmfGh9osOMeUfodk+Eyr4mEuG0knONTfbnr9g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41707},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.6.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"_resolved":"/tmp/73d27c6eaa65ef952f3ff22d7e54264b/ahmttyydn-import-1.0.6.tgz","_integrity":"sha512-gj4d1rjgwGq6h8U13U6djbzO9C8sAC39oiblOxR7+EFnkNi21fWi9U4Up68mMYp38wh6zOaZaJEoMU2He4uiog==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.11.0","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.6"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.6_1775488369123_0.6710328974782209","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@ahmttyydn/import","version":"1.0.8","keywords":["openapi","swagger","postman","scalar"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/import@1.0.8","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"4a5a29c0a617c5a21963713e73e5fa602903f826","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.8.tgz","fileCount":10,"integrity":"sha512-o31Wxo6pU0HRCJPpacE0z1cBCFF28a3ekGHPvxJf9uvlUxz9jamFm9Sj9I5ekvmliFq9qBJP6w0X50cGrFbg8g==","signatures":[{"sig":"MEQCIA/Dpo/BfH00iDGqgi5MpKEh+0T26fPaeOz5LQDdmo26AiB8P5mEhWD9hskb+398wzyNIJkkDxPmfTAb9kfChytjLQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41707},"main":"dist/index.js","type":"module","_from":"file:ahmttyydn-import-1.0.8.tgz","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"dev":"tsx watch playground/index.ts","test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"_resolved":"/tmp/a333437c1ceec7559648193d9f576636/ahmttyydn-import-1.0.8.tgz","_integrity":"sha512-o31Wxo6pU0HRCJPpacE0z1cBCFF28a3ekGHPvxJf9uvlUxz9jamFm9Sj9I5ekvmliFq9qBJP6w0X50cGrFbg8g==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/import"},"_npmVersion":"11.11.0","description":"Import any file, URL or content to get an OpenAPI document","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/import_1.0.8_1775513311102_0.6419885735466013","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@ahmttyydn/import","description":"Import any file, URL or content to get an OpenAPI document","license":"MIT","author":{"name":"Scalar","url":"https://github.com/scalar"},"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"repository":{"type":"git","url":"git+https://github.com/ahmtydn/scalar.git","directory":"packages/import"},"keywords":["openapi","swagger","postman","scalar"],"version":"1.0.9","engines":{"node":">=22"},"type":"module","main":"dist/index.js","module":"dist/index.js","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.9"},"devDependencies":{},"scripts":{"build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","dev":"tsx watch playground/index.ts","test":"vitest","types:check":"tsc --noEmit"},"types":"./dist/index.d.ts","_id":"@ahmttyydn/import@1.0.9","_integrity":"sha512-mmS2F2QFy7wQZPu7X3VvO1kTAhLUl7l9D68wvShEXFFR+M5lkrtMXpgq3QtsNQuALc+klXCAZ6RhXRo9KqkDXQ==","_resolved":"/tmp/6c101c291b4d19de0e6e4863c9d2f682/ahmttyydn-import-1.0.9.tgz","_from":"file:ahmttyydn-import-1.0.9.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-mmS2F2QFy7wQZPu7X3VvO1kTAhLUl7l9D68wvShEXFFR+M5lkrtMXpgq3QtsNQuALc+klXCAZ6RhXRo9KqkDXQ==","shasum":"a3f9b18cbb8d149c9dfb8696f2533617ff931436","tarball":"https://registry.npmjs.org/@ahmttyydn/import/-/import-1.0.9.tgz","fileCount":10,"unpackedSize":41707,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fimport@1.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCEJjkRJJZC/l7ci/7nLb/7+tB+VSieF2ZDrBIAxfKfNQIhAID0+SgZr4qZXg5gUFATPs/aV8SXB+1dmxnO3usSatsb"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f156646-bc10-4946-801a-afa6a41446bd"}},"directories":{},"maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/import_1.0.9_1775514619618_0.6888369040246831"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-05T19:51:03.152Z","modified":"2026-04-06T22:30:20.076Z","1.0.0":"2026-04-05T19:51:03.436Z","1.0.1":"2026-04-06T01:17:27.204Z","1.0.2":"2026-04-06T01:31:34.741Z","1.0.4":"2026-04-06T02:03:22.621Z","1.0.6":"2026-04-06T15:12:49.302Z","1.0.8":"2026-04-06T22:08:31.265Z","1.0.9":"2026-04-06T22:30:19.790Z"},"bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"author":{"name":"Scalar","url":"https://github.com/scalar"},"license":"MIT","homepage":"https://github.com/ahmtydn/scalar","keywords":["openapi","swagger","postman","scalar"],"repository":{"type":"git","url":"git+https://github.com/ahmtydn/scalar.git","directory":"packages/import"},"description":"Import any file, URL or content to get an OpenAPI document","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"readme":"# Scalar Import\n\n[![Version](https://img.shields.io/npm/v/%40scalar/import)](https://www.npmjs.com/package/@ahmttyydn/import)\n[![Downloads](https://img.shields.io/npm/dm/%40scalar/import)](https://www.npmjs.com/package/@ahmttyydn/import)\n[![License](https://img.shields.io/npm/l/%40scalar%2Fimport)](https://www.npmjs.com/package/@ahmttyydn/import)\n[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)\n\nPass an URL to an OpenAPI document, a Swagger document, a Postman collection, a Scalar API reference, a Scalar Sandbox link … basically anything, and retrieve an OpenAPI document.\n\n## Installation\n\n```bash\nnpm install @ahmttyydn/import\n```\n\n## Usage\n\nFind any OpenAPI/Swagger document URL in any content:\n\n```ts\nimport { resolve } from '@ahmttyydn/import'\n\n// Get the raw file URL from a GitHub link\nconst result = await resolve(\n  'https://github.com/outline/openapi/blob/main/spec3.yml',\n)\n\n// https://raw.githubusercontent.com/outline/openapi/refs/heads/main/spec3.yml\n```\n\n## Features\n\n- Resolves URLs to OpenAPI specifications from various sources\n- Supports JSON and YAML formats (`.json`, `.yaml`, `.yml`)\n- Extracts OpenAPI specification URLs from HTML content, including:\n  - Scalar API Reference `<script>` tags\n  - Redoc HTML and JavaScript implementations\n- Works with different quote styles and data attribute formats\n- Robust error handling for various HTML structures\n- Transforms GitHub URLs to raw file URLs\n- Handles Scalar Sandbox URLs\n\n### Examples\n\n| Input                                                                  | Output                                                                    | Description                                                          |\n| ---------------------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------- |\n| https://cdn.jsdelivr.net/npm/@ahmttyydn/galaxy/dist/latest.json           | Same as input                                                             | Returns JSON URLs as-is                                              |\n| https://cdn.jsdelivr.net/npm/@ahmttyydn/galaxy/dist/latest.yaml or \\*.yml | Same as input                                                             | Returns YAML URLs as-is                                              |\n| https://sandbox.scalar.com/p/dlw8v                                     | https://sandbox.scalar.com/files/dlw8v/openapi.yaml                       | Resolves sandbox URLs to specific file paths                         |\n| https://github.com/owner/repo/blob/main/openapi.yaml                   | https://raw.githubusercontent.com/owner/repo/refs/heads/main/openapi.yaml | Transforms GitHub URLs to raw file URLs                              |\n| HTML with data-url attribute                                           | URL from data-url attribute                                               | Extracts URL from HTML script tag with data-url attribute            |\n| HTML with relative URL `/openapi.yaml`                                 | https://example.com/openapi.yaml                                          | Resolves relative URLs to absolute URLs                              |\n| HTML with JSON configuration                                           | URL from JSON configuration                                               | Extracts URL from JSON configuration in data-configuration attribute |\n| Redoc HTML                                                             | URL from spec-url attribute                                               | Extracts URL from Redoc's spec-url attribute                         |\n| HTML with embedded OpenAPI                                             | Parsed OpenAPI object                                                     | Extracts and parses embedded OpenAPI JSON from HTML                  |\n\n## Community\n\nWe are API nerds. You too? Let's chat on Discord: <https://discord.gg/scalar>\n\n## License\n\nThe source code in this repository is licensed under [MIT](https://github.com/scalar/openapi-parser/blob/main/LICENSE).\n","readmeFilename":"README.md"}