Public
Script
October 23, 2023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { truncateVal } from "https://esm.town/v/stevekrouse/truncateVal";
import process from "node:process";
export const untitled_qAbtMd3a = (async () => {
const { Octokit } = await import("npm:@octokit/rest");
const octokit = new Octokit({
auth: process.env.githubGists,
});
return truncateVal(octokit.request("POST /gists", {
description: "How big 5?",
"public": false,
files: {
"README.md": {
content: JSON.stringify(new Array(10000000).fill(1)),
},
},
headers: {
"X-GitHub-Api-Version": "2022-11-28",
},
}));
})();
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