Avatar

easrng

👩‍💻🏳️‍⚧️ she/her
Joined June 5, 2023
Public vals
47
easrng avatar
easrng
cohostSanitize
Script
// list pulled from dompurify
0
easrng avatar
easrng
patchedFeedExtractor
Script
esm.sh - esbuild bundle(@extractus/feed-extractor@7.1.3) es2022 development
0
easrng avatar
easrng
uploadImage
Script
uploadImage uploads an image to val.town just like when you paste an image into a readme
5
easrng avatar
easrng
kyselyVtDemo
Script
Kysely on val.town Uses @easrng/kyselyVtDialect as a Kysely Dialect and @easrng/kyselyVtTypes for type autogeneration.
1
easrng avatar
easrng
kyselyVtTypes
HTTP
Kysely type generator for @std/sqlite Usage Fork to your account. Update allowedTables to expose any tables you'd like to import the schema of. This will make their schemas public! Add import type { DB } from "https://yourusername-kyselyVtTypes.web.val.run/?tables=tables,you,need" to your program. See that QueryParams` type at the top? Add those to your URL to set more options. Demo See @easrng/kyselyVtDemo.
2
easrng avatar
easrng
kyselyVtDialect
Script
Kysely Dialect for @std/sqlite Caveats It doesn't support transactions, there's no real way to do them on top of @std/sqlite AFAICT. Usage import { VtDialect } from "https://esm.town/v/easrng/kyselyVtDialect"; import { Kysely } from "npm:kysely"; const db = new Kysely({ dialect: new VtDialect(), }); Demo See @easrng/kyselyVtDemo, which uses this along with @easrng/kyselyVtTypes to generate schema types.
1
easrng avatar
easrng
generateOnce
Script
An interactive, runnable TypeScript val by easrng
0
easrng avatar
easrng
sql
Script
An interactive, runnable TypeScript val by easrng
0
easrng avatar
easrng
encryption
Script
good for session cookies or whatevs
0
easrng avatar
easrng
resilientFetch
Script
resilientFetch : faster @std/fetch Try to fetch unproxied first, and fall back to proxied fetch if that fails.
2
easrng avatar
easrng
normalizeDomain
Script
Normalize a domain. Handles trailing . and IDN.
0
easrng avatar
easrng
upgradeExpress
Script
upgradeExpress Upgrade Express vals to the Web API without breaking existing consumers How it works upgradeExpress wraps a Web handler into a function that works as normal when called by the Web API, and redirects to the Web API when called by the Express API. Example I don't have an example for this per se but I used it to upgrade @easrng/button.
2
easrng avatar
easrng
signInWithValTownDemo
HTTP
@easrng/signInWithValTown Demo An example of how to add authentication backed by val.town accounts to a val.
1
easrng avatar
easrng
user
Script
Forked from neverstew/user
0
easrng avatar
easrng
alias
Script
Forked from neverstew/alias
0
easrng avatar
easrng
denoMediaTypes
Script
/// Definition files don't have separate content types and so we have to "guess"
0