Avatar

freecrayon

Joined May 24, 2023
Public vals
6
freecrayon avatar
JSONBigInt
@freecrayon
Script
JSON.parse and JSON.stringify that preserves BigInt values. Works by encoding BigInt values into strings with a special prefix. See https://www.val.town/v/freecrayon/JSONBigInt_example for an example of how to use it.
freecrayon avatar
mapMap
@freecrayon
Script
It's like Array.prototype.map but for the Map, allowing you to transform keys and values.
freecrayon avatar
zodStringToJSON_example
@freecrayon
Script
// usually this will be passed to you by your Server (i.e. SvelteKit, Remix)
freecrayon avatar
zodStringToJSON
@freecrayon
Script
Useful when working with ZodFormData and you need to parse a text field that contains JSON. See https://www.val.town/v/freecrayon/zodStringToJSON_example for an example of how to use it.
freecrayon avatar
getLatestGitCoreVersion
@freecrayon
HTTP
An interactive, runnable TypeScript val by freecrayon
freecrayon avatar
getLatest1PasswordLinuxBetaVersion
@freecrayon
HTTP
An interactive, runnable TypeScript val by freecrayon
Next