1export async function prettifyTS(code: string) {
2 const prettier = await import(
3 "https://unpkg.com/prettier@3.0.1/standalone.mjs"
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5export function addEmails() {
6 const s = getEmails()
7 console.log(s instanceof Set)
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3export async function getAppleDevice(req: express.Request, res: express.Response) {
4 const deviceId = req.query.search_keywords as string;
5 const html = await fetchText(
1import { tasks as tasks2 } from "https://esm.town/v/ju2l0r/tasks";
2
3export async function getTasks(data) {
4 const { search, completed, offset } = data ?? {};
5 let filteredTasks = search
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
12*/
13
14export let fenToASCIIboard = async function (fenString) {
15 // https://en.wikipedia.org/wiki/Chess_symbols_in_Unicode
16 const charToPiece = {
1export function myApi(name) {
2 return "hi " + name;
3}
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",