1
2
3
4
5
6
7
8
9
10
11
12
import { rawUrl as rawUrl2 } from "https://esm.town/v/karfau/rawUrl";
import { getRaw } from "https://esm.town/v/karfau/getRaw";
export const test_getRaw = {
readme: await getRaw(["karfau", "getRaw"], "md"),
code: await getRaw(["karfau", "getRaw"], "ts"),
// without passing an extension we get a json with all data
json: await getRaw(["karfau", "getRaw"]),
// use the extension to access any existing key in the json
version: await getRaw(["karfau", "getRaw"], "version"),
rawUrl: rawUrl2(["karfau", "getRaw"]),
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023