Factor out printing of processed results to a separate function.
Factor out printing of processed results to a separate function.

Also add minimatch from npm in prep for using that.

isaacs/json,isaacs/json