Skip to content

vardario/astring-ts-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

046bf8b · Dec 16, 2024

History

6 Commits
Dec 13, 2024
Dec 13, 2024
Dec 16, 2024
Dec 16, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024

Repository files navigation

@vardario/astring-ts-generator

A generator for astring that enables it to generate TypeScript code from an Abstract Syntax Tree (AST) parsed from TypeScript files. The generator is compliant with AST code generated by acorn-typescript to support TypeScript syntax.

Installation

npm install astring-ts-generator

Usage

import generator from '@vardario/astring-ts-generator';
const code = astring.generate(ast, { generator });