Opens stuff, like webpages and files and executables, cross-platform
That is, in your desktop environment. This will make actual windows pop up, with stuff in them:
npm install opener -g opener http://google.comopener ./my-file.txtopener firefoxopener npm run lintAlso if you want to use it programmatically you can do that too:
var opener = ; ;;;;Plus, it returns the child process created, so you can do things like let your script exit while the window stays open:
var editor = ;editor;// These other unrefs may be necessary if your OS's opener process // exits before the process it started is complete. editorstdin;editorstdout;editorstderr;Like opening the user's browser with a test harness in your package's test script:
Because Windows has start, Macs have open, and *nix has xdg-open. At least
according to some guy on StackOverflow. And I like things that work on all
three. Like Node.js. And Opener.