meta-music
v0.1.0
Published
Music metadata editor
Downloads
3
Readme
Meta Music
What is meta-music?
This module tries to be the one place for music metadata parsing in NodeJS. It has a simple interface to read, write and remove metadata. It is still in development as I am trying to add more standards to this library. For now, it supports the following formats:
- [x] MP3 Files (
id3v1
andid3v1.1
) - [ ] MP3 Files (
id3v2
) - [ ] M4A Files
- [ ] Vorbis
Although it does not support all of these yet, I am trying to add support for these formats as fast as possible. If you like the project, spread the world! If you would like to help, find me here. More detailed documentation will be released in future versions.
How to use*
Read Metadata Sample
import { Music } from 'meta-music';
Music.read('../some/where/some/WIEE.mp3').then((data) => {
// Please visit repo for the list of supported standards
// Data will be in this format:
const data = {
id3v1: {
title: 'WIEE',
artist: 'Martin Garrix',
album: 'WIEE',
year: '2016',
comment: 'Great track!',
track: 1,
genre: 'Dance',
}
};
});
Write Metadata Sample
import { Music } from 'meta-music';
const data2update = { title: 'WIEE!', comment: 'Great!' };
Music.write('../some/where/some/WIEE.mp3', data2update).then((data) => {
// Please visit repo for the list of supported standards
// Data will be in this format:
const data = {
id3v1: {
title: 'WIEE!',
artist: 'Martin Garrix',
album: 'WIEE',
year: '2016',
comment: 'Great!',
track: 1,
genre: 'Dance',
}
};
});
License
Distributed under MIT - Jensen Bernard
* This is how it should look like when it is finished. This interface will already work with current supported formats.