Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Node execNew to Visual Studio Code? Get it now.
Node exec

Node exec

rharkor

|
6,209 installs
| (0) | Free
Execute your node.js functions in one click
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Node Execute Function Extension

Overview

The Node Execute Function Extension for Visual Studio Code allows users to quickly execute JavaScript functions directly from their code editor. It detects function declarations in the active file and provides a simple interface for running these functions in a separate environment.

Features

  • Function Detection: Detects both traditional and arrow function declarations in the active file.
  • Quick Execution: Easily execute any detected function with a few clicks.
  • Terminal Integration: Functions are executed in a VS Code terminal, allowing for live output observation.
  • Temporary File Creation: Generates a temporary file for function execution to avoid altering the original source code.
  • Auto Clean-up: Automatically deletes temporary files after the terminal is closed.

Usage

  1. Open a JavaScript File: Open and focus on a JavaScript file in your editor.

  2. Trigger the Command: Run the command node-exec-function.executeFunction from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).

  3. Select a Function: Choose a function from the list of detected functions in your file.

  4. Watch the Output: The function will run in a new terminal window. Monitor the output in real time.

  5. Close the Terminal: Press Enter in the terminal after execution to close it and trigger the clean-up of temporary files.

Installation

Install directly from the Visual Studio Code Marketplace. Search for "Node Execute Function" and click install.

Requirements

  • Visual Studio Code
  • Node.js environment
  • Permissions to create and delete temporary files in your work directory
  • Limitations
  • Supports only simple function execution without arguments.
  • Designed for JavaScript files; other file types are not supported.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests on the repository for bug fixes, improvements, or new features.

Note to myself command to publish: vsce package https://marketplace.visualstudio.com/manage/publishers/rharkor?auth_redirect=True Publish: vsce publish

License

This extension is released under MIT, see the LICENSE file for more details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft