Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-lib-contrib

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-lib-contrib

Common functionality shared across grunt-contrib tasks.

  • 0.7.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

grunt-lib-contrib Build Status

DEPRECATED - DO NOT USE

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.

report

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 = grunt.file.read('max.js');
var min = minify(max);
minMaxInfo(min, max, 'gzip');

Would print:

Original: 495 bytes.
Minified: 396 bytes.
Gzipped: 36 bytes.
getNamespaceDeclaration(ns)

This helper is used to build JS namespace declarations.

--

Lib submitted by Tyler Kellen.

FAQs

Package last updated on 01 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc