node-taglib is a simple binding to TagLib in Javascript.
It requires node.js.
For now it exposes Tag and AudioProperties.
// synchronous API
var taglib = require('taglib').Tag;
var t = taglib.tagSync(path);
t.title # => "Another one bites the dust"
t.artist # => "Kween"
t.artist = "Queen"
t.isEmpty() # => false
t.saveSync() # => true
// asynchronous API
taglib.tag(path, function(err, tag) {
// t is a Tag
t.artist # => "Queen"
t.save(function(err) {});
});
# make sure you have node and taglib installed
git clone git://github.com/nikhilm/node-taglib.git
cd node-taglib
node-waf configure build
node examples/simple.js /path/to/mp3_or_ogg_file
The examples
show usage.
Contributors are listed at: https://github.com/nikhilm/node-taglib/contributors