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

clipanion-runner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clipanion-runner

clipanion runner

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

clipanion-runner

A command runner for https://www.npmjs.com/package/clipanion.

Usage

Installation

yarn add clipanion-runner

Write Command

Write command to ${Your Project Dir}/.commands/hello.js or ${Your Project Dir}/.commands/hello.ts

Code content like this, export default as Command Class:

const { Command } = require('clipanion')

exports.default = class HelloCommand extends Command {
  execute() {
    console.log('Hello World!')
  }
}

Run Command

Open terminal and run this:

cli-run hello

Options

COMMAND_DIR

Define the custom dir to resolve command.

process.env.COMMAND_DIR=some_custom_dir cli-run hello

Keywords

FAQs

Package last updated on 25 Jan 2022

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