Skip to content

Simple taglib bindings to Javascript using node.js

License

Notifications You must be signed in to change notification settings

mixu/node-taglib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-taglib

node-taglib is a simple binding to TagLib in Javascript.

It requires node.js.

For now it exposes Tag and AudioProperties.

Usage

// 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) {});
});

Build

# 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

About

Simple taglib bindings to Javascript using node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 70.2%
  • JavaScript 29.5%
  • Shell 0.3%