Public
Script
Readme

POST /v1/vals

Creates a val.

Requires a secret called valtownToken, set to your API Token. See more about authentication to understand how to generate a token.

1
2
3
4
5
6
7
import process from "node:process";
import { createVal } from "https://esm.town/v/neverstew/createVal";
export const postVals = createVal({
token: process.env.valtownToken,
code: "const two = 1 + 1;",
});
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