{"library":"talt","type":"library","category":null,"description":"Talt is a utility library that provides template functions for generating TypeScript Abstract Syntax Tree (AST) nodes programmatically. Inspired by Babel's `@babel/template`, it allows developers to define AST structures using familiar TypeScript syntax within template strings, which are then parsed and transformed into `ts.Node` objects. This significantly simplifies the process of creating and manipulating TypeScript ASTs compared to using the `typescript.factory` API directly. The current stable version is 2.4.5, with releases occurring as needed for bug fixes and feature enhancements, as seen in recent patch versions. Its primary differentiator is the template-based approach, which enhances readability and reduces boilerplate when working with complex AST constructions, especially useful in code transformation, linting, or transpilation tools. It relies on `typescript` as a peer dependency for its AST types and parsing capabilities.","language":"javascript","status":"active","version":"2.4.5","tags":["javascript","TypeScript","AST","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install talt","imports":["import { template } from 'talt';","import { template } from 'talt';\nconst node = template.typeNode`{ readonly prop: string }`();","import ts from 'typescript';"]},{"cmd":"yarn add talt","imports":[]},{"cmd":"pnpm add talt","imports":[]}],"homepage":null,"github":"https://github.com/Quramy/talt","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/talt","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/talt/compatibility"}}