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.
1
freecrayon
mapMap
Script
It's like Array.prototype.map but for the Map, allowing you to transform keys and values.
0
freecrayon
zodStringToJSON_example
Script
// usually this will be passed to you by your Server (i.e. SvelteKit, Remix)
0
freecrayon
zodStringToJSON
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.
0
freecrayon
getLatestGitCoreVersion
HTTP
An interactive, runnable TypeScript val by freecrayon
1
freecrayon
getLatest1PasswordLinuxBetaVersion
HTTP
An interactive, runnable TypeScript val by freecrayon