ov

osx-vol

Get and set volume in OS X systems.

Showing:

Popularity

Downloads/wk

16

GitHub Stars

5

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

5

Size (min+gzip)

2.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

osx-vol

Get and set volume in OS X systems.

Install

$ npm install --save osx-vol

Usage

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

osxVol.get().then(level => {
    console.log(level);
    //=> 0.45
});

osxVol.set(0.65).then(() => {
    console.log('Changed volume level to 65%');
});

API

.get()

Returns a promise that resolves to current volume level.

.set(level)

Returns a promise that resolves nothing.

level

Required Type: number

A number between 0 and 1.

CLI

See the vol CLI.

License

MIT © Andreas Gillström

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100