Indexed by TopGit from live GitHub metadata: swc-project/swc-node has 2.0k stars, written primarily in TypeScript. Faster ts-node without typecheck
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
🚀 Help me to become a full-time open-source developer by sponsoring me on Github
Fast TypeScript/JavaScript transformer without node-gyp and postinstall script.
Usage
Run TypeScript with node, without compilation or typechecking:
npm i -D @swc-node/register
node -r @swc-node/register script.ts
node --import @swc-node/register/esm-register-next --enable-source-maps script.ts # for esm project with node>=22.15
node --import @swc-node/register/esm-register --enable-source-maps script.ts # for esm project with node>=20.6
node --loader @swc-node/register/esm script.ts # for esm project with node<=20.5, deprecated
Pass --enable-source-maps to node for esm projects
Set environment variable SWCRC=true when you would like to load .swcrc file
SWCRC=true node -r @swc-node/register script.ts
#!/usr/bin/env -S node --import @swc-node/register/esm-register
// your code
run with shebang, add TS_NODE_PROJECT=null(#!/usr/bin/env TS_NODE_PROJECT=null node --import @swc-node/register/esm-register) to use ignore tsconfig.json
Yes — swc-project/swc-node ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/swc-project/swc-node.
What is swc-project/swc-node?
swc-project/swc-node (swc-project/swc-node) is a TypeScript project on GitHub. From the project's own README: Faster ts-node without typecheck
Where do I read more about swc-project/swc-node?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/swc-project/swc-node is the definitive source.
Read full README in the tab above.
Still deciding about swc-node?
One click hands the question to an AI along with this page — see what it says about swc-node.