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
- Host: GitHub
- URL: https://github.com/kevva/parse-resolution
- Owner: kevva
- License: mit
- Created: 2017-06-01T00:54:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T00:55:36.000Z (about 9 years ago)
- Last Synced: 2025-08-09T12:58:53.032Z (11 months ago)
- Topics: nodejs, parse, resolution
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# parse-resolution [](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)