Git Product home page Git Product logo

who-said-that's Introduction

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

who-said-that's People

Contributors

cyco130 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.