https://github.com/guidevloper/nts2tsx
Utility to rename NTS files to TSX in the current directory
https://github.com/guidevloper/nts2tsx
nullstack tsx typescript
Last synced: 6 months ago
JSON representation
Utility to rename NTS files to TSX in the current directory
- Host: GitHub
- URL: https://github.com/guidevloper/nts2tsx
- Owner: GuiDevloper
- License: mit
- Created: 2022-04-14T18:59:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-24T21:16:17.000Z (almost 4 years ago)
- Last Synced: 2025-04-02T15:29:18.171Z (12 months ago)
- Topics: nullstack, tsx, typescript
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nts2tsx
Utility to rename NTS files to TSX in the current directory.
> 💡 It avoids some mess not messing with messed up **node_modules**, **webpack.config.js** and dot files/directories
## Args
The simplest use searches for NTS files and rename them:
```bash
npx nts2tsx
```
Together with renaming, it cleans up any use of `.nts` extension in paths.
> ✨ It stores the relative paths of renamed files at **./nts2tsx-save.txt**
To restore to original filenames, just run:
```bash
npx nts2tsx --restore
```
You would like to rename TSX to NTS files? Okay then, just run:
```bash
npx nts2tsx --invert
```
and to restore:
```bash
npx nts2tsx --invert --restore
```
## License
[MIT](LICENSE) © 2022 Guilherme Correia