node-pulseaudio

0.0.6 • Public • Published

node-pulseaudio

A node.js library to control the systems output volume

Usage

The library currently has support for simple async functions and returns promise object. The volume is specified as an integer between 0 and 100

var PulseAudio = require('node-pulseaudio');

var promise = PulseAudio.get()
promise
  .then(volume => {
    console.log(volume) //Ex.: 42
  })
  .catch(err => {
    console.log(err)
  })

var promise = PulseAudio.set(25)
promise
  .then(response => {
    console.log(response)
  })
  .catch(err => {
    console.log(err)
  })

OS suport

Current only Linux is supported, please send a pull request if you are using another setup.

Authors

  • Felipe J. L. Rita (zerodois) - Zerodois

License

This project is licensed under the MIT License - see the LICENSE file for details

Readme

Keywords

none

Package Sidebar

Install

npm i node-pulseaudio

Weekly Downloads

3

Version

0.0.6

License

MIT

Last publish

Collaborators

  • zerodois