Node.js npm opn - can't get callback function to work
<p>I am trying to get a callback function to work using the <code>opn</code> package (here is the documentation: <a href="https://github.com/sindresorhus/opn" rel="nofollow">https://github.com/sindresorhus/opn</a>).</p>

<p>In short, I'd like to open a specific URL via a browser, wait for the user to close the browser, then run the callback function. When I run my code everything seems to work as expected, however, it doesn't seem to run the callback (I never see 'worked' in the console).</p>

<p>Here is some example code of what I'm trying to do:</p>

<p><code>var opn = require('opn')
opn('http://www.google.com', {app: 'firefox', wait: true}, function(err) {
    if(err) throw err
    console.log('worked')
})</code></p>

<p>It does seem to wait (as a note, I'm running this on windows, the module requires an app be explicitly specified in order for it to wait).</p>

<p>I'd like to run code via the callback, after the browser is closed.</p>

<p>I'm pretty new to node, so any insight is greatly appreciated!</p>