Skip to content

Docs: What is TypeScript Node? #1208

Closed
Closed
@adamhenson

Description

@adamhenson

Desired Behavior

It would be great if the project would answer some fundamental questions in the documentation. In doing a variety of Google searches and parsing through issues, it's difficult to understand what exactly TypeScript Node does and how reliable it is. Below are some basic questions I think should be answered at the top of the documentation.

  • What is TypeScript Node? This should be more than the current one sentence: TypeScript execution and REPL for node.js, with source map support.. I get it - it's an executor. But, if that's true - how or why is it transpiling (noticed the --transpile-only flag). If it is an executor, then why is there mention of compiling - noted in the How It Works section: TypeScript Node works by registering the TypeScript compiler for .ts, .tsx, .js, and .jsx extensions.. Does this mean compiling to C++ via just-in-time compilation to machine code the moment a piece of code is executed?
  • How is performance... is it safe to use in production? I found a tease of this answer in Should I use it in production? #104 but it seems like an old issue and although some answers exist in that issue - there isn't a lot behind the answers for someone who doesn't know the details of what the code is doing from this project.

Is this request related to a problem?

No

Additional context

I'm doing some research about potentially using TypeScript Node with a large scale website and I need to make sure it is a reliable option that doesn't sacrifice performance. I'm having difficulty getting clear answers to those questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions