Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lichunqiang/gulp-stripbom
strip bom plugin for gulp
https://github.com/lichunqiang/gulp-stripbom
gulp gulp-stripbom javascript stripbom
Last synced: 2 months ago
JSON representation
strip bom plugin for gulp
- Host: GitHub
- URL: https://github.com/lichunqiang/gulp-stripbom
- Owner: lichunqiang
- Created: 2014-07-09T16:00:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T07:42:39.000Z (almost 2 years ago)
- Last Synced: 2024-08-30T20:46:25.662Z (5 months ago)
- Topics: gulp, gulp-stripbom, javascript, stripbom
- Language: JavaScript
- Homepage:
- Size: 361 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gulp-stripbom
------------------------[![Version][version]](https://npmjs.org/package/gulp-stripbom)
[![Dependency Status][deps]](https://david-dm.org/lichunqiang/gulp-stripbom)
[![Downloads][downloads]](https://npmjs.org/package/gulp-stripbom)[version]: http://img.shields.io/npm/v/gulp-stripbom.svg?style=flat
[deps]: http://img.shields.io/david/lichunqiang/gulp-stripbom.svg?style=flat
[downloads]: http://img.shields.io/npm/dm/gulp-stripbom.svg?style=flat> This is inspired by [strip-bom](https://github.com/sindresorhus/strip-bom) for gulp.
## Usage
```javascript
var stripBom = require('gulp-stripbom');gulp.task('default', function(){
return gulp.src('1.txt')
.pipe(stripBom())
.pipe(gulp.dest('dest'));
});
```## API
### stripBom(options)
### options.ext
Type: `String` or `Array`
Filter files by ext those to process.
### options.showLog
Type: `Boolean`
Default: `true`
If show log or not.
## Test
```sh
$ npm test
```## License
MIT