screenres

Cross platform screen resolution module and CLI too


Keywords
screen, resolution, screen resolution, macOS, OS X, Windows, Linux
License
MIT
Install
npm install screenres@2.0.1

Documentation

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