An open API service indexing awesome lists of open source software.

https://github.com/kevva/parse-resolution

Parse resolution into an object
https://github.com/kevva/parse-resolution

nodejs parse resolution

Last synced: 2 months ago
JSON representation

Parse resolution into an object

Awesome Lists containing this project

README

          

# parse-resolution [![Build Status](https://travis-ci.org/kevva/parse-resolution.svg?branch=master)](https://travis-ci.org/kevva/parse-resolution)

> Parse resolution into an object

## Install

```
$ npm install --save parse-resolution
```

## Usage

```js
const parseResolution = require('parse-resolution');

parseResolution('1280x1024');
//=> {width: 1280, height: 1024}
```

## API

### parseResolution(input)

#### input

Type: `string`

Resolution to parse.

## License

MIT © [Kevin Martensson](http://github.com/kevva)