# bit-bundler-banner

> Add a banner to your bundles

Latest version **1.1.0** (published 2018-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install bit-bundler-banner
pnpm add bit-bundler-banner
yarn add bit-bundler-banner
bun add bit-bundler-banner
```

## 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 | 2018-01-13 |
| First published | 2016-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Miguel Castillo |
| Maintainers | manchagnu |
| Keywords | bundler, banner |

## Links

- npm: https://www.npmjs.com/package/bit-bundler-banner
- Repository: https://github.com/MiguelCastillo/bit-bundler-banner
- Homepage: https://github.com/MiguelCastillo/bit-bundler-banner#readme
- Issues: https://github.com/MiguelCastillo/bit-bundler-banner/issues
- npm.io page: https://npm.io/package/bit-bundler-banner

## Dependencies (1)

- [combine-source-map](https://npm.io/package/combine-source-map.md) ^0.8.0

## 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.1.0 (latest) — 2018-01-13
- 1.0.1 — 2018-01-13
- 1.0.0 — 2016-11-18

## README

# bit-bundler-banner

[![Greenkeeper badge](https://badges.greenkeeper.io/MiguelCastillo/bit-bundler-banner.svg)](https://greenkeeper.io/)

Add a banner to your bundles

# Usage

## install
```
$ npm install --save-dev bit-bundler-banner
```

## config

Simple setup passing the string to be added to the bundle to the top.

``` javascript
var Bitbundler = require("bit-bundler");

var bitbundler = new Bitbundler({
  bundler: [
    ["bit-bundler-banner", "/*! bit-bundler-banner. Miguel Castillo. Licensed under MIT */"]
  ]
});
```

You can altenatively pass a function that returns a string to be used as the banner string.

``` javascript
var Bitbundler = require("bit-bundler");

var bitbundler = new Bitbundler({
  bundler: [
    ["bit-bundler-banner", (bundle) => `/*! bit-bundler-banner ${bundle.name}. Miguel Castillo. Licensed under MIT */`]
  ]
});
```

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