Search packages, repositories and app categories

GitHub repositoryr-unruh/youtube_parser

youtube_parser

A minimalist Dart library that extracts IDs from all kinds of YouTube urls

youtube_parser project cover
Stars
2
Forks
1
Last push (UTC)
Mar 31, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Dart YouTube Parser

A tiny Dart library that extracts YouTube video IDs from all kinds of valid Youtube urls.

Usage

import 'package:youtube_parser/youtube_parser.dart';

String? a = getIdFromUrl('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
// returns 'dQw4w9WgXcQ'

String? b = getIdFromUrl('https://youtu.be/dQw4w9WgXcQ');
// returns 'dQw4w9WgXcQ'

String? c = getIdFromUrl('https://www.some-other-website.com/blog-post');
// returns null
Rudolf Unruh GitHub avatar
GitHub author

Rudolf Unruh ↗

I use vim btw

Switzerland
LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 1 items

  • testDevelopment^1.25.2

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗