Skip to content

AST Grep

These runtime helpers provide a friendly wrapper around the ast-grep.

Terminal window
npm i -D @genaiscript/plugin-ast-grep

If you are using the plugin in a Node.JS environment, without a .genai... entry file, you will need to initialize the runtime before using the plugin:

import { initialize } from "@genaiscript/runtime";
await initialize();

See the ast-grep script for examples of how to use the plugin.