Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 452 Bytes

File metadata and controls

24 lines (18 loc) · 452 Bytes

Section 1.5: TypeScript REPL in Node.js

For use TypeScript REPL in Node.js you can use tsun package

  • Install it globally with
    • npm install -g tsun

and run in your terminal or command prompt with tsun command

Usage example:

$ tsun
// TSUN : TypeScript Upgraded Node

// type in TypeScript expression to evaluate
// type :help for commands in repl

$ function multiply(x, y) {
  return x * y;
}
undefined

$ multiply(3, 4)
12