New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

m3ujs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m3ujs

Create m3u files

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

m3ujs

GitHub license Travis Coveralls branch David David npm Commitizen friendly

Create m3u files.

Features

  • Write relative or absolute m3u files
  • Support m3u and extm3u format
  • Add extm3u displayName based on id3 tag info

Usage

Installation

Install as npm package:

npm install m3ujs --save

Install latest development version:

npm install m3ujs@next --save

API

import { Playlist } from 'm3ujs/playlist';
import { Mp3Entry } from 'm3ujs/mp3-entry';
import { TypeEXTM3U } from 'm3ujs/type';

const playlist = new Playlist(new TypeEXTM3U(entry => {
  if (entry instanceof Mp3Entry) {
    return `${entry.artist} - ${entry.album} - ${entry.track} - ${entry.title}`;
  }
  return entry.displayName;
}));
playlist.add(new Mp3Entry('/path/to/test.mp3'));
playlist.write('/pat/to/playlist.m3u');

Keywords

m3u

FAQs

Package last updated on 23 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts