在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):joaomoreno/gulp-vinyl-zip开源软件地址(OpenSource Url):https://github.com/joaomoreno/gulp-vinyl-zip开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-vinyl-zipA library for creating and extracting ZIP archives from/to streams. UsageArchive → Archive var gulp = require('gulp');
var zip = require('gulp-vinyl-zip');
gulp.task('default', function () {
return zip.src('src.zip')
.pipe(/* knock yourself out */)
.pipe(zip.dest('out.zip'));
}); or var gulp = require('gulp');
var zip = require('gulp-vinyl-zip');
gulp.task('default', function () {
return gulp.src('src.zip')
.pipe(zip.src())
.pipe(/* knock yourself out */)
.pipe(zip.dest('out.zip'));
}); Archive → File System var gulp = require('gulp');
var zip = require('gulp-vinyl-zip');
gulp.task('default', function () {
return zip.src('src.zip')
.pipe(/* knock yourself out */)
.pipe(gulp.dest('out'));
}); File System → Archive var gulp = require('gulp');
var zip = require('gulp-vinyl-zip');
gulp.task('default', function () {
return gulp.src('src/**/*')
.pipe(/* knock yourself out */)
.pipe(zip.dest('out.zip'));
}); File System → Archive Stream → Disk var gulp = require('gulp');
var zip = require('gulp-vinyl-zip').zip; // zip transform only
gulp.task('default', function () {
return gulp.src('src/**/*')
.pipe(/* knock yourself out */)
.pipe(zip('out.zip'))
.pipe(/* knock your zip out */)
.pipe(gulp.dest('./'));
}); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论