Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linusu/node-loudness
🔊 A node.js library to control the systems output volume
https://github.com/linusu/node-loudness
hacktoberfest nodejs volume volume-control
Last synced: 13 days ago
JSON representation
🔊 A node.js library to control the systems output volume
- Host: GitHub
- URL: https://github.com/linusu/node-loudness
- Owner: LinusU
- License: mit
- Created: 2013-09-13T13:27:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T11:51:01.000Z (about 1 year ago)
- Last Synced: 2024-10-25T17:06:51.260Z (18 days ago)
- Topics: hacktoberfest, nodejs, volume, volume-control
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 125
- Watchers: 5
- Forks: 40
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-loudness
A node.js library to control the systems output volume
## Usage
The library currently has support for four simple async functions. The volume is specified as an integer between 0 and 100 (inc.).
```javascript
const loudness = require('loudness')await loudness.setVolume(45)
const vol = await loudness.getVolume()
// vol = 45await loudness.setMuted(false)
const mute = await loudness.getMuted()
// mute = false
```## OS Support
Currently macOS, Windows (>= Vista) and Linux (ALSA) is supported, please send a pull request if you are using another setup.