Skip to content
πŸ”Š A node.js library to control the systems output volume
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
impl
test πŸ’₯ Switch to Promise based interface Oct 29, 2018
.gitignore Added windows support using https://gist.github.com/rdp/8363580 Feb 13, 2017
LICENSE Initial commit Sep 13, 2013
README.md πŸ’₯ Drop support for Node.js <6 Oct 29, 2018
index.d.ts πŸŽ‰ Add TypeScript typings Oct 29, 2018
index.js πŸ’₯ Switch to Promise based interface Oct 29, 2018
package-lock.json
package.json 🚒 0.3.0 Oct 29, 2018

README.md

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.).

const loudness = require('loudness')

loudness.setVolume(45, (err) => {
    // Done
})

loudness.getVolume((err, vol) => {
    // vol = 45
})

loudness.setMuted(false, (err) => {
    // Done
})

loudness.getMuted((err, mute) => {
    // mute = false
})

OS Support

Currently Mac OS X and Linux (ALSA) is supported, please send a pull requests if you are using another setup.

You can’t perform that action at this time.