🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

gulp-document-write

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-document-write

Merge script file by document.write

0.0.5
latest
npm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

gulp-document-write

Merge script files by document.write use gulp.

Features

  • Support javascript comment.
  • Support nested document.write. Process recursively.

Usage

see example gulpfile

var gulp = require('gulp'),
    documentWrite = require('gulp-document-write');

gulp.task('default', function() {
    gulp.src('./web/**/*.js')
        .pipe(documentWrite({
            context: './web', // Specify webroot if document.write absolute path. Default: process.cwd()
            relativeTo: './web' // Specify relative to which path. Default: the file.path
        }))
        .pipe(gulp.dest('./build'));
});

FAQs

Package last updated on 21 Jan 2015

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