https://github.com/epicallan/js-to-ts
A simple Javascript to typescript converter CLI tool
https://github.com/epicallan/js-to-ts
cli javascript typescript
Last synced: 3 months ago
JSON representation
A simple Javascript to typescript converter CLI tool
- Host: GitHub
- URL: https://github.com/epicallan/js-to-ts
- Owner: epicallan
- Created: 2018-04-15T18:52:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T08:29:10.000Z (about 7 years ago)
- Last Synced: 2025-03-17T22:41:26.632Z (4 months ago)
- Topics: cli, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/%40epicallan%2Fjs-to-ts)
# Javascript to Typescript file convert
Heavily relying on [lebab](https://github.com/lebab/lebab) for es5 to es6 conversion
## What it does
-----
- convert es5 to es6 code
- Renames files in a directory to .ts
- delete left over js files by commandline see commands usage below## Commands / usage
-----
install by using yarn or npm```
npm install -g @epicallan/js-to-ts
````$ js-to-ts --dir ` to convert files in a specific dir
`$ js-to-ts ` to convert files in current dir
`$ js-to-ts -d` to delete all js files in current dir
`$ js-to-ts -d --dir ` to delete all js files in relative dir