Skip to main content

API

ts-node's complete API is documented here: API Docs

Here are a few highlights of what you can accomplish:

  • create() creates ts-node's compiler service without registering any hooks.
  • createRepl() creates an instance of our REPL service, so you can create your own TypeScript-powered REPLs.
  • createEsmHooks() creates our ESM loader hooks, suitable for composing with other loaders or augmenting with additional features.