Skip to content

Instantly share code, notes, and snippets.

View leggsimon's full-sized avatar
🙃

Simon Legg leggsimon

🙃
View GitHub Profile
module Main exposing (..)
import Html exposing (Html, button, div, text, h1)
import Html.App as App
import Html.Events exposing (onClick)
main =
App.beginnerProgram { model = model, view = view, update = update }
@leggsimon
leggsimon / colour_node_debugging.md
Last active March 22, 2019 23:47
How to debug node more easily using colored console logging

Debugging Node with colours

See me talk about this at the London Node User Group

Found out today that while debugging a node application using console.log() in the terminal I can pass arguments that formats the styles in the console.

console.log('\x1b[31m', 'Hello, world', '\x1b[0m');  // red