1.0.1 • Published 6 years ago

sa-player v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Simple Audio Player

Audio player for node

Currently only supports mpg123.

Usage

Install npm install --save sa-player

Play stuff

import { Player } from 'sa-player';

const player = new Player();
player.play('/path/to/file.mp3').then(() => {
    console.log('I played the file');
}).catch((err) => {
    console.error('An error occurred trying to play your file');
    console.error(err);
});