# screenres

> Cross platform screen resolution module and CLI too

Latest version **2.0.1** (published 2018-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install screenres
pnpm add screenres
yarn add screenres
bun add screenres
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-02-19 |
| First published | 2015-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 17 |
| Author | David Mark Clements |
| Maintainers | davidmarkclements, ionicabizau |
| Keywords | screen, resolution, screen resolution, macOS, OS X, Windows, Linux |

## Links

- npm: https://www.npmjs.com/package/screenres
- Repository: https://github.com/davidmarkclements/screenres
- Issues: https://github.com/davidmarkclements/screenres/issues
- npm.io page: https://npm.io/package/screenres

## Dependencies (3)

- [nan](https://npm.io/package/nan.md) ^2.0.9
- [bindings](https://npm.io/package/bindings.md) ^1.2.1
- [minimist](https://npm.io/package/minimist.md) ^1.1.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2018-02-19
- 2.0.3-rc1 (next) — 2015-10-11
- 2.0.0 — 2018-02-19
- 2.0.1-rc1 — 2015-10-11
- 2.0.0-rc1 — 2015-10-11
- 1.0.2 — 2015-06-04
- 1.0.1 — 2015-06-04
- 1.0.0 — 2015-06-04

## README

# screenres

Cross platform screen resolution module and CLI tool

## Usage

### Programmatic

```sh
$ npm install screenres --save
```

#### get

```js
var sr = require('screenres');
console.log(sr.get()); // [1440, 900]
```

#### set

```js
var sr = require('screenres');
sr.set(800, 600));
```

### CLI

```sh
$ npm install -g screenres
```

#### help

```sh
$ screenres --help
```

#### get

```sh
$ screenres
1440x900
```

#### set

```sh
$ screenres 800 600
```

## Platforms

* Windows
* Linux 
* macOS

## License

MIT

## Acknowledgements

Sponsored by [nearForm](http://nearform.com)

---
_Source: https://npm.io/package/screenres · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
