@tanem/mtt
TypeScript icon, indicating that this package has built-in type declarations

1.0.54 • Public • Published

mtt

npm version build status coverage status npm downloads minzipped size

.(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

Package Sidebar

Install

npm i @tanem/mtt

Weekly Downloads

14

Version

1.0.54

License

MIT

Unpacked Size

4.49 kB

Total Files

3

Last publish

Collaborators

  • tanem