youtube_parser 0.9.0 copy "youtube_parser: ^0.9.0" to clipboard
youtube_parser: ^0.9.0 copied to clipboard

outdatedDart 1 only

Gets the ID of YouTube links

Dart YouTube Parser #

Usage #

import "package:youtube_parser";

String foo = getIdFromUrl("https://www.youtube.com/watch?v=CBWlfU_na-2");
// returns "CBWlfU_na-2"

String bar = getIdFromUrl("https://www.notyoutube.com/watch?v=CBWlfU_na-2");
// returns null

License #

This project is licensed under the MIT License - see the LICENSE file for details