3.0.0 • Published 7 years ago

vol v3.0.0

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

vol

Get and set sound volume

Install

$ npm install vol

Usage

const vol = require('vol');

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

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

API

.get()

Returns Promise with the current volume level.

.set(level)

Set volume level.

level

Type: number

A number between 0 and 1.

Related

License

MIT © Andreas Gillström

3.0.0

7 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago