@tanem/mtt
v1.0.54
Published
.(m)3u8 (t)o (t)racklist
Downloads
50
Maintainers
Readme
mtt
.(m)3u8 (t)o (t)racklist.
Background
As a rekordbox user that DJs with USBs, I often want to upload tracklists to sites such as Mixcloud or Soundcloud. One way to do this is to export a USB playlist from rekordbox as a *.m3u8 file, then use this library to generate a tracklist.
Usage
CLI
Usage: mtt [options] <file>
.(m)3u8 (t)o (t)racklist
Arguments:
file .m3u8 file to convert to tracklist
Options:
-V, --version output the version number
-h, --help display help for command
API
const fs = require('fs/promises');
const path = require('path');
const { mtt } = require('@tanem/mtt');
(async () => {
try {
const result = await mtt(path.join(__dirname, 'test.m3u8'));
await fs.writeFile(path.join(__dirname, 'tracklist.txt'), result, 'utf-8');
} catch (error) {
console.error(error);
}
})();
The above example can be run using npm run example
.
Installation
CLI
$ npm i -g @tanem/mtt
API
$ npm i @tanem/mtt
License
MIT