Wondering what’s next for npm?Check out our public roadmap! »

    id3v1-parser

    0.3.2 • Public • Published

    ID3 Version 1 Audio Metadata parser

    A simple streaming parser for retrieving ID3 metadata from an mp3 file.

    Install

    npm install id3v1-parser
    

    Use

    The parser is simply a stream in objectMode, so you can pipe and binary data into it and it will spit out tag objects.

    var ID3 = require('id3v1-parser')
      , stream = require('fs').createReadStream('./my-audio.mp3')
    
    var parser = stream.pipe(new ID3());
    
    parser.on('data', function(tag){
        console.log(tag.type)  // => 'artist'
        console.log(tag.value) // => 'Bastille'
    })
    

    use in conjunction with my ID3v2 parser and mpeg frame parser for more data.

    Install

    npm i id3v1-parser

    DownloadsWeekly Downloads

    1

    Version

    0.3.2

    License

    MIT

    Last publish

    Collaborators

    • avatar