Search
Code26
export const thedyslexicdeveloperTikTok = (async () => { const cheerio = await import("npm:cheerio"); const html = await fetchText( `https://www.tiktok.com/@thedyslexicdeveloper`,
} async function loadTradestationData() { const cheerio = await import("npm:cheerio"); const response = await fetch( "https://www.tradestation.com/pricing/futures-margin-requirements/"
export let nameTopHNThread = (async () => { // Cheerio parses markup and provides an API to interact with the resulting data structure const cheerio = await import("npm:cheerio"); // You can import NPM packages const reply = await fetch("https://news.ycombinator.com/"); const replyText = await reply.text();
export let nameTopHNThreadCron = (async () => { // Cheerio parses markup and provides an API to interact with the resulting data structure const cheerio = await import("npm:cheerio"); // You can import NPM packages const reply = await fetch("https://news.ycombinator.com/"); const replyText = await reply.text();
export const webscrapeWikipediaIntro = (async () => { const cheerio = await import("npm:cheerio"); const html = await fetchText( "https://en.wikipedia.org/wiki/OpenAI",
export const nbbaierImports = async () => { const cheerio = await import("npm:cheerio"); const _ = await import("npm:lodash-es"); return { cheerio, _ };
export const tacUrlToBibtex = async (url: string) => { const cheerio = await import("npm:cheerio"); const html = await fetchText(url); const $ = cheerio.load(html);
export let nameTopHNThreadUsingSomeonesVal = (async () => { // Cheerio parses markup and provides an API to interact with the resulting data structure const cheerio = await import("npm:cheerio"); // You can import NPM packages const replyText = await fetchText( "https://news.ycombinator.com/",
export let untitled_magentaBaboon = async () => { // const cheerio = await import("npm:cheerio"); // const request = await fetch("https://woolworths.com.au"); // const $ = cheerio.load(request.body);
"saturday", ]; const cheerio = await import("npm:cheerio"); const response = await fetch( "https://www.swanleisure.ie/timetables?type=pool",
Vals
No vals found
Users
No users found
every 15 minutes. Polling exampleRun in Val Town ↗ import { email } from "https://esm.town/v/std/email?v=9"; import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems"; import { rssFeeds } from "https://esm.town/v/stevekrouse/rssFeeds"; export async function
of permission issues, you can often import the package from esm.sh instead of NPM to quickly resolve the issue. For example: import garminConnect from "npm:garmin-connect"; import garminConnect from "https://esm.sh/garmin-connect"; esm.sh
you’ll see TypeScript, but if you import that code via JavaScript in the browser, your browser will get the code as JavaScript. <script type="module"> import rand from "https://esm.town/v/tmcw/randomVal"; console.log(rand); </script>
In our first migration, we create a users table: Migration 1Run in Val Town ↗ import { sqlite } from "https://esm.town/v/std/sqlite"; await sqlite.execute(` create table users ( id integer primary
logs. Tip. You’ll notice that we’re importing code from another val into this file. This is a common pattern in Val Town. Learn more about importing here. Step 4: Send
an email handler val. Basic usage. Section titled “Basic usage” ExampleRun in Val Town ↗ import { email } from "https://esm.town/v/std/email"; await email({ subject: "Hello from Val Town", text: "This
which allows to use the feTS client to make routes type safe: import { type router } from "https://esm.town/v/user/fetsServer"; import { createClient } from "npm:fets"; const client = createClient<typeof router>({
powered by our openapiproxy. Basic Usage. Section titled “Basic Usage” ExampleRun in Val Town ↗ import { OpenAI } from "https://esm.town/v/std/openai"; const openai = new OpenAI(); const completion = await
and paste the following val to insert some data. Data insertionRun in Val Town ↗ import { createClient } from "https://esm.sh/@supabase/supabase-js@2"; const supabase = createClient( Deno.env.get("supabaseURL"), Deno.env.get("supabaseKey"). ); const {
val to create a table with the given schema. Table creationRun in Val Town ↗ import { queryPlanetScale } from "https://esm.town/v/vtdocs/queryPlanetScale"; await queryPlanetScale( { host: Deno.env.get("planetScaleHost"), username: Deno.env.get("planetScaleUsername"), password: Deno.env.get("planetScalePassword"),