Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhw2590582/babel-plugin-island
A island plugin for Babel
https://github.com/zhw2590582/babel-plugin-island
babel island plugin
Last synced: about 2 months ago
JSON representation
A island plugin for Babel
- Host: GitHub
- URL: https://github.com/zhw2590582/babel-plugin-island
- Owner: zhw2590582
- License: mit
- Created: 2018-01-08T02:21:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T02:01:37.000Z (about 7 years ago)
- Last Synced: 2024-10-13T23:25:19.839Z (3 months ago)
- Topics: babel, island, plugin
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-plugin-island [![Build Status](https://www.travis-ci.org/zhw2590582/island-webpack-plugin.svg?branch=master)](https://www.travis-ci.org/zhw2590582/island-webpack-plugin) [![Coverage Status](https://coveralls.io/repos/github/zhw2590582/babel-plugin-island/badge.svg?branch=master)](https://coveralls.io/github/zhw2590582/babel-plugin-island?branch=master)
> A island plugin for Babel (目前测试用于文件头部输出作者信息)
## Install
```
$ npm i --save-dev babel-plugin-island
```## Usage
### Via .babelrc (Recommended)
```js
{
"plugins": [
[
"island",
{
"author": "Harvey Zack",
"email": "[email protected]",
"homepage": "http://www.zhw-island.com"
}
]
];
}
```### Via Node API
```js
require('babel-core').transform('code', {
plugins: [
[
'island',
{
author: 'Harvey Zack',
email: '[email protected]',
homepage: 'http://www.zhw-island.com'
}
]
]
});
```## Related
* [babel-types](https://github.com/babel/babel/tree/master/packages/babel-types)
## License
MIT © [Harvey Zack](https://www.zhw-island.com/)