# grunt-combine

> Token based search and replace functionality for grunt.

Latest version **0.8.3** (published 2013-02-18) · 0 weekly downloads

## Install

```sh
npm install grunt-combine
pnpm add grunt-combine
yarn add grunt-combine
bun add grunt-combine
```

Provides the command `grunt-combine`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.3 |
| Published | 2013-02-18 |
| First published | 2013-01-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Eric McGary |
| Maintainers | mcgaryes |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-combine
- Repository: https://github.com/mcgaryes/grunt-combine
- Issues: https://github.com/mcgaryes/grunt-combine/issues
- npm.io page: https://npm.io/package/grunt-combine

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) 1.4.x

## Recent versions

- 0.8.3 (latest) — 2013-02-18
- 0.8.2 — 2013-02-13
- 0.8.1 — 2013-01-28
- 0.8.0 — 2013-01-19
- 0.7.2 — 2013-01-13
- 0.7.1 — 2013-01-12
- 0.7.0 — 2013-01-12

## README

# grunt-combine

Token based search and replace functionality for [grunt](https://github.com/gruntjs/grunt/).

### Install

	$ npm install grunt-combine [-g]

### Use

	grunt.config({
		combine:{
			single:{
				input:"./input.js",
				output:"./output.js",
				tokens:[{
					token:"$1",
					file:"./file.js"
				},{
					token:"%2",
					string:"replacement string"
				},{
					token:"!3",
					file:"./file.txt"
				}]
			},
			multiple:{
				input:["./input1.js", "./input2.js"],
				output:"output/",
				tokens:[{
					token:"$1",
					file:"./file.js"
				}]
			}
		}
	});

	grunt.loadNpmTask("grunt-combine");

	grunt.registerTask("default",["combine:single", "combine:multiple"]);

### Options

* `input`  - *{ String/Array }* Single file or Array of files containing the referenced tokens.
* `output` - *{ String }* The file or directory (if dealing with multiple inputs) that the task will output after completing.
* `tokens` - *{ Array }* Tokens to search for and replace with either a string or a file's contents.
	* `token`  - *{ String }* The string that will be searched for in the file.
	* `file`   - *{ String }* The file thats contents will replace the `token`
	* `string` - *{ String }* The string that will replace the `token`

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