<commit_before><h1 align="center">
	<br>
	<img width="360" src="https://rawgit.com/kevva/brightness/master/media/logo.svg" alt="brightness">
	<br>
	<br>
	<br>
</h1>

> Change the screen brightness

*See [brightness-cli](https://github.com/kevva/brightness-cli) for the command-line version.*


## Install

```
$ npm install --save brightness
```


## Usage

```js
const brightness = require('brightness');

brightness.get().then(level => {
	console.log(level);
	//=> 0.5
});

brightness.set(0.8).then(() => {
	console.log('Changed brightness to 80%');
});
```


## API

### .get()

Returns a promise for the current brightness level.

### .set(level)

Set brightness level.

#### level

*Required*  
Type: `number`

A number between `0` and `1`.


## License

MIT © [<NAME>](https://github.com/kevva)<commit_msg>Update documentation<commit_after><h1 align="center">
	<br>
	<img width="360" src="https://rawgit.com/kevva/brightness/master/media/logo.svg" alt="brightness">
	<br>
	<br>
	<br>
</h1>

> Change the screen brightness


## Install

```
$ npm install --save brightness
```


## Usage

```js
const brightness = require('brightness');

brightness.get().then(level => {
	console.log(level);
	//=> 0.5
});

brightness.set(0.8).then(() => {
	console.log('Changed brightness to 80%');
});
```


## API

### .get()

Returns a promise for the current brightness level.

### .set(level)

Set brightness level.

#### level

*Required*  
Type: `number`

A number between `0` and `1`.


## Related

* [brightness-cli](https://github.com/kevva/brightness-cli) - CLI for this module


## License

MIT © [<NAME>](https://github.com/kevva)
{'fraction_non_alphanumeric': 0.20465686274509803, 'fraction_numerical': 0.015931372549019607, 'mean_word_length': 4.071428571428571, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 27, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1236665', 'n_tokens_mistral': 649, 'n_tokens_neox': 587, 'n_words': 134}