Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-oss-publish

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-oss-publish

pulish files to oss

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-oss-publish

Publish files with oss

    1. Can publish files with prefix and shortId
    1. Simple
    1. Usable

When genShortId enabled: oss key will be ${prefix}/${shortId}/${filePath}

otherwise oss key should like this ${prefix}/${filePath}

Install

npm install gulp-oss-publish

Use

import publish from 'gulp-oss-publish';

gulp.task('publish', () => 
  gulp
    .src('dist/**/*', {
      base: 'dist',
      buffer: true
    })
    .pipe(publish({
      prefix: 'a/puca-web',
      genShortId: true,
      oss: {
        accessKeyId: 'xxx',
        secretAccessKey: 'yyy',
        endpoint: 'http://oss-cn-hangzhou.aliyuncs.com',
        bucket: 'your-bucket-name'
      },
      headers: {
        CacheControl: 'no-cache',
        ServerSideEncryption: 'AES256'
      }
    }))
);

Keywords

FAQs

Package last updated on 13 May 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc