1.2.0 • Published 10 months ago

zjzl-loudness v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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('zjzl-loudness')

await loudness.setVolume(45)

const vol = await loudness.getVolume()
// vol = 45

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

1.2.0

10 months ago

1.1.0

10 months ago