swc-node icon indicating copy to clipboard operation
swc-node copied to clipboard

How to run via npx

Open cjz9032 opened this issue 3 years ago • 2 comments

I guess npx is for most scenario, but I can't find the support of it.

cjz9032 avatar Nov 23 '22 07:11 cjz9032

@cjz9032 I got the same issue and made a simple wrapper try running npx swc-run hello.ts

lucianmachado avatar Jan 26 '23 18:01 lucianmachado

it is unnecessary. just run with node https://github.com/swc-project/swc-node?tab=readme-ov-file#usage

yeliex avatar Mar 04 '24 02:03 yeliex

You can use https://github.com/hairyf/swrun

hairyf avatar Mar 21 '25 06:03 hairyf