npm.io
0.3.0 • Published 3 months agoCLI

vscode-launcher

Licence
ISC
Version
0.3.0
Deps
6
Size
494 kB
Vulns
0
Weekly
0

VSCode Launcher

This project is a CLI tool for running a launch configuration from .vscode/launch.json. It uses Figlet to print a fun banner, Commander for argument parsing, and custom utilities for launching and reading configuration files.

Features

  • Launch a specific configuration from .vscode/launch.json
  • Specify the working directory
  • Optional debug mode for extra logging

Usage

Command Syntax
   npx vscode-launcher -c "{The name of a launch command in your .vscode/launch.json}"
Options
Option Description Default Value
--cwd [cwd] Set the current working directory to use. process.cwd()
-c, --configuration-name <configuration> Specify the name of the configuration to launch. None
-d, --debug Enable debug mode for additional logs. false
-l, --launchFile [launch-file] Path to the launch.json file. .vscode/launch.json
Example Usage

To run a specific configuration:

npx vscode-launcher --configuration-name myConfig

To run with a custom launch file:

node index.js -l ./custom/launch.json -c myConfig

Enable debugging:

node index.js --debug

License

This project is licensed under the MIT License - see the LICENSE file for details.