Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dylankjy/ichion
Cross-platform Node library for playing sound files
https://github.com/dylankjy/ichion
audio node npm player sound
Last synced: about 5 hours ago
JSON representation
Cross-platform Node library for playing sound files
- Host: GitHub
- URL: https://github.com/dylankjy/ichion
- Owner: Dylankjy
- License: mpl-2.0
- Created: 2022-12-03T18:55:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T10:39:42.000Z (over 1 year ago)
- Last Synced: 2024-04-29T17:22:54.997Z (7 months ago)
- Topics: audio, node, npm, player, sound
- Language: JavaScript
- Homepage:
- Size: 191 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ichion
[![npm](https://img.shields.io/npm/v/ichion)](https://www.npmjs.com/package/ichion)
[![ESLint](https://github.com/Dylankjy/ichion/actions/workflows/eslint.yml/badge.svg)](https://github.com/Dylankjy/ichion/actions/workflows/eslint.yml)Cross-platform Node library for playing sound files using [Puppeteer](https://pptr.dev).
## Install
```sh
npm i ichion
```## Usage
```js
const ichion = require('ichion')// Play audio file
ichion.play('file.mp3') // or
ichion.play('file.mp3').then(() => { ... }) // or
await ichion.play('file.mp3')
```