Set a high threshold of 0.5 seconds for the elapsed time; exceeding which the timestamp will be colored bright red

gnomon

  • Utility to annotate console logging statements with timestamps and find slow processes.
    More information: <https://github.com/paypal/gnomon>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

{{npm test}} | gnomon --high {{0.5}}

click the source code to copy install gnomon on any operating system with command-not-found.com