From ba2eeadf58de1d2774f05f01c61e7860f5ab3d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Wed, 21 Feb 2018 14:06:06 +0100 Subject: [PATCH] feat(server): display a url when server starts to make it clickable --- bin/www | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/www b/bin/www index aebb43d..13a3c3e 100755 --- a/bin/www +++ b/bin/www @@ -75,8 +75,6 @@ function onError (error) { */ function onListening () { const addr = server.address() - const bind = typeof addr === 'string' - ? 'pipe ' + addr - : 'port ' + addr.port - console.log('Listening on ' + bind) + const uri = typeof addr === 'string' ? addr : `http://localhost:${addr.port}` + console.log(`Listening on ${uri}`) }