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.
Hi Nikhilm,
I added write support to your library (um, actually I rewrote most of the code and wrapped a
TagLib::Tag
in anode::ObjectWrap
). I tried to stay compatible with your API.You get a Tag Object from
getFileTags
which maps all attributes directly to the underlyingTagLib::Tag
. I added atag.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