# @tanem/mtt

> .(m)3u8 (t)o (t)racklist

Latest version **1.0.54** (published 2024-03-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @tanem/mtt
pnpm add @tanem/mtt
yarn add @tanem/mtt
bun add @tanem/mtt
```

Provides the command `mtt`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.54 |
| Published | 2024-03-27 |
| First published | 2022-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tane Morgan |
| Maintainers | tanem |
| Keywords | cli, dj, export, m3u8, playlist, rekordbox, tracklist, tracks, usb |

## Links

- npm: https://www.npmjs.com/package/@tanem/mtt
- Repository: https://github.com/tanem/mtt
- Homepage: github:tanem/mtt
- Issues: github:tanem/mtt/issues
- npm.io page: https://npm.io/package/@tanem/mtt

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^12.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.54 (latest) — 2024-03-27
- 1.0.53 — 2024-02-03
- 1.0.52 — 2023-12-15
- 1.0.51 — 2023-11-21
- 1.0.50 — 2023-11-12
- 1.0.49 — 2023-10-13
- 1.0.48 — 2023-10-07
- 1.0.47 — 2023-09-29
- 1.0.46 — 2023-09-26
- 1.0.45 — 2023-09-16
- 1.0.44 — 2023-09-09
- 1.0.43 — 2023-09-01
- 1.0.42 — 2023-08-18
- 1.0.41 — 2023-08-11
- 1.0.40 — 2023-08-05
- … 37 more at https://npm.io/package/@tanem/mtt/versions

## README

# mtt

[![npm version](https://img.shields.io/npm/v/@tanem/mtt.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/mtt)
[![build status](https://img.shields.io/github/workflow/status/tanem/mtt/CI?style=flat-square)](https://github.com/tanem/mtt/actions?query=workflow%3ACI)
[![coverage status](https://img.shields.io/codecov/c/github/tanem/mtt.svg?style=flat-square)](https://codecov.io/gh/tanem/mtt)
[![npm downloads](https://img.shields.io/npm/dm/@tanem/mtt.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/mtt)
[![minzipped size](https://img.shields.io/bundlephobia/minzip/@tanem/mtt?style=flat-square)](https://bundlephobia.com/result?p=@tanem/mtt)

> .(m)3u8 (t)o (t)racklist.

## Background

As a [rekordbox](https://rekordbox.com) user that DJs with USBs, I often want to upload tracklists to sites such as [Mixcloud](https://mixcloud.com) or [Soundcloud](https://soundcloud.com). 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

```js
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

---
_Source: https://npm.io/package/@tanem/mtt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
