tsx-to-jsx
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tsx-to-jsx

Weekly Downloads

55

Version

0.0.4

License

MIT

Unpacked Size

15.6 kB

Total Files

6

Last publish

Collaborators

  • pawanpaudel93