Search

Results include substring matches and semantically similar vals. Learn more
shink avatar
untitled_blackOstrich
@shink
An interactive, runnable TypeScript val by shink
Script
export const untitled_blackOstrich = (async () => {
const bima = new Date().toISOString() + " z " + Math.random();
const htmlExample = (req) =>
new Response("bima", {
headers: {
"Content-Type": "text/plain",
maxmetcalfe avatar
untitled6709436
@maxmetcalfe
An interactive, runnable TypeScript val by maxmetcalfe
Script
export let untitled6709436 = default async function() {
console.log("here")
maxmetcalfe avatar
untitled6597015
@maxmetcalfe
An interactive, runnable TypeScript val by maxmetcalfe
Script
export let untitled6597015 = default async function() {
console.log("here")
lxcong avatar
untitled_turquoiseHaddock
@lxcong
An interactive, runnable TypeScript val by lxcong
HTTP (deprecated)
export let untitled_turquoiseHaddock = async (request: Request): Promise<Response> => {
console.log(request.json());
return Response.json({ ok: true });
baj avatar
untitled_cS5pGEaV
@baj
An interactive, runnable TypeScript val by baj
Script
export const untitled_cS5pGEaV = (async () => {
let count = 0;
function myApi() {
return count++;
stevekrouse avatar
untitled_scarletHoverfly
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export let untitled_scarletHoverfly = fetchJSON(
"https://api.val.town/v1/eval",
method: "POST",
body: JSON.stringify({
code: "let evalVal1 = @me.example1",
headers: {
Authorization: `Bearer ${process.env.valtown}`,
zhangbao avatar
untitled_emeraldFalcon
@zhangbao
An interactive, runnable TypeScript val by zhangbao
HTTP (deprecated)
export default async function untitled_redMeerkat(req: Request): Promise<Response> {
return Response.json({ ok: true })
willthereader avatar
untitled_indigoMollusk
@willthereader
// console.log(typeof urls);
Script
export async function Sendingemail() {
// console.log("Sendingemail function called");
try {
let lastRunDate = new Date("2023-11-10T19:27:25.547Z");
lastRunDate = new Date();
const post_ids = await post_idFetcher();
// console.log("post_ids: ", post_ids);
const firstTwoPost_ids = post_ids.slice(2, 3);
const ReadTangleUrl = await Promise.all(firstTwoPost_ids.map(constructReadTangleUrl));
// console.log("ReadTangleUrl: ", ReadTangleUrl);
sciotrope avatar
untitled_hook
@sciotrope
An interactive, runnable TypeScript val by sciotrope
Script
export let untitled_hook = (req, res) => {
res.json(req);
zachnusbaum avatar
untitled_rt2wovqo
@zachnusbaum
An interactive, runnable TypeScript val by zachnusbaum
Script
export const untitled_rt2wovqo = (async () => {
function myApi(name) {
return "hi " + name;
console.email("hi");
console.email("hi");
sergeysova avatar
untitled_tealGrasshopper
@sergeysova
An interactive, runnable TypeScript val by sergeysova
Script
import { parentReference } from "https://esm.town/v/stevekrouse/parentReference?v=3";
export let untitled_tealGrasshopper = (() => {
console.log(parentReference());
wilt avatar
untitled_tealYak
@wilt
An interactive, runnable TypeScript val by wilt
Script
import { untitled_goldLungfish } from "https://esm.town/v/wilt/untitled_goldLungfish";
export let untitled_tealYak = (req, res) => {
res.status(200);
res.send(untitled_goldLungfish);
stevekrouse avatar
untitled_moccasinHeron
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
HTTP (deprecated)
export const str = "hello world";
export default function handler(request: Request) {
return Response.json({ ok: true });
jqxu avatar
untitled_L32FDwyN
@jqxu
An interactive, runnable TypeScript val by jqxu
Script
export const untitled_L32FDwyN = (async () => {