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

gulp-awspublish-headers

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-awspublish-headers

Define per-file headers for gulp-awspublish.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-awspublish-headers

A plugin for defining per-file headers for gulp-awspublish.

Usage

const awsheaders = require('gulp-awspublish-headers');

gulp.task('publish', function() {
	const publisher = awspublish.create(/*...*/);

	return gulp.src('./public/**/*')
		.pipe(awsheaders({
			'path/to/**/*': {
				'Cache-Control': 'public, max-age=604800',
				'x-amz-meta-foo': 'bar',
			},
		}))
		.pipe(publisher.publish());
});

Files may match multiple paths in which case the headers will be merged with the later defined headers taking prescedence.

Installation

This is a Node.js module available through the npm registry. It can be installed using the npm or yarn command line tools.

npm install gulp-awspublish-headers --save

Dependencies

  • minimatch: a glob matcher in javascript
  • through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

License

BSD-3-Clause

Keywords

FAQs

Package last updated on 29 Jan 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

  • 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