Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pawanpaudel93/tsx-to-jsx-cli

A CLI to convert TSX to JSX
https://github.com/pawanpaudel93/tsx-to-jsx-cli

Last synced: about 1 month ago
JSON representation

A CLI to convert TSX to JSX

Awesome Lists containing this project

README

        

# tsx-to-jsx-cli

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]

`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

```bash
Usage: tsx-to-jsx [options]

A CLI for converting tsx to jsx

Options:
-s, --srcDir Source directory to convert
-d, --dstDir Destination directory to save to
-v, --version Display the version number
-h, --help display help for command
```

```bash
# Using npx
npx tsx-to-jsx-cli -s -d

# Using pnpx
pnpx tsx-to-jsx-cli -s -d

# Using bunx
bunx tsx-to-jsx-cli -s -d
```

Replace `` with the path to your TypeScript source files and `` with the desired path for the compiled JavaScript files.

## Related
- [tsx-to-jsx](https://github.com/pawanpaudel93/tsx-to-jsx)

## License

[MIT](./LICENSE) License © 2023-PRESENT [Pawan Paudel](https://github.com/pawanpaudel93)

[npm-version-src]: https://img.shields.io/npm/v/tsx-to-jsx-cli?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/tsx-to-jsx-cli
[npm-downloads-src]: https://img.shields.io/npm/dm/tsx-to-jsx-cli?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/tsx-to-jsx-cli
[bundle-src]: https://img.shields.io/bundlephobia/minzip/tsx-to-jsx-cli?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=tsx-to-jsx-cli
[license-src]: https://img.shields.io/github/license/pawanpaudel93/tsx-to-jsx-cli.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/pawanpaudel93/tsx-to-jsx-cli/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/tsx-to-jsx-cli