3 That is, in your desktop environment. This will make *actual windows pop up*, with stuff in them:
8 opener http://google.com
14 Also if you want to use it programmatically you can do that too:
17 var opener = require("opener");
19 opener("http://google.com");
20 opener("./my-file.txt");
22 opener("npm run lint");
25 Plus, it returns the child process created, so you can do things like let your script exit while the window stays open:
28 var editor = opener("documentation.odt");
30 // These other unrefs may be necessary if your OS's opener process
31 // exits before the process it started is complete.
33 editor.stdout.unref();
34 editor.stderr.unref();
40 Like opening the user's browser with a test harness in your package's test script:
45 "test": "opener ./test/runner.html"
55 Because Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least
56 [according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all
57 three. Like Node.js. And Opener.