WIP Node.js binding of TagLib, currently supporting Windows and Linux
CMake and appropriate build tools are required. (If you're on Windows, simply run npm install -g windows-build-tools
)
npm install taglib-node-binding
TypeScript example (bindings provided)
import { FileRef, Tag } from "taglib-node-binding";
const fileRef = new FileRef("MyMusic.mp3");
console.log(fileRef.tag.title); // Title property of the file
fileRef.tag.title = "My Music";
console.log(fileRef.tag.title); // "My Music"
fileRef.save(); // Change saved
- [ ] Implement
Promise
-based API - [ ] Implement tag-specific(album arts, etc...) features
Request features on the Issues section!
Creates a new FileRef
instance and opens a file from path
.
Returns the Tag
instance of the file.
Returns the Properties
instance of the file.
Returns the extension of the file.
Saves the file. Any changes made to the tag are saved through this function.
Returns the title
property of the Tag
.
Updates the title
property of the Tag
.
Returns the artist
property of the Tag
.
Updates the artist
property of the Tag
.
Returns the album
property of the Tag
.
Updates the album
property of the Tag
.
Returns the comment
property of the Tag
.
Updates the comment
property of the Tag
.
Returns the genre
property of the Tag
.
Updates the genre
property of the Tag
.
Returns the year
property of the Tag
.
Updates the year
property of the Tag
.
Returns the track
property of the Tag
.
Updates the track
property of the Tag
.
Returns the type of the Tag
.
Returns the length
property of the Properties
in seconds.
Returns the bitrate
property of the Properties
.
Returns the sampleRate
property of the Properties
.
Returns the channels
property of the Properties
.