@codemod-utils/ast-template-tag
v1.2.4
Published
Utilities for handling *.{gjs,gts} files
Readme
@codemod-utils/ast-template-tag
Utilities for handling *.{gjs,gts} files
What is it?
@codemod-utils/ast-template-tag uses content-tag to help you parse and transform *.{gjs,gts} files.
import { updateJavaScript } from '@codemod-utils/ast-template-tag';
// Reuse a method that can update `*.{js,ts}` files
function transform(file: string): string {
// ...
}
const newFile = updateJavaScript(oldFile, transform);import { updateTemplates } from '@codemod-utils/ast-template-tag';
// Reuse a method that can update `*.hbs` files
function transform(file: string): string {
// ...
}
const newFile = updateTemplates(oldFile, transform);Documentation
Visit https://codemod-utils.netlify.app/docs/packages/codemod-utils-ast-template-tag.
Compatibility
- Node.js v20 or above
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
