@digitak/grubber
Version:
Parse code files and patch it without having to use an AST
10 lines (9 loc) • 387 B
TypeScript
import Rule from "./Rule.js";
import Parser from "./Parser.js";
import Fragment from "./Fragment.js";
import { LanguageName } from "./languages/index.js";
/**
* @return a Parser instance with which the user can execute find and replace operations
*/
export declare function grub(content: string, rules?: Rule[] | LanguageName): Parser;
export { Rule, LanguageName, Fragment, Parser };