New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-oss

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-oss

A plugin for Gulp that uploads files to oss

0.1.1
latest
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gulp-oss

oss plugin for gulp

Usage

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/'
  }));

Keywords

gulpplugin

FAQs

Package last updated on 25 Dec 2014

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