tscodegendsl

TypeScript codegen DSL

Usage no npm install needed!

<script type="module">
  import tscodegendsl from 'https://cdn.skypack.dev/tscodegendsl';
</script>

README

tscodegendsl - a TypeScript code generator domain-specific language

Call functions to build up your code into an abstract syntax tree (AST), then convert it to a string by calling astToString().