Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pawanpaudel93/tsx-to-jsx-cli
- Owner: pawanpaudel93
- License: mit
- Created: 2023-12-10T14:21:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-22T04:35:38.000Z (9 months ago)
- Last Synced: 2024-11-04T15:05:37.569Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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