Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
oss plugin for gulp
First, install gulp-oss
as a development dependency:
npm install --save-dev gulp-oss
var gulp = require("gulp");
var oss = require("gulp-oss");
var gzip = require("gulp-gzip");
gulp.src('./**/*.js')
.pipe(gzip({ append: false }))
.pipe(oss({
"key": "oss key",
"secret": "oss secret",
"endpoint": "http://oss-cn-beijing.aliyuncs.com"
}, {
headers: {
Bucket: 'oss bucket',
CacheControl: 'no-cache', // 参考: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
ContentDisposition: '', // 参考: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1
ContentEncoding: 'gzip', // 参考: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
ServerSideEncryption: '',
Expires: ''
},
uploadPath: 'assets/js/'
}));
FAQs
A plugin for Gulp that uploads files to oss
We found that gulp-oss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.