Limo runs JavaScript in a browser environment with full Web API support, right from your terminal. Powered by moli.
See the guide for installation and usage.
Linux and macOS:
curl -fsSL https://github.com/Spxg/limo/releases/latest/download/limo-installer.sh | shWindows PowerShell:
irm https://github.com/Spxg/limo/releases/latest/download/limo-installer.ps1 | iex// dom.js
const button = document.createElement("button");
button.textContent = "Click me";
button.addEventListener("click", () => {
console.log("Hello from the DOM!");
});
document.body.append(button);
button.click();
console.log(document.querySelector("button").outerHTML);limo dom.jsHello from the DOM!
<button>Click me</button>