Skip to content

Commit 58698fa

Browse files
committed
Adds version number to server startup output
1 parent 29208b7 commit 58698fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/http-server

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ function listen(port) {
170170
ssl ? (colors.yellow(' through') + colors.cyan(' https')) : ''
171171
].join(''));
172172

173+
logger.info([colors.yellow('\nhttp-server version: '), colors.cyan(require('../package.json').version)].join(''));
174+
173175
logger.info([colors.yellow('\nhttp-server settings: '),
174176
([colors.yellow('CORS: '), argv.cors ? colors.cyan(argv.cors) : colors.red('disabled')].join('')),
175177
([colors.yellow('Cache: '), argv.c ? (argv.c === '-1' ? colors.red('disabled') : colors.cyan(argv.c + ' seconds')) : colors.cyan('3600 seconds')].join('')),

0 commit comments

Comments
 (0)