Our great sponsors
esno | ts-node | |
---|---|---|
10 | 20 | |
1,531 | 12,547 | |
2.2% | 0.8% | |
4.9 | 5.5 | |
about 2 months ago | 2 months ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
esno
-
Finally, a guide for Node.js and TypeScript and ESM that works
Love this project, used it quite a bit. However I always opt for using esno[1] instead, merely because of the name; having two tools share the same name throws me off.
[1] https://github.com/esbuild-kit/esno
-
The esm/cjs situation...
Next, I thought well nx is not gonna work for now, so let's keep looking for an alternative to ts-node. Oh look, there is this https://github.com/esbuild-kit/tsx. It natively understands path aliases, no need for any flags. Oh wait...it doesn't do any type checking like ts-node. WHAT? why would anyone execute typescript without type checks during development?.
-
Svelte is migrating from TypeScript to JSDoc
I’ve generally found tsx to be better/less hassle than ts-node
https://github.com/esbuild-kit/tsx
-
TypeScript tooling and ecosystem
For just running Typescript files you have (both for dev and prod) https://github.com/esbuild-kit/tsx with command is generally easier then using ts-node + some file watcher or compiling to js
-
Usage TypeScript?
Just use tsx: https://github.com/esbuild-kit/tsx
- What's the proper tools to use for node.js development?
-
PSA: Speed up your ts-node command with a simple --swc flag
I've been using tsx, which is like ts-node except it uses esbuild under the hood. It's been pretty great. Super speedy.
-
tsx: Node.js enhanced with esbuild to run TypeScript & ESM
And compared to esno?
-
Typescript or JS with Node.js ?
Typescript with TSX for development
-
Unable to run ‘.ts’ - ESM modules and CommonJS
Take a look at Typescript runners like ts-node or esno (https://github.com/antfu/esno)
ts-node
-
TypeScript Without Transpilation
I thought this was going to be a project like ts-node [1]
[1] https://github.com/TypeStrong/ts-node
- Is your language eco friendly?
-
Deploy a static site to AWS S3 and CloudFront using AWS CDK
The command specified in the app option uses ts-node by default, which is an execution engine for Node.js that allows you to run TypeScript code directly. The --prefer-ts-exts flag prevents ts-node from prioritizing precompiled .js files and will always import the TypeScript source code instead, if it is available. This is useful if you are also using tsc (the TypeScript compiler) alongside the app option. The bin/cdk.ts file is the entry point for our CDK app, which defines the main function that will be executed when the app is run.
- Use tsx instead of nodemon
-
Couple super basic Typescript questions from a newbie: how to compile and how to start learning
If you want to write apps that run on Node.js I would suggest using Google’s TypeScript style guide. You can start using it by simply running npx gts init. I’d suggest that you start with this and run your apps using ts-node/ts-node-dev because it does not require an extra build step.
-
Looking for a TS REPL/tinkering tool, any recommendations?
ts-node (“TypeScript execution and REPL for Node.js”)
-
"SyntaxError: Cannot use import statement outside a module" trying to run Mathigon/Studio
Here is a relevant discussion and dev comment: https://github.com/TypeStrong/ts-node/issues/155
-
An Introduction to Deno: Is It Better Than Node.js?
It does support ESM, with a --loader[1], but even with its SWC option it’s still significantly slower than the esbuild loader I’m working on. Unfortunately, esbuild isn’t totally compatible with tsc, so it’s not a drop-in replacement without plugins.
1: https://github.com/TypeStrong/ts-node#native-ecmascript-modu...
-
How to Set Up a Node.js Project with TypeScript
The process of compiling TypeScript source files into JavaScript code before executing them with Node.js can get a little tedious after a while, especially during development. You can eliminate the intermediate steps before running the program through the ts-node CLI to execute .ts files directly. Go ahead and install the ts-node package using the command below:
-
How to use execa@6 with NestJs?
I tried suggested solution by https://github.com/TypeStrong/ts-node/issues/1007 but this causes problem with NestJS decorators:
What are some alternatives?
esbuild-node-tsc - Build your Typescript Node.js projects using blazing fast esbuild
swc-node - Faster ts-node without typecheck
electron-svelte-typescript-esbuild-template - Starter kit to build cross-platform desktop apps with Electron, Svelte, TypeScript and Esbuild.
esbuild - An extremely fast bundler for the web
esbuild-svelte - An esbuild plugin to compile Svelte components
esbuild-runner - ⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild
TS-ESNode - Node.JS Loader hook to transform typescript source and files as node loads them TS-ESNode. TS-Node for ESNext & ESModule Node.JS.
swc - Rust-based platform for the Web
sucrase - Super-fast alternative to Babel for when you can target modern JS runtimes
ThinkJS - Use full ES2015+ features to develop Node.js applications, Support TypeScript.
vike - 🔨 Like Next.js / Nuxt but as do-one-thing-do-it-well Vite plugin.