# grunt-lib-contrib

> Common functionality shared across grunt-contrib tasks.

Latest version **0.7.1** (published 2014-03-01) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-lib-contrib
pnpm add grunt-lib-contrib
yarn add grunt-lib-contrib
bun add grunt-lib-contrib
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2014-03-01 |
| First published | 2012-10-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Grunt Team |
| Maintainers | cowboy, tkellen, shama, sindresorhus |

## Links

- npm: https://www.npmjs.com/package/grunt-lib-contrib
- Repository: https://github.com/gruntjs/grunt-lib-contrib
- Homepage: http://github.com/gruntjs/grunt-lib-contrib
- Issues: https://github.com/gruntjs/grunt-lib-contrib/issues
- npm.io page: https://npm.io/package/grunt-lib-contrib

## Dependencies (2)

- [maxmin](https://npm.io/package/maxmin.md) ~0.1.0
- [strip-path](https://npm.io/package/strip-path.md) ~0.1.0

## Recent versions

- 0.7.1 (latest) — 2014-03-01
- 0.7.0 — 2014-02-28
- 0.6.1 — 2013-03-23
- 0.6.0 — 2013-03-14
- 0.5.3 — 2013-02-23
- 0.5.2 — 2013-02-18
- 0.5.1 — 2013-01-10
- 0.4.0 — 2012-11-21
- 0.3.1 — 2012-10-29
- 0.3.0 — 2012-10-08

## README

# grunt-lib-contrib [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-lib-contrib.png?branch=master)](http://travis-ci.org/gruntjs/grunt-lib-contrib)

**DEPRECATED - DO NOT USE**

> Common functionality shared across grunt-contrib tasks.

### Helper Functions

#### stripPath(path, stripPath)

**Deprecated. Use [strip-path](https://github.com/sindresorhus/strip-path) instead.**

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

#### minMaxInfo(min, max, report)

**Deprecated. Use [maxmin](https://github.com/sindresorhus/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.


```js
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](https://goingslowly.com/).*

---
_Source: https://npm.io/package/grunt-lib-contrib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
