who-said-that

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i who-said-that

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

9.36 kB

Total Files

6

Last publish

Collaborators

  • cyco130