diff --git a/README.md b/README.md index 28bad44f65f..beea2e4d83e 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ For more information see: [`getrandom` WebAssembly Support][getrandom-webassembl ### Example -![Example](docs/img/latestDemo.gif) +![Boa REPL](docs/img/latestDemo.gif) ### Command-line Options diff --git a/demo.tape b/demo.tape new file mode 100644 index 00000000000..49d470fd303 --- /dev/null +++ b/demo.tape @@ -0,0 +1,22 @@ +Output docs/img/latestDemo.gif + +Set FontSize 36 +Set Width 2026 +Set Height 1022 +Set TypingSpeed 80ms + +Type `./target/debug/boa` +Enter +Sleep 2s + +Type `const greeting = name => "Hello, " + name + "!"` +Enter +Sleep 1s + +Type `greeting("Boa")` +Enter +Sleep 1s + +Type `[1, 2, 3].map(n => n ** 2)` +Enter +Sleep 2s diff --git a/docs/img/latestDemo.gif b/docs/img/latestDemo.gif index 139958c639e..bffb4f5ea0d 100644 Binary files a/docs/img/latestDemo.gif and b/docs/img/latestDemo.gif differ