nikhilm / node-taglib

Simple taglib bindings to Javascript using node.js
http://nikhilm.github.com/node-taglib
MIT License
147 stars 25 forks source link

Allow callback based filetype resolver #27

Open nikhilm opened 12 years ago

nikhilm commented 12 years ago

So that something like the following can be done:

taglib.addResolvers(function(fn, cb) {
    // long I/O op
    fs.readFile(fn, function(err, data) {
        cb('mp3');
    }
}