# rollup-plugin-header

> Rollup plugin to append content before or after js bundle

Latest version **1.0.0** (published 2023-09-09) · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-header
pnpm add rollup-plugin-header
yarn add rollup-plugin-header
bun add rollup-plugin-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.0.0 |
| Published | 2023-09-09 |
| First published | 2023-09-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | fh76 |
| Keywords | rollup, rollup-plugin, banner, header, footer, license |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-header
- Repository: https://github.com/tinysets/rollup-plugin-header
- Issues: https://github.com/tinysets/rollup-plugin-header/issues
- npm.io page: https://npm.io/package/rollup-plugin-header

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-09-09
- 0.0.2 — 2023-09-09
- 0.0.1 — 2023-09-09

## README

[npm-image]: https://img.shields.io/npm/v/rollup-plugin-header.svg
[npm-url]: https://github.com/tinysets/rollup-plugin-header

[npm-package-image]: https://github.com/tinysets/rollup-plugin-header/actions/workflows/npm-publish.yml/badge.svg
[npm-package-url]: https://github.com/tinysets/rollup-plugin-header/actions/workflows/npm-publish.yml

[rollup-plugin-banner]: https://github.com/yingye/rollup-plugin-banner

# rollup-plugin-header

[![Node.js Package][npm-package-image]][npm-package-url]
[![npm version][npm-image]][npm-url]

from [rollup-plugin-banner][rollup-plugin-banner]

## Introduction

Rollup plugin to append content before or after js bundle.

## Usage

Install the plugin with NPM:

```
npm install --save-dev rollup-plugin-header
```

Add it to your rollup configuration:

```js
import { header } from 'rollup-plugin-header'

export default {
  plugins: [
    header({ 'header': '#!/usr/bin/env node\n' ,footer:'\nsomefooter'})
  ]
}
```

Input:

```
header({ 'header': '#!/usr/bin/env node\n' ,footer:'\nsomefooter'})
```

Output:

```
#!/usr/bin/env node
...code...
somefooter
```

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