Skip to content

Is there some API for node to take '.ts' to '.js'? Not the bin for shell #25314

@win7killer

Description

@win7killer

Search Terms

node ; api;

Suggestion

Need some api for nodejs to take '.ts' to '.js', and return the '.js' content in string, so I can use the to do STH.
But I don't want to use the shell bin.

Use Cases

I want to take a ts preview , so I can see the '.js' file in moment , I think it's good for the ts-leaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions