New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-includer

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-includer

A plugin for Gulp

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

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

gulp-includer

NPM version Build Status Dependency Status

Concatenate JavaScript files with Includer as a gulp plugin.

Usage

First, install gulp-includer as a development dependency:

npm install --save-dev gulp-includer

Then, add it to your gulpfile.js:

var includer = require("gulp-includer");

gulp.src("./js/app.js", { read:false })
	.pipe(includer(options))
	.pipe(gulp.dest("./dist"));

API

includer(options)

These options are passed directly to Includer's options argument.

options.separator

Type: String
Default: \n

The string to use to join files together.

options.wrap

Type: Function
Default: function (src) { return '(function(){' + src + '})()'; }

A function to optionally wrap each file in a closure.

options.debug

Type: Boolean|Function
Default: false

Sometimes included globs have no matches. Includer will skip these globs silently.

If the debug option is true, a notification will be logged to the console when globs have no matches.

If the debug option is a function, it will be called with the debug message as the only parameter.

includer({
	debug : function (message) {
		logs.push(message);
	}
});

License

MIT License

Keywords

FAQs

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

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