javascript - How to get screen resolution with node.js -


i need screen resolution node.js, following code don't work.

var w = screen.width; var h = screen.height; 

this don't work.

var w = window.screen.width; var h = window.screen.height; 

someone know how screen resolution node.js ? thank you.

there screenres module via npm:

https://www.npmjs.com/package/screenres

currently os x only, author has instructions adding cross-platform support should inclined.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -