News for hackers. Stuff that matters.
Re:JavaScript Macros in Bun by mhio on Friday June 30, 2023 @09:39PM (#36545371)
I've been using ts-morph for this recently, the accompanying AST viewer makes getting started easy.

https://github.com/dsherret/ts-morph

https://ts-ast-viewer.com

Re:JavaScript Macros in Bun by love2read on Saturday July 01, 2023 @12:02AM (#36546429)
Out of curiosity, what have you made?
Re:JavaScript Macros in Bun by mhio on Monday July 03, 2023 @09:55PM (#36581220)
It was mostly utilitarian, modifying the outputs of some code generation tools where maintaining a fork was going to be difficult. The most recent was munging some file upload details where the OpenAPI definition is incomplete (or only recently defined). Also adding some aspect oriented changes across the code (audit/log/debug).