Typescript REPL

I came across this the other day, while I was reading “ng-Book 2” from fullstack.io.  They introduced a REPL module for Typescript.  It’s called tsun.  It works just like a REPL in Ruby or Python.  It provides an interactive shell, where you can test out code and see instant results to your commands.  This is a great way to test out ideas or code concepts.

To install tsun, you must have npm installed (node) and you just simply run:

npm install -g tsun

that will install tsun globally.

Once installed you just run:

tsun

and you’ll have a “>” prompt.  At this point you can simply type in Typescript and get results in the interactive shell.

 

Typescript REPL
User Rating: 0 (0 votes)