WebKonsole is a lightweight, extensible console, designed to fit perfectly into any project. It supports custom commands, custom scripts, and dynamic variable injection, all in a slick terminal UI, designed for scalablilty and ease-of-use.
Try it here: https://nicholasc2.github.io/WebKonsole/
const container = document.getElementById("terminal");
const konsole = new Konsole(container);echo - Prints text to the console.
clear - Clears the terminal screen.
wait - Waits for a given number of milliseconds.
help - Lists available commands.
ver - Displays version info.
nl - Prints a blank line.
vars - Lists all variables.
about - Displays Konsole info.
set - Sets a variable for use in commands.
run - Runs a ".js" script.
Variables wrapped in curly braces will be dynamically replaced, for example
echo {branch}
will be replaced with
echo stable
Variables are defined like this:
const container = document.getElementById("terminal");
const konsole = new Konsole(container, {
variables: {
"hello": "world"
}
});Colors formatted like
<c:COLOR>COLORED TEXT</c>
will be replaced with the COLORED TEXT colored with the color defined in COLOR using standard css color tags.
An example script can be found in scripts/
Created by NicholasC
ASCII Art from: https://patorjk.com/software/taag/
