Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oclif/plugin-which

Package Overview
Dependencies
Maintainers
0
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-which

find which plugin a command is in

  • 3.2.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is @oclif/plugin-which?

@oclif/plugin-which is a plugin for the Oclif CLI framework that helps in locating the path of a command within the CLI. It is useful for debugging and ensuring that the correct command is being executed.

What are @oclif/plugin-which's main functionalities?

Locate Command Path

This feature allows you to locate the path of a specific command within your CLI. The code sample demonstrates how to use the @oclif/plugin-which to find the path of 'mycommand' and log it.

const { Command } = require('@oclif/command');
const which = require('@oclif/plugin-which');

class MyCommand extends Command {
  async run() {
    const commandPath = await which('mycommand');
    this.log(`Command path: ${commandPath}`);
  }
}

MyCommand.run();

Other packages similar to @oclif/plugin-which

Keywords

FAQs

Package last updated on 08 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc