1.0.1 • Published 9 years ago

linux-vol v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

osx-vol Build Status

Get and set volume in OS X systems.

Install

$ npm install --save osx-vol

Usage

var osxVol = require('osx-vol');

osxVol.get(function (err, level) {
	console.log(level);
	//=> 0.45
});

osxVol.set(0.65, function (err) {
	console.log('Changed volume to 65%');
});

API

.get(callback)

Get volume level.

callback(err, level)

Type: function

level

Type: number

Current volume level.

.set(level, callback)

Set volume level.

level

Required Type: number

A number between 0 and `1.

callback(err)

Type: function

CLI

See the vol CLI.

License

MIT © Andreas Gillström

1.0.1

9 years ago

1.0.0

9 years ago