compile and run ts files with node in one command code example Example: how to run typescript file npx ts-node src/foo.ts