Skip to content

Simple Javascript ID3v2 parser for mp3 files.

Notifications You must be signed in to change notification settings

thirdless/ID3.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

just call the function by passing the URL parameter for the mp3 file and wait for the promise to finish.

await id3(url);
// or
id3(url).then(callback);

some examples include:

let data = await id3(blob);
data["TIT2"] // song title
data["TPE1"] // artist
data["TYER"] // year
// and if available...
data.image // image data stored as Uint8Array
data.image_mime // mime type of the image

the available tag names and values are fully presented here: https://exiftool.org/TagNames/ID3.html

About

Simple Javascript ID3v2 parser for mp3 files.

Resources

Stars

Watchers

Forks