UNPKG

@digitak/grubber

Version:

Parse code files and patch it without having to use an AST

10 lines (9 loc) 285 B
import Parser from "./Parser.js"; import Fragment from "./Fragment.js"; /** * @return a Parser instance with which the user can execute find and replace operations */ export function grub(content, rules = "es") { return new Parser(content, rules); } export { Fragment, Parser };