tsx-to-jsx
v0.0.4
Published
Convert tsx to jsx
Downloads
561
Readme
tsx-to-jsx
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