Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

Add JSDoc comment to any val

This val is supposed to be used with the val.town chrome extension.

Add this field to your config to use it:

export default [ { title: "Add JSDoc comments", val: "pomdtr/add_jsdoc_action", patterns: ["https://www.val.town/v/:author/:name"], }, // ... ]
1
2
3
4
5
6
7
8
import { askAI } from "https://esm.town/v/pomdtr/ask_ai";
import { BrowserContext } from "https://esm.town/v/pomdtr/browser";
export default async function(ctx: BrowserContext) {
const { author, name } = ctx.params;
await askAI(`Add jsdoc comments for each exported function of the val @${author}/${name}`);
}
March 29, 2024