tsx-to-jsx-cli
v0.0.3
Published
Convert tsx to jsx
Downloads
135
Readme
tsx-to-jsx-cli
tsx-to-jsx-cli
is a CLI tool that converts TypeScript (ts/tsx) files to JavaScript (js/jsx) files from a specified source directory, saving the result in a destination directory.
Usage
Usage: tsx-to-jsx [options]
A CLI for converting tsx to jsx
Options:
-s, --srcDir <path> Source directory to convert
-d, --dstDir <path> Destination directory to save to
-v, --version Display the version number
-h, --help display help for command
# Using npx
npx tsx-to-jsx-cli -s <source-directory> -d <destination-directory>
# Using pnpx
pnpx tsx-to-jsx-cli -s <source-directory> -d <destination-directory>
# Using bunx
bunx tsx-to-jsx-cli -s <source-directory> -d <destination-directory>
Replace <source-directory>
with the path to your TypeScript source files and <destination-directory>
with the desired path for the compiled JavaScript files.
License
MIT License © 2023-PRESENT Pawan Paudel