Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsun

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsun

TSUN: a repl for TypeScript Upgraded Node

  • 0.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
369
decreased by-52.39%
Maintainers
1
Weekly downloads
 
Created
Source

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 1.6 support
  • 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.

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

ScreenShots:

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:

  • Add customization
  • Add tsun config

Keywords

FAQs

Package last updated on 24 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc