Usage
Parameters
Path to the JavaScript or TypeScript file to execute. Can be a local file path or URL.
Arguments to pass to the script. Must be preceded by
--.Options
Watch mode - restart the process when the entry file changes.
Keep output when restarting in watch mode (requires
--watch).File path for localStorage persistence.
Enable verbose output.
Disable colored output.
Set stack size in KB (e.g.,
--stack-size=1024).Examples
Run a JavaScript file
Run a TypeScript file
Run with arguments
Run in watch mode
Run from URL
Terminal Output
Features
- Native TypeScript Support: Run
.tsfiles without compilation - URL Support: Execute scripts from remote URLs
- Watch Mode: Auto-restart on file changes
- Module Resolution: Supports ES modules and CommonJS
- Script Arguments: Pass arguments to your scripts via
--