Avatar

devdoshi

Joined January 12, 2023
Public vals
10
devdoshi avatar
devdoshi
untitled_redTurtle
HTTP
// The OpenAPI documentation will be available at /doc
0
devdoshi avatar
devdoshi
handleFetchTextResponse
Script
An interactive, runnable TypeScript val by devdoshi
0
devdoshi avatar
devdoshi
subscribeToPush
Script
An interactive, runnable TypeScript val by devdoshi
0
devdoshi avatar
devdoshi
validators
Script
Usage: async (rawInput) => { const validators = await @devdoshi.validators(); const inputSchema = validators.inputSchema(); const input = inputSchema.safeParse(rawInput); }
0
devdoshi avatar
devdoshi
authorizeIpIngress
Script
Usage: @devdoshi.authorizeIpIngress({ securityGroupId: "sg-123", ip: "1.2.3.4", port: 8080, aws: { region: "us-east-2", secretAccessKey: "hunter2", accessKeyId: "ABC123", }, });
0
devdoshi avatar
devdoshi
publicKey
Script
An interactive, runnable TypeScript val by devdoshi
0
devdoshi avatar
devdoshi
whatIsMyIp
Script
I wanted to see if val.town forwards my client IP Address using the x-forwarded-for header, which it does, but cloudflare provides the True-Client-IP header as well. When you run a val on the website, it is actually running from val's servers so it won't come from your client IP. You'll need to copy the express fetch and run that from your client.
0
devdoshi avatar
devdoshi
congress
Cron
An interactive, runnable TypeScript val by devdoshi
0
devdoshi avatar
devdoshi
increment
Script
An interactive, runnable TypeScript val by devdoshi
0
devdoshi avatar
devdoshi
count
Script
// set by @devdoshi.increment at 2023-01-13T16:06:44.474Z
0
Next