Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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:
var 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".prependText(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.
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 News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.