Readme

Val Town API: Find a user by their handle

This demonstrates how to use the Val Town API to find a user.

1
2
3
4
5
6
7
8
import { fetch } from "https://esm.town/v/std/fetch";
export let valTownApiExampleUser = (async () => {
const handle = "tmcw";
const response = await fetch(`https://api.val.town/v1/alias/${handle}`);
const json = await response.json();
return json;
})();
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!
October 23, 2023