Socket
Socket
Sign inDemoInstall

gulp-azure-storage

Package Overview
Dependencies
157
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-azure-storage

Gulp plugin to download and upload files to/from the Azure blob storage


Version published
Weekly downloads
3.7K
decreased by-11.94%
Maintainers
6
Install size
17.3 MB
Created
Weekly downloads
 

Readme

Source

gulp-azure-storage

Gulp plugin to download and upload files to/from the Azure blob storage.

Installation

npm install gulp-azure-storage

Usage

Upload

Simply pipe in a gulp stream:

gulp.task(['default'], function() { 
  return gulp.src('bin/**')
    .pipe(azure.upload({
    	account:    ACCOUNT_NAME,
    	key:        ACCOUNT_KEY,
    	container:  CONTAINER_NAME
    }));
});

Download

Simply use it as a gulp source stream:

var gulp = require('gulp');
var azure = require('gulp-azure-storage');

gulp.task(['default'], function() {
  return azure.download({
  	account:    ACCOUNT_NAME,
  	key:        ACCOUNT_KEY,
  	container:  CONTAINER_NAME
  }).pipe(gulp.dest('out'));
});

CLI

There's a script included with the module that allows you to upload some files to an azure container:

$ upload-to-azure \
  --account ACCOUNT_NAME \
  --key ACCOUNT_KEY \
  --container CONTAINER_NAME \
  file1.txt \
  file2.txt

Options

Mandatory:

  • account
  • container

Optional:

  • key - container will be accessed anonymously, if missing
  • prefix - blob name prefix
  • quiet - shhh
  • buffer - boolean for whether to buffer the blobs or stream them (only for download)

Keywords

FAQs

Last updated on 20 Nov 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc