Skip to content

onurravli/pipet

Repository files navigation

Pipet

A simple tool to pipe any command's output to stdout with customization.

Installation

npm install pipet

Usage

"scripts": {
  "format": "pipet --on-success 'echo \"There are no linter errors.\"' --on-error 'echo \"There are linter errors.\"' -- eslint .",
}

This command will pipe the output of the eslint . command to stdout and add a success or error message to the end of the command.

Options

  • --on-success: A message to display if the command succeeds.
  • --on-error: A message to display if the command fails.

About

A simple tool to pipe any command's output to stdout with customization.

Resources

License

Stars

Watchers

Forks

Packages

No packages published