New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loudness-http

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loudness-http

A node.js library to control the systems output volume

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

var loudness = require('loudness');

loudness.setVolume(45, function (err) {
    // Done
});

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

loudness.setMuted(false, function (err) {
    // Done
});

loudness.getMuted(function (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.

Usage by http requets

Execute app by:

node app.js

Make petitions to configure your volume level like:

http://localhost:8080/set/10 

This sets to 10% the volume level.

To toggle mute state, you make a petition like:

http://localhost:8080/toggle

FAQs

Package last updated on 09 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts