Skip to content

cyco130/who-said-that

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Who said that?!

Adds a prefix that identifies the currently running npm script to every line of its output.

Why?

Sometimes it's hard to identify which line of output comes from which script when running multiple npm scripts in parallel or in series like in a monorepo build or a continuous integration output. Just prefix your npm script definition with who-said-that and you will have a tag that includes the package name and the script name on every output line.

How?

Given that you have an npm script like this:

  "lint": "who-said-that eslint"

You will have an output like this:

[your-package lint]: /path/to/your/file.js
[your-package lint]:   7:40  warning  'x' is defined but never used

And it will help you identify which package (your-package) and which script (lint) logged these messages when examining a large log, for instance.

Installation

npm install --save-dev who-said-that

Or you can install it globally if you like:

npm install -g who-said-that

Credits

About

Adds a prefix that identifies the currently running npm script to every line of its output

Resources

License

Stars

Watchers

Forks

Packages

No packages published