{"_id":"@bret/is-youtube-url","_rev":"4-120b6eb66b2e826814af1cefa0fd4d46","name":"@bret/is-youtube-url","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"@bret/is-youtube-url","version":"1.0.1","keywords":[],"author":{"url":"https://bret.io","name":"Bret Comnes","email":"bcomnes@gmail.com"},"license":"MIT","_id":"@bret/is-youtube-url@1.0.1","maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"homepage":"https://github.com/bcomnes/is-youtube-url","bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"c8":{"reporter":["lcov","text"]},"dist":{"shasum":"d227d20b22fe7674bcc97ac614c0efcbc0f38a30","tarball":"https://registry.npmjs.org/@bret/is-youtube-url/-/is-youtube-url-1.0.1.tgz","fileCount":15,"integrity":"sha512-+u+sHEI4ercVhHknCbScGVfqfr6ihqQ8MHXN/k4XN4Zc18xbW2xlI39C5Yo1GyiGFGuM1/9amvozdOPZhPUcvA==","signatures":[{"sig":"MEUCIFhUtYU+jUM0XUTn0eCHbmAggCBNEphXcbCzOI3UKeomAiEApIsUtYo1EPwxODt+eOmLhy4ZuT+tyYcmz/0czvZC74M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12859},"main":"index.js","type":"module","module":"index.js","engines":{"npm":">10","node":">20"},"exports":"./index.js","funding":{"url":"https://github.com/sponsors/bcomnes","type":"individual"},"gitHead":"13e451f3585d20cfc917fc4a628695c8ca1dd5fa","scripts":{"test":"run-s test:*","build":"npm run clean && run-p build:*","clean":"run-p clean:*","version":"run-s version:*","test:tsc":"eslint .","test:lint":"eslint","version:git":"git add CHANGELOG.md","prepublishOnly":"git push --follow-tags && gh-release -y","test:node-test":"c8 node --test --test-reporter spec","build:declaration":"tsc -p declaration.tsconfig.json","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')"},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"repository":{"url":"git+https://github.com/bcomnes/is-youtube-url.git","type":"git"},"_npmVersion":"10.8.2","description":"WIP - nothing to see here","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","gh-release":"^7.0.0","typescript":"~5.6.2","@types/node":"^22.1.0","neostandard":"^0.11.2","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","@voxpelli/tsconfig":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-youtube-url_1.0.1_1732489289559_0.7892248549215319","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bret/is-youtube-url","version":"1.0.2","keywords":[],"author":{"url":"https://bret.io","name":"Bret Comnes","email":"bcomnes@gmail.com"},"license":"MIT","_id":"@bret/is-youtube-url@1.0.2","maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"homepage":"https://github.com/bcomnes/is-youtube-url","bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"c8":{"reporter":["lcov","text"]},"dist":{"shasum":"73f1300f362c239345ed0bb0d11a2dbe17a2966b","tarball":"https://registry.npmjs.org/@bret/is-youtube-url/-/is-youtube-url-1.0.2.tgz","fileCount":19,"integrity":"sha512-trfaMusC1EoF3vUypPtQyRVIW1lR0p57ULtfgK8e/KTAlNKtX2UcgT++BvC+6ZNpDXFq0zWsjCMrdf5+MvAcrw==","signatures":[{"sig":"MEQCIAKcwEG0sANLlZULTBuUOj6nP7/O17SGVFnoplqPWHJWAiBXYn3Nm+SO+s6rYDyzSo0TBWXYFvlrDGjJjK5PoHeXlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13766},"main":"index.js","type":"module","types":"./index.d.ts","module":"index.js","engines":{"npm":">10","node":">20"},"exports":"./index.js","funding":{"url":"https://github.com/sponsors/bcomnes","type":"individual"},"gitHead":"01f23cb84997a0a82a3ab58aa3acdff65f5c75d7","scripts":{"test":"run-s test:*","build":"npm run clean && run-p build:*","clean":"run-p clean:*","version":"run-s version:*","test:tsc":"eslint .","test:lint":"eslint","postpublish":"npm run clean","version:git":"git add CHANGELOG.md","prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","test:node-test":"c8 node --test --test-reporter spec","build:declaration":"tsc -p declaration.tsconfig.json","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')"},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"repository":{"url":"git+https://github.com/bcomnes/is-youtube-url.git","type":"git"},"_npmVersion":"10.8.2","description":"WIP - nothing to see here","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","gh-release":"^7.0.0","typescript":"~5.6.2","@types/node":"^22.1.0","neostandard":"^0.11.2","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","@voxpelli/tsconfig":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-youtube-url_1.0.2_1732489994842_0.9423020444783552","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@bret/is-youtube-url","version":"1.0.3","keywords":[],"author":{"url":"https://bret.io","name":"Bret Comnes","email":"bcomnes@gmail.com"},"license":"MIT","_id":"@bret/is-youtube-url@1.0.3","maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"homepage":"https://github.com/bcomnes/is-youtube-url","bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"c8":{"reporter":["lcov","text"]},"dist":{"shasum":"7e8128acefe3a8f5b4fc9d3160d0902b46c02a4a","tarball":"https://registry.npmjs.org/@bret/is-youtube-url/-/is-youtube-url-1.0.3.tgz","fileCount":19,"integrity":"sha512-6DHrs9D/B5GYBvSPj/Xj5zTMLWt7F1xGCkidMq2pMnrr2ZnHAPmLEoxePMPW4G7ZGIOI6KKFDJifDoncoS+rUA==","signatures":[{"sig":"MEUCIESxzcMO17SGVTheBO1Tx/N513hPQjoRt32vImqyzQE7AiEA7l1QIMrDFHo20duxLC5VzLgUj0d5mvI6mhANgXj2pjo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13993},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","engines":{"npm":">10","node":">20"},"funding":{"url":"https://github.com/sponsors/bcomnes","type":"individual"},"gitHead":"bb11e2ba6946ed073394bd25b627928966063441","scripts":{"test":"run-s test:*","build":"npm run clean && run-p build:*","clean":"run-p clean:*","version":"run-s version:*","test:tsc":"eslint .","test:lint":"eslint","postpublish":"npm run clean","version:git":"git add CHANGELOG.md","prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","test:node-test":"c8 node --test --test-reporter spec","build:declaration":"tsc -p declaration.tsconfig.json","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')"},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"repository":{"url":"git+https://github.com/bcomnes/is-youtube-url.git","type":"git"},"_npmVersion":"10.8.2","description":"WIP - nothing to see here","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","gh-release":"^7.0.0","typescript":"~5.6.2","@types/node":"^22.1.0","neostandard":"^0.11.2","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","@voxpelli/tsconfig":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-youtube-url_1.0.3_1732490179598_0.36254695017840577","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@bret/is-youtube-url","version":"1.0.4","keywords":[],"author":{"url":"https://bret.io","name":"Bret Comnes","email":"bcomnes@gmail.com"},"license":"MIT","_id":"@bret/is-youtube-url@1.0.4","maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"homepage":"https://github.com/bcomnes/is-youtube-url","bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"c8":{"reporter":["lcov","text"]},"dist":{"shasum":"7c93da03723ab81a509653f822402b60fc03962b","tarball":"https://registry.npmjs.org/@bret/is-youtube-url/-/is-youtube-url-1.0.4.tgz","fileCount":19,"integrity":"sha512-UIEJC6RutTlr27Rm48myKMfxXh78A4spikB64faHUhQGKlf/kKtsC5jis0eqfrpO+8bKeyLAm+ZaGSVFQ7BpUg==","signatures":[{"sig":"MEQCICWnqdirEIBzDJ8wPrkxU/bp8OKHsUj8YmW6xVL+A9ymAiB9N86VkvdB3Pbe8D/1mNGYtWs/8alj/EY695MocBZlOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14219},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","engines":{"npm":">=10","node":">=20"},"funding":{"url":"https://github.com/sponsors/bcomnes","type":"individual"},"gitHead":"103ae62c6807417742b10b589277c6dcd3c54df6","scripts":{"test":"run-s test:*","build":"npm run clean && run-p build:*","clean":"run-p clean:*","version":"run-s version:*","test:tsc":"eslint .","test:lint":"eslint","postpublish":"npm run clean","version:git":"git add CHANGELOG.md","prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","test:node-test":"c8 node --test --test-reporter spec","build:declaration":"tsc -p declaration.tsconfig.json","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')"},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"repository":{"url":"git+https://github.com/bcomnes/is-youtube-url.git","type":"git"},"_npmVersion":"10.8.2","description":"WIP - nothing to see here","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","gh-release":"^7.0.0","typescript":"~5.6.2","@types/node":"^22.1.0","neostandard":"^0.11.2","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","@voxpelli/tsconfig":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-youtube-url_1.0.4_1732745136529_0.17190888981372887","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@bret/is-youtube-url","description":"WIP - nothing to see here","version":"1.0.5","author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"dependencies":{},"devDependencies":{"@voxpelli/tsconfig":"^15.1.0","@types/node":"^22.1.0","neostandard":"^0.11.2","npm-run-all2":"^7.0.1","auto-changelog":"^2.0.0","gh-release":"^7.0.0","c8":"^10.0.0","typescript":"~5.7.2"},"engines":{"node":">=20","npm":">=10"},"homepage":"https://github.com/bcomnes/is-youtube-url","keywords":[],"license":"MIT","type":"module","module":"index.js","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/bcomnes/is-youtube-url.git"},"scripts":{"prepublishOnly":"npm run build && git push --follow-tags && gh-release -y","postpublish":"npm run clean","test":"run-s test:*","test:lint":"eslint","test:tsc":"eslint .","test:node-test":"c8 node --test --test-reporter spec","version":"run-s version:*","version:changelog":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'","version:git":"git add CHANGELOG.md","build":"npm run clean && run-p build:*","build:declaration":"tsc -p declaration.tsconfig.json","clean":"run-p clean:*","clean:declarations-top":"rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')","clean:declarations-lib":"rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')"},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"@bret/is-youtube-url@1.0.5","gitHead":"f99fa848dda9224fd6a3502b170e8e8ae6c4c0f9","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dQlb6VUO2oYq53J5+UfsBzsFnUKCpTZbPQyvi6PObdvmwsJGJs4C8JUY265nosfRbqyxgy6L4sxXBCDttmtzmQ==","shasum":"69df69cead83d0e27eccdac7952605adcbdea104","tarball":"https://registry.npmjs.org/@bret/is-youtube-url/-/is-youtube-url-1.0.5.tgz","fileCount":19,"unpackedSize":14449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLaZMUizdY4HiCPEZVCmdKQLs0c848GA/G5hJOsgroWwIhAIDXegIjpkHaSt9uvKZrRDxLkwpiRlEniqCiQ/RB9//F"}]},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-youtube-url_1.0.5_1732745430885_0.6029438914088177"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-24T23:01:29.451Z","modified":"2024-11-27T22:10:31.235Z","1.0.1":"2024-11-24T23:01:29.736Z","1.0.2":"2024-11-24T23:13:15.029Z","1.0.3":"2024-11-24T23:16:19.781Z","1.0.4":"2024-11-27T22:05:36.701Z","1.0.5":"2024-11-27T22:10:31.080Z"},"bugs":{"url":"https://github.com/bcomnes/is-youtube-url/issues"},"author":{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"},"license":"MIT","homepage":"https://github.com/bcomnes/is-youtube-url","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bcomnes/is-youtube-url.git"},"description":"WIP - nothing to see here","maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"readme":"# @bret/is-youtube-url\n\n[![latest version](https://img.shields.io/npm/v/@bret/is-youtube-url.svg)](https://www.npmjs.com/package/@bret/is-youtube-url)\n[![Actions Status](https://github.com/bcomnes/is-youtube-url/workflows/tests/badge.svg)](https://github.com/bcomnes/is-youtube-url/actions)\n[![Coverage Status](https://coveralls.io/repos/github/bcomnes/is-youtube-url/badge.svg?branch=master)](https://coveralls.io/github/bcomnes/is-youtube-url?branch=master)\n[![downloads](https://img.shields.io/npm/dm/@bret/is-youtube-url.svg)](https://npmtrends.com/@bret/is-youtube-url)\n![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)\n[![Socket Badge](https://socket.dev/api/badge/npm/package/@bret/is-youtube-url)](https://socket.dev/npm/package/@bret/is-youtube-url)\n\nCheck if a given URL belongs to YouTube or Google Video domains.\n\n## Installation\n\n```bash\nnpm install @bret/is-youtube-url\n```\n\n## Usage\n\n```javascript\nimport isYouTubeUrl from '@bret/is-youtube-url';\n\nconst url = new URL('https://www.youtube.com/watch?v=dQw4w9WgXcQ');\nconsole.log(isYouTubeUrl(url)); // true\n\nconst invalidUrl = new URL('https://www.example.com');\nconsole.log(isYouTubeUrl(invalidUrl)); // false\n```\n\n## API\n\n### `isYouTubeUrl(parsedUrl)`\n\n#### Parameters:\n- `parsedUrl` (URL): A valid `URL` object that has already been validated.\n\n#### Returns:\n- `boolean`: `true` if the URL belongs to YouTube or Google Video domains, otherwise `false`.\n\n### Supported Domains:\n- `www.youtube.com`\n- `youtube.com`\n- `m.youtube.com`\n- `youtu.be`\n- `youtube-nocookie.com`\n- `googlevideo.com`\n\n## License\n\nMIT\n","readmeFilename":"README.md"}