{"id":23614072,"url":"https://github.com/bcomnes/is-youtube-url","last_synced_at":"2025-10-14T18:42:40.348Z","repository":{"id":264539369,"uuid":"893627879","full_name":"bcomnes/is-youtube-url","owner":"bcomnes","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-08T22:14:16.000Z","size":49,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T20:55:29.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcomnes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["bcomnes"],"custom":["https://bret.io"]}},"created_at":"2024-11-24T22:58:39.000Z","updated_at":"2025-09-04T22:14:09.000Z","dependencies_parsed_at":"2025-05-02T23:26:02.479Z","dependency_job_id":"1e958269-cb85-4df3-aa86-338cca84a5a7","html_url":"https://github.com/bcomnes/is-youtube-url","commit_stats":null,"previous_names":["bcomnes/is-youtube-url"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bcomnes/is-youtube-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fis-youtube-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fis-youtube-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fis-youtube-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fis-youtube-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcomnes","download_url":"https://codeload.github.com/bcomnes/is-youtube-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fis-youtube-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020357,"owners_count":26086867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T17:53:17.203Z","updated_at":"2025-10-14T18:42:40.343Z","avatar_url":"https://github.com/bcomnes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/bcomnes","https://bret.io"],"categories":[],"sub_categories":[],"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[![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\u0026labelColor=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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fis-youtube-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcomnes%2Fis-youtube-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fis-youtube-url/lists"}