Skip to content

Inspecting Modules

Warning

The inspect API is unstable, and is a work in progress

Subversify exports an inspect function, which accepts an instantiated module root, and prints a nested object representation of the module graph.

1
2
3
4
import { inspect } from "@subversify/core";
import { AppModule } from "./app.module";

console.log(inspect(new AppModule()));