# grunt-header

> Add a header to files

Latest version **1.1.0** (published 2016-04-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-04-06 |
| First published | 2014-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | gruntplugin, header, head, prepend, text, banner, concat |

## Links

- npm: https://www.npmjs.com/package/grunt-header
- Repository: https://github.com/sindresorhus/grunt-header
- Homepage: https://github.com/sindresorhus/grunt-header#readme
- Issues: https://github.com/sindresorhus/grunt-header/issues
- npm.io page: https://npm.io/package/grunt-header

## Dependencies (1)

- [detect-newline](https://npm.io/package/detect-newline.md) ^2.1.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-04-06
- 1.0.1 — 2016-02-17
- 1.0.0 — 2014-08-14
- 0.1.1 — 2014-07-08
- 0.1.0 — 2014-07-08

## README

# grunt-header [![Build Status](https://travis-ci.org/sindresorhus/grunt-header.svg?branch=master)](https://travis-ci.org/sindresorhus/grunt-header)

> Add a header to files


## Install

```
$ npm install --save-dev grunt-header
```


## Usage

```js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	info: 'header text',
	header: {
		dist: {
			options: {
				text: '<%= info %>'
			},
			files: {
				'dist/main.js': 'src/main.js'
			}
		}
	}
});

grunt.registerTask('default', ['header']);
```


## Options

### text

Type: `string`

Text to be prepended to files.


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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