sound-play
Dead simple sound player for Node -- because it should be simple.
const sound = sound
-
Support
.wav
,.mp3
and other extensions. -
Work on
Windows
andMacOS
Install
npm install sound-play
yarn add sound-play
Examples
Relative path
sound
or
const path = const filePath = pathsound
Absolute path
sound
Promise
sound
Async/await
try await sound console catch error console
License
MIT