在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):geejs/gulp-tap开源软件地址(OpenSource Url):https://github.com/geejs/gulp-tap开源编程语言(OpenSource Language):CoffeeScript 97.4%开源软件介绍(OpenSource Introduction):gulp-tapEasily tap into a pipeline. Install
UsesSome filters like gulp.src("src/**/*.{coffee,js}")
.pipe(tap(function(file, t) {
if (path.extname(file.path) === '.coffee') {
return t.through(coffee, []);
}
}))
.pipe(gulp.dest('build')); What if you want to change content like add a header? No need for a separate filter, just change the content. tap(function(file) {
file.contents = Buffer.concat([
new Buffer('HEADER'),
file.contents
]);
}); If you do not return a stream, tap forwards your changes. ExamplesSee Wiki for more examples. LicenseThe MIT License (MIT) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论