minicodegen (npm): A simple code generation library with primitives print, println, and indent.  Code is generated into object models which can then be composed into a final code object model and rendered.  Also includes a mechanism for generating a hierarchy of files.
Keywords: typescript|codegen