Skip to content

ang3lkar/youtube-track-title-extractor

Repository files navigation

youtube-track-title-extractor

Build Status codecov npm

Youtube titles come in a rich variety of ways:

Artist - Track.mp4
Artist-Track
Artist -- Track
Artist - Track lyrics
Artist - Track (HQ)
Artist = Track (Official Video)
Artist - Track (Official Music Video)
1998 Artist - Track
(1998) Artist - Track
...

This small package attempts to polish the given title and return it in the following form:

Artist - Title

Installation

npm install youtube-track-title-extractor

Usage

import getTitle from "youtube-track-title-extractor"

const title = getTitle(document.title)

License

Copyright © 2018, Angelos Karagkiozidis. Released under the MIT License.

About

Get a curated string from the YouTube title

Resources

License

Stars

Watchers

Forks

Packages

No packages published