AST Grep
These runtime helpers provide a friendly wrapper around the ast-grep.
Installation
Section titled “Installation”npm i -D @genaiscript/plugin-ast-grep
pnpm add -D @genaiscript/plugin-ast-grep
yarn add -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.