GitHunt
PA

pawanpaudel93/tsx-to-jsx

Convert Typescript (tsx/ts) to Javascript (jsx/js) files

tsx-to-jsx

npm version
npm downloads
bundle
JSDocs
License

tsx-to-jsx is a Node.js package that converts TypeScript (ts/tsx) files to JavaScript (js/jsx) files from a specified source directory, saving the result in a destination directory.

Installation

Before using the tool, make sure you have Node.js installed on your machine. Please install the package using your preferred package manager.

npm install tsx-to-jsx
yarn add tsx-to-jsx
pnpm add tsx-to-jsx
bun install tsx-to-jsx

Usage

import { convertTsxToJsx } from 'tsx-to-jsx'
const srcDirectory = "/Users/pawan/ts/ReactApp/src"
const destDirectory = "/Users/pawan/js/ReactApp/src"
await convertTsxToJsx(srcDirectory, dstDirectory)

License

MIT License © 2023-PRESENT Pawan Paudel

Contributors

MIT License
Created November 26, 2023
Updated March 1, 2026