Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including grunt-lib-contrib with all npm packages installed. Try it out:

var gruntLibContrib = require("grunt-lib-contrib")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

grunt-lib-contrib v0.7.1

Common functionality shared across grunt-contrib tasks.

grunt-lib-contrib Build Status


Common functionality shared across grunt-contrib tasks.

Helper Functions

stripPath(path, stripPath)

Deprecated. Use strip-path instead.

Strip a path from a path. Normalize both paths for best results.

minMaxInfo(min, max, report)

Deprecated. Use maxmin instead.

Helper for logging compressed, uncompressed and gzipped sizes of strings.


Choices: false, 'min', 'gzip' Default: false

Either do not report anything, report only minification result, or report minification and gzip results.

Important Including 'gzip' results can make this task 5-10x slower depending on the size of the file.

var max ='max.js');
var min = minify(max);
minMaxInfo(min, max, 'gzip');

Would print:

Original: 495 bytes.
Minified: 396 bytes.
Gzipped: 36 bytes.


This helper is used to build JS namespace declarations.


Lib submitted by Tyler Kellen.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free