# screen-orientation

> Get the current screen orientation

Latest version **1.0.3** (published 2015-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install screen-orientation
pnpm add screen-orientation
yarn add screen-orientation
bun add screen-orientation
```

## 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 | 1.0.3 |
| Published | 2015-08-25 |
| First published | 2015-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | screen, orientation |

## Links

- npm: https://www.npmjs.com/package/screen-orientation
- Repository: https://github.com/bendrucker/screen-orientation
- Homepage: https://github.com/bendrucker/screen-orientation#readme
- Issues: https://github.com/bendrucker/screen-orientation/issues
- npm.io page: https://npm.io/package/screen-orientation

## Dependencies (2)

- [global](https://npm.io/package/global.md) ~4.3.0
- [view-size](https://npm.io/package/view-size.md) ~1.0.1

## Recent versions

- 1.0.3 (latest) — 2015-08-25
- 1.0.2 — 2015-08-24
- 1.0.1 — 2015-08-24
- 1.0.0 — 2015-08-24

## README

# screen-orientation [![Build Status](https://travis-ci.org/bendrucker/screen-orientation.svg?branch=master)](https://travis-ci.org/bendrucker/screen-orientation)

> Get the current screen orientation


## Install

```
$ npm install --save screen-orientation
```


## Usage

```js
var screenOrientation = require('screen-orientation')

screenOrientation()
//=> {direction: 'landscape', version: 'primary'}
```

## API

#### `screenOrientation()` -> `object`

Returns the current screen orientation (direction and version).

## License

MIT © [Ben Drucker](http://bendrucker.me)

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