node

Run scripts in Node.JS.

  • TypeScript support.

  • Uses swc-register

  • Support for aliases.

  • Default: ./src

  • Resolves .js, .jsx, .ts and .tsx files.

Default command

node ./src

CLI Options

https://nodejs.org/api/cli.html

Examples

Default CLI

mhy node

Run a specific file/folder

mhy node file

Last updated