https://github.com/beverts312/sa-player
Simple Node Audio Player
https://github.com/beverts312/sa-player
Last synced: about 2 months ago
JSON representation
Simple Node Audio Player
- Host: GitHub
- URL: https://github.com/beverts312/sa-player
- Owner: beverts312
- Created: 2018-04-29T22:13:25.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-03-31T19:23:20.000Z (2 months ago)
- Last Synced: 2025-03-31T20:28:42.452Z (2 months ago)
- Language: TypeScript
- Homepage: http://sa-player.com
- Size: 220 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Audio Player
Audio player for nodeCurrently 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);
});```