Search
No results found
Code26
No files found
Vals
No vals found
Users
No users found
The val itself (link below) explains how to set it up. https://www.val.town/v/stevekrouse/newStripeSubscriber. import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook"; import Stripe from "npm:stripe"; const stripe = new Stripe( Deno.env.get("stripe_sk_customer_readonly") as string,
val.town with esm.town in the URL to get the source code for that val. Vals import code from other vals using their esm.town URL. For example, https://val.town/v/stevekrouse/demoSDK has its source
run code, it runs on a server. This has many benefits, like the ability to import many different modules, make requests to other servers, run code on a schedule, and
Copy and run the following val in your workspace. Upload exampleRun in Val Town ↗ import { S3Client } from "https://deno.land/x/s3_lite_client@0.6.1/mod.ts"; const s3client = new S3Client({ endPoint: `s3.${Deno.env.get("awsS3Region")}.amazonaws.com`, region: Deno.env.get("awsS3Region"),
to run code in the cloud, including: HTTP, Cron, and Email triggers. Environment variables ↗ Import from other NPM, JSR, and more ↗ Access controls ↗ Version control & collaboration:
in step 2. Use the following code to send an email using Gmail’s SMTP server: import nodemailer from "npm:nodemailer"; const transporter = nodemailer.createTransport({ service: "gmail", auth: { user: Deno.env.get("GMAIL_USER"), pass:
you’ll need to insert what TypeScript calls a “per-file pragma” - a comment that uses @jsxImportSource to specify where the JSX methods are going to come from. For example, if
to Slack! Send messageRun in Val Town ↗ import { IncomingWebhook } from "npm:@slack/webhook"; const slack = new IncomingWebhook(Deno.env.get("SLACK_WEBHOOK_URL")); const EDIT = `<${import.meta.url.replace("esm", "val")}|(edit val)>`; await slack.send(`🥳 Hi from Val
then use deno-postgres to connect to the database like so: ExampleRun in Val Town ↗ import { Client } from "https://deno.land/x/postgres/mod.ts"; const client = new Client(Deno.env.get("neon_url")); await client.connect(); const result
Add. You can then use Airtable from val.town like so: ExampleRun in Val Town ↗ import { Airtable } from "https://deno.land/x/airtable@v1.1.1/mod.ts"; const airtable = new Airtable({ apiKey: Deno.env.get("airtable_pat"), baseId: "appXSrKDlwbAijRmD",