Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/comandeer/babel-plugin-banner
- Owner: Comandeer
- License: mit
- Created: 2016-12-25T21:58:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T21:23:45.000Z (over 2 years ago)
- Last Synced: 2024-10-04T10:47:58.041Z (about 1 month ago)
- Topics: babel-plugin, banner-comment
- Language: JavaScript
- Homepage:
- Size: 390 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.