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

Write Support #1

Closed lennart closed 13 years ago

lennart commented 13 years ago

Hi Nikhilm,

I added write support to your library (um, actually I rewrote most of the code and wrapped a TagLib::Tag in a node::ObjectWrap). I tried to stay compatible with your API.

You get a Tag Object from getFileTags which maps all attributes directly to the underlying TagLib::Tag. I added a tag.save() function to persist your changes, much like the original TagLib API.

Additionally I added a package.json so you might consider to publish the package through npm as it seems to be the only ID3/MP4/Ogg handling library for node.js up to now.

There are still some caveats, since I am not 100% sure whether the character encoding stuff works reliably. I added some specs to avoid problems when changing anything.

best regards,

Lennart