
Security News
Socket Named a Supply Chain Innovator in Latio's 2026 Application Security Market Report
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.
gulp-wrap-function
Advanced tools
#gulp-wrap-function
Gulp plugin for wrapping your customize function and process your file content directly.
##Installation
% npm install gulp-wrap-function
##Usage
Example 1: replace all newlines.
var wrap = require("gulp-wrap-function");
gulp.src("file.html")
.pipe(wrap(function(file) {
return file.replace('\n', '');
}))
.pipe(gulp.dest("dist"));
Example 2: split and remain second one.
var wrap = require("gulp-wrap-function");
gulp.src("file.html")
.pipe(wrap(function(file) {
return file.split('\n')[1];
}))
.pipe(gulp.dest("dist"));
##License
MIT
FAQs
gulp plugin for wrapping your customize function
The npm package gulp-wrap-function receives a total of 22 weekly downloads. As such, gulp-wrap-function popularity was classified as not popular.
We found that gulp-wrap-function demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.