MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / applyAutocorrect

Function applyAutocorrect

baoyu-format-markdown/scripts/autocorrect.ts:3–10  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

1import { execSync } from "child_process";
2
3export function applyAutocorrect(filePath: string): boolean {
4 try {
5 execSync(`npx autocorrect-node --fix "${filePath}"`, { stdio: "inherit" });
6 return true;
7 } catch {
8 return false;
9 }
10}

Callers 1

formatMarkdownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected