Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanem/mtt
🎵 .(m)3u8 (t)o (t)racklist
https://github.com/tanem/mtt
cli dj export m3u8 playlist rekordbox tracklist tracks usb
Last synced: 8 days ago
JSON representation
🎵 .(m)3u8 (t)o (t)racklist
- Host: GitHub
- URL: https://github.com/tanem/mtt
- Owner: tanem
- License: mit
- Created: 2022-07-21T18:42:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T17:39:47.000Z (7 months ago)
- Last Synced: 2024-04-14T14:59:29.459Z (7 months ago)
- Topics: cli, dj, export, m3u8, playlist, rekordbox, tracklist, tracks, usb
- Language: JavaScript
- Homepage:
- Size: 901 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
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].(m)3u8 (t)o (t)racklist
Arguments:
file .m3u8 file to convert to tracklistOptions:
-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