New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-es6-node-module

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-es6-node-module

A gulp wrapper for the es6-node-module library, intended to support es6-es5 builds.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Gulp ES6 Node Module

Overview

A gulp wrapper for the es6-node-module library, intended to support es6-es5 builds.

Usage

Install:

npm install gulp-es6-node-module

Basic usage:

gulp.task('compileES5', function(){
  return gulp.src('lib/**/*.js')
    .pipe(nodePackage())
    .pipe(getDependencies({
      includeSeed: true
    }))
    .pipe(toCJS())
    .pipe(gulp.dest('dist/es5'));
});

Other options for the getDependencies function include shallow (defaults to false) which specifies whether to perform shallow dependency resolution or deep/recursive (default).

The nodePackage function has a single option packageDir (defaults to process.cwd()).

Keywords

node

FAQs

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