youtube_parser 0.9.2

Dart YouTube Parser

Usage

import "package:youtube_parser/youtube_parser.dart";

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

0.9.2

  • Fix regex
  • Add tests
  • Bump up allowed SDK version

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  youtube_parser: "^0.9.2"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:youtube_parser/youtube_parser.dart';

Platforms

About

Gets the ID of YouTube links

Author

Email github@blau.bz rblau

Homepage

github.com/r-blau/youtube-parser

Documentation

www.dartdocs.org/documentation/youtube_parser/0.9.2/

Uploader

ohnruh@gmail.com

Published

Oct 15, 2017

Share