From 0a1e6623c8d9105f031d5c457a40a85740b2e6e9 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 18 Feb 2025 11:20:56 +0100 Subject: [PATCH] readme: allow examples copy/paste --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 395af948..7a91d8ea 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,9 @@ chmod a+x ./lightpanda ### Dump an URL ```console -$ ./lightpanda --dump https://lightpanda.io +./lightpanda --dump https://lightpanda.io +``` +```console info(browser): GET https://lightpanda.io/ http.Status.ok info(browser): fetch script https://api.website.lightpanda.io/js/script.js: http.Status.ok info(browser): eval remote https://api.website.lightpanda.io/js/script.js: TypeError: Cannot read properties of undefined (reading 'pushState') @@ -61,7 +63,9 @@ info(browser): eval remote https://api.website.lightpanda.io/js/script.js: TypeE ### Start a CDP server ```console -$ ./lightpanda --host 127.0.0.1 --port 9222 +./lightpanda --host 127.0.0.1 --port 9222 +``` +```console info(websocket): starting blocking worker to listen on 127.0.0.1:9222 info(server): accepting new conn... ```