Avatar

nbbaier

Valin' up a storm
Joined January 12, 2023
Public vals
136
nbbaier avatar
htmxCounterExample
@nbbaier
HTTP
Forked from yawnxyz/htmxCounterExample
nbbaier avatar
static
@nbbaier
HTTP
Forked from pomdtr/static
nbbaier avatar
utilityTypes
@nbbaier
Script
* A utility type that makes a type more readable by expanding its properties. * * @template T - The type to be prettified.
nbbaier avatar
countArray
@nbbaier
Script
Example usage: import countArray from "https://esm.town/v/nbbaier/countArray"; const arr = ["a", "b", "c", "d", "d", "a", "a"]; const counted = countArray(arr, "item"); // counted = // [ // { item: "a", count: 3 }, // { item: "b", count: 1 }, // { item: "c", count: 1 }, // { item: "d", count: 2 } // ]
nbbaier avatar
flakyMoccasinDragonfly
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
jsonVisualizerApp
@nbbaier
HTTP
@jsxImportSource https://esm.sh/react
nbbaier avatar
neverthrow
@nbbaier
Script
Forked from pomdtr/neverthrow
nbbaier avatar
removeTrackingParams2
@nbbaier
Script
Forked from nbbaier/removeTrackingParams
nbbaier avatar
URLSearchParamsPuzzle
@nbbaier
Script
// Create a test URLSearchParams object
nbbaier avatar
maroonTiger
@nbbaier
Script
Forked from easrng/kyselyVtDemo
nbbaier avatar
removeTrackingParams
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
trackingParams
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
uptime
@nbbaier
Cron
Forked from stevekrouse/uptime
nbbaier avatar
cronLogger
@nbbaier
Script
Log your cron evaluations to sqlite import { cronEvalLogger as logger } from "https://esm.town/v/nbbaier/cronLogger"; const run = async (interval: Interval) => { console.log("your code goes here"); }; export default logger(run);
nbbaier avatar
checkValName
@nbbaier
Script
This val provides a utility function that tests whether a given string is a valid val unique name (like the ones automatically generated when creating a new val). It's based on info provided by @maxm in the discord.
nbbaier avatar
PGlite
@nbbaier
HTTP
Forked from samwillis/PGliteOld