
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gulp-oss-upload
Advanced tools
A gulp plugin for uploading static file to aliyun oss(by official ali-oss sdk).
A gulp plugin for uploading static file to aliyun oss(by official ali-oss sdk).
上传文件到阿里云 OSS 的 gulp 插件.
npm install gulp-oss-upload --save-dev
var gulp = require('gulp');
var ossUpload = require('gulp-oss-upload');
gulp.task('publish-oss', function() {
return gulp.src("./app.js")
.pipe(ossUpload({
accessKeyId: 'your accessKeyId',
accessKeySecret: 'your accessKeySecret',
bucket: 'your bucket name',
rootDir: 'v1' // upload file root directory in the bucket(optional)
}));
});
This config will upload your current directory file app.js to v1/app.js in your bucket.
default: ''; //root directory
/**
* custom object name
*
* @param objectName {string} default generate objectName
* @param rootDir {string} options.rootDir
* @param fileRelative {string} the file path relative to cwd path
*
* @return {string}
*/
function(objectName, rootDir, fileRelative){
return ''
}
功能完全正常, 满足了我的需求(感谢作者), 但使用过程中发现 OSS SDK 不是阿里云官方的 SDK. objectDir 配置项也有点 bug, 因此自己参考着重写了一个.
FAQs
A gulp plugin for uploading static file to aliyun oss(by official ali-oss sdk).
We found that gulp-oss-upload 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.