Ts-node Alternatives

Similar projects and alternatives to ts-node

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ts-node alternative or higher similarity.

Suggest an alternative to ts-node

Reviews and mentions

Posts with mentions or reviews of ts-node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-26.
  • Next.js 12
    27 projects | news.ycombinator.com | 26 Oct 2021
  • Can't use an import statement outside a module?
    1 project | reddit.com/r/typescript | 25 Oct 2021
    By default, Node assumes you're targeting CJS. This error is a node error telling you that "import ..." is a syntax error when you're configured for running CJS. Based on your description, I suspect you have "module": "es2015" or higher in your tsconfig. This tells typescript to output files that are compatible with ESM. At this point, if you change this to "module": "commonjs", you'd likely have a working set of code (this is my recommended approach). But... you took the experimental long route 😀. By adding "type": "module", you told node to run it as if it were ESM. Now you have Node and TS targeting ESM, but ts-node doesn't have an easy way of being compatible with ESM. Switching the loader to use ts-node/esm is then what put all 3 tools into the same ecosystem configuration. Note that this config is a bit fragile, the hooks are experimental, so Node doesn't follow semver with them. Minor version changes in node may break compatibility. Which leads into...
  • Next.js TypeScript serverless deploy with SSR and ISR with AWS CDK
    2 projects | dev.to | 19 Aug 2021
    As highlight, aside from CDK and its construct libraries, ts-node is a TypeScript execution engine and REPL for Node.js. It JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without pre-compiling. This is accomplished by hooking node’s module loading APIs, enabling it to be used seamlessly alongside other Node.js tools and libraries.
  • Post to Reddit using its API
    4 projects | dev.to | 19 Jul 2021
    ts-node is a handy tool for executing Typescript files without having to first compile to Javascript.
  • n00b question
    2 projects | reddit.com/r/node | 17 Apr 2021
    via SWC https://github.com/TypeStrong/ts-node
  • DIY SvelteKit CDK adapter
    4 projects | dev.to | 5 Apr 2021
    To be able to use typescript for the adapter without extra compilation steps, lets add a little ts-node wrapper (adapter/index.js)
  • How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan
    11 projects | news.ycombinator.com | 2 Mar 2021
    If you are working on the server side, ts-node has been a huge timesaver. It removes the extra step of compiling and lets you just run your script with `ts-node script.ts` or even `#!/usr/bin/env ts-node` at the top of your file works.


  • Best practices for typescript app build integration test for pre-prod/prod environnement
    2 projects | reddit.com/r/typescript | 18 Jan 2021
    But of course you have to transpile the tests if you want to write them in Typescript. For Mocha you can use ts-node to compile them "on the fly" while running tests.
  • How to get started with TS as a developer with 2 years of JS (React, RN) development experience?
    1 project | reddit.com/r/typescript | 6 Jan 2021
    The hardest part is the build system. It's easiest if you use babel (in which case, drop in the typescript preset) or run your raw files in `node` (in which case, swap it for ts-node). I found the other workflows like webpack to be a bit more finicky.


Basic ts-node repo stats
12 days ago

TypeStrong/ts-node is an open source project licensed under MIT License which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Find remote TypeScript jobs at our new job board 99remotejobs.com. There are 11 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.