Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/comandeer/babel-plugin-banner

Simple Babel plugin to prepend comment to the beginning of transformed code.
https://github.com/comandeer/babel-plugin-banner

babel-plugin banner-comment

Last synced: 24 days ago
JSON representation

Simple Babel plugin to prepend comment to the beginning of transformed code.

Awesome Lists containing this project

README

        

# @comandeer/babel-plugin-banner

![Build Status](https://github.com/Comandeer/babel-plugin-banner/workflows/CI/badge.svg) [![Dependency Status](https://david-dm.org/Comandeer/babel-plugin-banner.svg)](https://david-dm.org/Comandeer/babel-plugin-banner) [![devDependency Status](https://david-dm.org/Comandeer/babel-plugin-banner/dev-status.svg)](https://david-dm.org/Comandeer/babel-plugin-banner#info=devDependencies) [![npm (scoped)](https://img.shields.io/npm/v/@comandeer/babel-plugin-banner.svg)](https://www.npmjs.com/package/@comandeer/babel-plugin-banner) [![Greenkeeper badge](https://badges.greenkeeper.io/Comandeer/babel-plugin-banner.svg)](https://greenkeeper.io/)

Prepends given comment to the beginning of babelified code.

## Installation

```bash
npm install @comandeer/babel-plugin-banner [--save-dev]
```

## Usage

```javascript
{
"presets": ["es2015"],
"plugins": [
["@comandeer/babel-plugin-banner", {
"banner": "/*! Some nice comment */"
}]
]
}
```

Available options:
* `banner`: content of the banner comment; must be a valid JS comment.

## License

See [LICENSE](./LICENSE) file for details.