• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language
    TypeScript
  • Created over 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An upgraded TypeScript REPL

TSUN - TypeScript Upgraded Node

TSUN, a TypeScript Upgraded Node, supports a REPL and interpreter for TypeScript. When invoked without ts file argument, TSUN works as a repl where you can type in expression. When you pass ts file to TSUN in command line argument, TSUN will automatically run it with invisible compilation.

Feature:

  • TS 2.0 support
  • Keyword highlight
  • Tab-completion support
  • Multiple Line Mode
  • Paste Mode
  • Definition Lookup
  • directly execute TypeScript application like node
  • Vim-Worksheet support
  • And hidden feature for your exploration

Install:

npm install -g tsun

Usage:

  • Use it as repl: tsun
  • Use it as interpreter: tsun path/to/app.ts
  • Other repl command can be accessed by typing :help
  • Command Line options can be viewd by passing -h or --help option

Note:

When used as interpreter, tsun will create a temporary directory as output directory and create a node process to execute compiled js. So it is usually a problem to correctly resolve node_modules path or definition file like *.d.ts. Currently, tsun make two symbolic links for node_modules and typings directories in temporary directory, conventionally.

TSUN will find the closest tsconfig.json relative to your working directory. You can now compile TypeScript to ES6 in node6+!

Custom definition files and JavaScript library support will be added in next releases.

ScreenShots:

Keyword Highlight Keyword Highlight

Tab-completion Tab Completion

Multiple Line Editing, typing double blank lines will escape from Multiple line mode Multiple Line Editing

Paste Mode Paste Mode

Definition Lookup Definition Lookup

And there is more for your exploration...

TODO:

If you need these, please let me know by making issues!

  • Add customization
  • Add tsun config. Now tsun will read the closest tsconfig.json relative to the working directory you execute it.

More Repositories

1

vue-compiler

Vue's template compiler reimplemented in Rust!
Rust
1,004
star
2

yats.vim

Yet Another TypeScript Syntax: The most advanced TypeScript Syntax Highlighting in Vim
Vim Script
639
star
3

av-ts

A modern, type-safe, idiomatic Vue binding library
TypeScript
218
star
4

vue-ts-loader

Type-check your script in your vue-loader
JavaScript
90
star
5

vue-advanced-programming

A collection of tricks in Vue
JavaScript
82
star
6

kilimanjaro

typed vuex 2.0
TypeScript
62
star
7

gulp-progeny

Make Gulp Fast Again
CoffeeScript
53
star
8

vue-ts-example

An example repo for Vue2.0 and TypeScript2.0
Vue
39
star
9

vim-worksheet

Worksheet for Vim
Python
34
star
10

ts-css-plugin

TypeScript
28
star
11

compositional-xstate

XState's hook/compositional API
TypeScript
20
star
12

Pat-Mat

pattern match in Javascript
CoffeeScript
7
star
13

atom-vue

vue-language-server demo for Atom
JavaScript
6
star
14

vivio

TypeScript
6
star
15

awesome-tree-sitter

A curated list of tree-sitter resources.
6
star
16

av-ts-template

av-ts template for vue-cli
JavaScript
6
star
17

herringtondarkholme.github.io

HTML
4
star
18

jedi-syntax

vim syntax for jedi lang
Vim Script
4
star
19

JS-regex

A collection of useful RegExp
JavaScript
3
star
20

Python-SignatureSal

Python implementation of signature saliency
Python
2
star
21

gulp-jedi

Compile jedi templates to PHP
PHP
2
star
22

angry.im

prototype
TypeScript
2
star
23

rs-perf-talk

Slides for Rust performance in JavaScript land
Vue
2
star
24

lovelive

mock Google+ Valentine effect
JavaScript
2
star
25

js-crush

Vue
2
star
26

diana

TypeScript
1
star
27

Vimfile

JavaScript
1
star
28

scalatra-activerecord-boilerplate

template repo
Scala
1
star
29

byon

Angular2 demo
HTML
1
star
30

paranoid-router

typed router for vue
1
star
31

ast-grep

placeholder
HTML
1
star
32

HerringtonDarkholme

1
star
33

sponsors

Appreciate all my sponsors for helping me make web faster!
TypeScript
1
star
34

syn-checker

syn-checker
JavaScript
1
star
35

ImgSearchGesture

JavaScript
1
star
36

SharePicToGp

This repo is under construction !
CoffeeScript
1
star
37

rectangular

TypeScript
1
star
38

printheart

Happy Birthday!
CSS
1
star
39

Vim--Monokai-Terminal

Terminal Color Palette for Monokai Theme
Vim Script
1
star
40

android-example

scala example
Scala
1
star