1
0
mirror of synced 2026-05-22 22:53:20 +00:00
Files

15 lines
490 B
JavaScript
Raw Permalink Normal View History

2025-07-16 11:11:48 +02:00
import { parseFile } from 'music-metadata';
2024-08-08 10:19:14 +02:00
import { inspect } from 'node:util';
(async () => {
try {
2025-07-16 11:11:48 +02:00
const filePath = '../../test/samples/MusicBrainz - Beth Hart - Sinner\'s Prayer [id3v2.3].V2.mp3';
const metadata = await parseFile(filePath);
// Output the parsed metadata to the console in a readable format
console.log(inspect(metadata, { showHidden: false, depth: null }));
} catch (error) {
2025-07-16 11:11:48 +02:00
console.error('Error parsing metadata:', error.message);
}
})();