Socket
Book a DemoInstallSign in
Socket

gulp-aliyun-oss

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-aliyun-oss

一个阿里云上传文件的gulp插件

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
15
50%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-aliyun-oss

一个阿里云上传文件的gulp插件

参考https://github.com/wefound/gulp-alioss

使用'ali-oss'库上传的文件会自动修改文件的'Content-Type'

安装

npm install gulp-aliyun-oss

示例

var gulp = require('gulp');
var oss = require('gulp-aliyun-oss');
gulp.task('oss', function(cb){
    var options = {
        accessKeyId: your-accessKeyId,
        accessKeySecret: your-accessKeySecret,
        region: your-region,
        bucket: your-bucket,
        prefix: your-prefix,
        ossOpt: {
            headers: {
              'Cache-Control': 'no-cache'
            }
        }
    };
    
    return gulp.src('*.js').pipe(oss(options));
})

Keywords

oss

FAQs

Package last updated on 19 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.