Note: This module is still work in progress.
This module is made to build desktop applications using Deno and HTML.
It uses locally-installed Google Chrome to provide UI.
It’s based on excellent works of lorca and carlo.
import { launch } from "https://deno.land/x/carol@v0.0.8/mod.ts";
import { dirname, join } from "https://deno.land/std@0.54.0/path/mod.ts";
const app = await launch({
title: "Hello Deno!",
width: 480,
height: 320
});
app.onExit().then(() => Deno.exit(0));
await app.exposeFunction("greet", (name: string) => `Hello, ${name}!`);
const folder = join(dirname(new URL(import.meta.url).pathname), "public");
app.serveFolder(folder); // Serve contents from "./public" folder
await app.load("index.html");
Author: uki00a
Source Code: https://github.com/uki00a/carol
#deno #nodejs #node #javascript