Avatar

joey

Joined January 1, 2023
Public vals
14
joey avatar
joey
BlobArray
Script
Blob Array Create an array as a Database, instantly! Just create a new val for your array: import { BlobArray } from "https://esm.town/v/joey/BlobArray"; type User = { email: string }; // specify the type inside the TS generic <> to define the type of your array export let myUserArray = BlobArray<User>("my-user-array"); Now import it and start using it in your vals! import { myUserArray } from "https://esm.town/v/joey/myUserArray"; // overwrite the entire array await myUserArray.set([{ email: "user1@gmail.com" }, { email: "user2@yahoo.com" }]); // get all the entries in your array const allUsers = await myUserArray.get(); // call any array method you want, just use "await" await myUserArray.push({ email: "johndoe@gmail.com" }); const gmailUsers = await myUserArray.filter(u => u.email.includes("@gmail.com"));
0
joey avatar
joey
helloWorld
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
myPublicVal
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
joeysPublicArray
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
emailOnGithubStar
Script
// Notifies you when you get a new star on your repo
0
joey avatar
joey
getGithubStarsForRepo
Script
// Returns stars on Github repo
0
joey avatar
joey
setPublicState
RPC (deprecated)
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
PUBLIC_STATE
Script
// set at Wed Jan 22 2025 03:46:37 GMT+0000 (Coordinated Universal Time)
0
joey avatar
joey
partitionArray
Script
// const [odd, even] = @joey.partitionArray([1,2,3,4,5,6], n=> n % 2 !== 0);
0
joey avatar
joey
untitled_sendForm
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
renderStatusLogs
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
renderObject
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
fetchJSON
Script
An interactive, runnable TypeScript val by joey
0
joey avatar
joey
sendDiscordMessage
Script
// add the bot to your server before calling:
0
Next