typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange formatting of console output

aparajita opened this issue · comments

Here's the output in Terminal:

Screen Shot 2019-07-27 at 5 44 16 PM

Here's the analogous output in the hotel's browser view:

Screen Shot 2019-07-27 at 5 43 59 PM

Two issues with the hotel output:

  1. "[message-server]" is truncated to "essage-server]".
  2. There are two spaces before "info", there should only be one.

The colors are a little off too.

Terminal:

Hotel:

The triangle is not colored, and the link is not blue.

For reference, that line is colored with chalk:

console.log(`${Chalk.green('▲')} Listening on ${Chalk.blue(`http://${ip}:${port}`)}`);