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

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

Awesome Lists containing this project

README

          

# ts-runner
Run ts from CLI without typing tsc

![Example usage](https://i.imgur.com/xcqHNsj.png)

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!
```