screenres

Cross platform screen resolution module and CLI too

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
screenres
1852.0.15 years ago7 years agoMinified + gzip package size for screenres in KB

Readme

screenres
Cross platform screen resolution module and CLI tool

Usage

Programmatic

$ npm install screenres --save

get

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

set

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

CLI

$ npm install -g screenres

help

$ screenres --help

get

$ screenres
1440x900

set

$ screenres 800 600

Platforms

  • Windows
  • Linux
  • macOS

License

MIT

Acknowledgements

Sponsored by nearForm