🎠
Merry Go Round
Introduction
This is a node.js native module to handle information of media files. as you already know, most of the media files out there have their own tag system such as ID3, APE and so on. this module is developed for this purpose!
Installation
npm install @async3619/merry-go-round
# or
yarn add @async3619/merry-go-round
# or
pnpm add @async3619/merry-go-round
Usage
const { Audio } = require('merry-go-round');
const audio = Audio.fromFile('path/to/file.mp3');
// or you can use Audio.fromBuffer(buffer) to read from buffer
console.log(audio.title); // => 'title'
console.log(audio.artist); // => 'artist'
console.log(audio.album); // => 'album'
console.log(audio.year); // => 'year'
console.log(audio.genre); // => 'genre'
// ...