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

gulp-concat-script

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-concat-script

Parses js files, finds `document.write('<script src='*.js'></script>')` directive and includes these files.

  • 1.0.0
  • Source
  • npm
  • Socket score

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

gulp-concat-script

Parses js files, finds document.write('<script src="*.js"></script>') directive and includes these files.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-concat-script

Usage

var gulp = require('gulp'),
    concatScript = require('gulp-concat-script');

gulp.task("scripts", function() {
	gulp.src("js/config.js")
		.pipe(concatScript())
		.pipe(gulp.dest("dist/js/"));
}); 

config.js:

document.write('<script src="libs/jquery.js"></script>');
document.write('<script src="libs/bootstrap.js"></script>');
document.write('<script src="js/app.js"></script>');

Know issues

  1. Cannot process minified files
  2. Cannot process urls

License

The MIT Lincense

Keywords

FAQs

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