Avatar

pablopunk

4 public vals
Joined January 12, 2023
1
2
3
4
5
export const latestVersion = async (v) => {
const { default: whatVersion } = await import("npm:what-version");
const nodeVersions = await whatVersion("node", v);
return nodeVersions?.[0];
};
1
2
3
4
5
6
import { fetch } from "https://esm.town/v/std/fetch";
export const checkMazeStatus = async () =>
fetch("https://status.maze.co", { method: "GET" }).then((...args) => ({
...args,
}));
1
2
3
4
5
import { events } from "https://esm.town/v/pablopunk/events";
export const addEvent = (event) => {
events.push(event);
};
1
2
3
4
export function now() {
const now = new Date();
return now.toLocaleDateString();
}
Next