Created
January 11, 2016 22:54
-
-
Save mauriciomassaia/e3ec3d56828367f72c8a to your computer and use it in GitHub Desktop.
Open the default browser via node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spawn = require('child_process').spawn; | |
// open default browser | |
spawn('open', ['http://localhost:9000']); | |
console.log('running on http://localhost:9000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment