
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
gulp-append-prepend
Advanced tools
Simple Gulp plugin.
First, install gulp-append-prepend as a development dependency:
npm install gulp-append-prepend --save-dev
Then, add it to your gulpfile.js:
const gap = require('gulp-append-prepend');
gulp.task('myawesometask', function(){
gulp.src('index.html')
.pipe(gap.prependFile('header.html'))
.pipe(gap.prependText('<!-- HEADER -->'))
.pipe(gap.appendText('<!-- FOOTER -->'))
.pipe(gap.appendFile('footer.html'))
.pipe(gulp.dest('www/'));
});
This example works with html but you can use any type of file.
appendFile(filepath, separator)
The filepath can be an array. The separator is optional by default is "\n".prependFile(filepath, separator)
The filepath can be an array. The separator is optional by default is "\n".appendText(text, separator)
The text can be an array. The separator is optional by default is "\n".prependText(text, separator)
The text can be an array. The separator is optional by default is "\n".This plugin is released under the MIT licence.
I am sorry for my poor English. Feel free to make changes in this README.
FAQs
Simple Gulp plugin to append/prepend.
The npm package gulp-append-prepend receives a total of 14,904 weekly downloads. As such, gulp-append-prepend popularity was classified as popular.
We found that gulp-append-prepend 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.