A simple tool to pipe any command's output to stdout with customization.
npm install pipet
"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.
--on-success
: A message to display if the command succeeds.--on-error
: A message to display if the command fails.