https://github.com/exposedcat/ts-runner
Run ts from CLI without tsc
https://github.com/exposedcat/ts-runner
Last synced: 18 days ago
JSON representation
Run ts from CLI without tsc
- Host: GitHub
- URL: https://github.com/exposedcat/ts-runner
- Owner: ExposedCat
- Created: 2020-08-20T11:25:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T11:41:45.000Z (over 5 years ago)
- Last Synced: 2025-01-18T14:34:13.254Z (12 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-runner
Run ts from CLI without typing tsc

Copy `ts-runner.sh` to `~/sh`
Add alias (you can save it in your ~/.bashrc):
```bash
> alias ts="~/sh/ts-runner.sh "
```
Install typescript:
```bash
> npm i typescript -g
```
## Example usage:
Make simple `test.ts` file:
```bash
> echo "console.log(\"Hello World\!\")">test.ts
```
Run it:
```bash
> ts test.ts
< Hello World!
```