title: Get OS display enumeration via nodejs
body: <p>I'm looking at AppJS as a possible candidate to build a cross-browser application. AppJS runs HTML5 content with a Chromium window with hooks to NodeJS.</p>
  
  <p>Is there a NodeJS module that can give me an enumeration of displays currently active? I need to support dual-monitor setups and knowing the bounds of each display is required.</p>
  
  <p>I've search the Node npm directory with no luck so far.</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>Based on sihorton's answer, I'm playing with a javascript approach. Browser security prohibits my first approach from working in normal Chrome, but I will try this on AppJS chromium when I get home. Code <a href="http://jsfiddle.net/EcDYK/" rel="nofollow">here</a> and <a href="http://jsbin.com/axiwad/3/edit" rel="nofollow">here</a>.</p>
  
  <p>The basic approach is running code like:</p>
  
  <pre><code>OpenWindow('http://jsbin.com/axiwad/3/','test',400,500);
  </code></pre>
  
  <p>and then the opened window runs:</p>
  
  <pre><code>  window.moveTo(screen.width+2, 0);
  
    setTimeout(function(){
      $(".s2w").html(screen.width+2);
      $(".s2h").html(screen.height);
    }, 500);
  </code></pre>
  
  <p>The issue of course, is that browser do not allow a <code>moveTo</code> outside the active screen boundary. It remains to be seen if AppJS chromium fork allows this.</p>