nilslice-importtext2pnghandler.web.val.run
December 16, 2023
1
2
3
4
5
6
7
8
9
10
import handler from "https://esm.town/v/nilslice/text2png";
export default async function(req: Request): Promise<Response> {
const url = new URL(req.url);
url.searchParams.set("text", "hello from the other val");
url.searchParams.set("color", "green");
url.searchParams.set("font_size", "100");
let r = new Request(url);
return handler(r);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
December 16, 2023