Skip to main content
Deno 2 is finally here 🎉️
Learn more

Popup

GUI for javascript standard popup’s in deno.

Example

import { prompt } from "https://deno.land/x/popup/mod.ts";

prompt("Are you feeling lucky?", "sure");

result will look like this:

screenshot

Overwrite Global Functions

import { alert, confirm, prompt } from "https://deno.land/x/popup/mod.ts";

window.alert = alert;
window.prompt = prompt;
window.confirm = confirm;

Prerequisites

Linux

  • package gtk4 should be installed.

Windows

  • Install MinGW and mingw-w64-x86_64-gtk4.
  • Add C:\msys64\mingw64\bin to path.