npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mostly-quiet-grunt

v1.0.4

Published

Limit grunt output to nothing, dots, or very deliberate output if everything goes well. On error print dump everything.

Downloads

346

Readme

mostly-quiet-grunt

Limit grunt output to nothing, dots, or very deliberate output if everything goes well. On error print dump everything.

NPM info

dependencies

The Problem

The default output from Grunt is more verbose than I would like. During a good build, I would prefer to silence all output except for a test report summary at the end.

Like this module's ancestor, quiet-grunt, this will suppress most of the grunt output on a good build. It offers a caller two features that quiet-grunt does not:

  • an option to not even show a dot on every message
  • a special exposed routine which allows one to bypass the output suppression.

If there is an error, the entire output will be dumped.

Install

npm install  --save-dev mostly-quiet-grunt

Use

Once the module has been installed, require it at the beginning of the gruntfile.

const controller = require('mostly-quiet-grunt');

module.exports = function (grunt) {
   ...
   controller.showDots(true);
   controller.passthroughWrite('Show this during the run of grunt.');
   ...

If an option --no-quiet, --verbose, --noq, -v or the command watch is provided, then this will not be turned on.

What it does

When this module is invoked, if none of the options mentioned above are used, then it will replace the process.stdout.write(message) routine with a function that stores the message. When the process then starts to exit(), if the exit code is not 0, then write the accumulated messages.

If the controller.passthroughWrite(message) function is called, this will bypass the storing process. If controller.showDots(true|false) is called, write (or, if false, don't write) a period character each time process.stdout.write(message) is called.

Small print

Author: 柏大衛 © 2017

This is a fork of bahmutov/quiet-grunt. You should use that module unless you particularly want the "nothing" or the "very deliberate outout" this offers.

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, open an issue on Github.