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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
DEPRECATED - DO NOT USE
Common functionality shared across grunt-contrib tasks.
Deprecated. Use strip-path instead.
Strip a path from a path. Normalize both paths for best results.
Deprecated. Use maxmin instead.
Helper for logging compressed, uncompressed and gzipped sizes of strings.
Either do not report anything, report only minification result, or report minification and gzip results.
'gzip' results can make this task 5-10x slower depending on the size of the file.
var max = grunt.file.read('max.js'); var min = minify(max); minMaxInfo(min, max, 'gzip');
Original: 495 bytes. Minified: 396 bytes. Gzipped: 36 bytes.
This helper is used to build JS namespace declarations.
Lib submitted by Tyler Kellen.