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}`);
}
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!
v9
March 29, 2024