Use
javascript
window.screen.availHeight and window.screen.availWidth (which excludes window decorations n toolbar)
or
window.screen.height and window.screen.width (which includes window decorations n toolbar) to get the screen resolution.In node-webkit package.json set
"window": { "show": false } this will hide the node-webkit window initially.
var appWidth = 400; // width of your application
Use window.moveTo(window.screen.availWidth - appWidth, 40);
Use window.show(); to show the window
this allows to place window anywhere on screen