Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-download-electron with all npm packages installed. Try it out:

var gulpDownloadElectron = require("gulp-download-electron")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-download-electron v0.0.5

gulp plugin to download electron

gulp-download-electron

Download electron binary distribution

Port from grunt-download-electron

Installation

Install gulp plugin package:

npm install --save-dev gulp-download-electron

Usage

Options

  • version - Required The version of electron you want to download.
  • outputDir - Required Where to put the downloaded electron.
  • downloadDir - Where to find and save cached downloaded electron.
  • symbols - Download debugging symbols instead of binaries, default to false.
  • rebuild - Whether to rebuild native modules after electron is downloaded.
  • apm - The path to apm.

Example

gulpfile.js

var gulp = require('gulp');
var downloadelectron = require('gulp-download-electron');

gulp.task('downloadelectron', function(cb){
    downloadelectron({
      version: '0.24',
      outputDir: 'binaries'
    }, cb);
});

gulp.task('default', ['downloadelectron']);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free