Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
gulp-concat-filenames
Advanced tools
Similar to concat, but creates a file with a list of filenames,not file contents.
Package | gulp-concat-filenames |
Description | Similar to concat, but creates a list of names in the output file, rather than all the contents being merged. |
Node Version | >= 0.10 |
var concatFilenames = require('gulp-concat-filenames');
var concatFilenamesOptions = {
};
function fileManifest(){
gulp
.src('./lib/**/*.*')
.pipe(concatFilenames('manifest.txt', concatFilenamesOptions))
.pipe(gulp.dest('./output/'));
}
gulp.task('file-manifest', fileManifest);
###Arguments
Gulp concat-filenames takes 2 arguments: filename
and options
####Filename
This first argment is the name of the output file the list fo filenames will be put into. This is required.
#####Options
The second argument is optional, and is an object with the following properties:
newline
- The character to use in place of \n
for a newline. The default value will be \n
prepend
- Some text to prepend to every entry in the list of filenames
append
- Some text to append to every intry in the list of filenames
root
- the root folder. Including this argument will return a list of relative paths instead of absolute paths.
Given the file structure:
.
+-- somefile.txt
+-- lib
| +-- one.txt
| +-- two.txt
+-- gulpfile.js
var concatFilenames = require('gulp-concat-filenames');
var concatFilenamesOptions = {
root: '/lib',
prepend: '==> ',
append: ' <=='
};
function fileManifest(){
gulp
.src('./lib/**/*.*')
.pipe(concatFilenames('manifest.txt', concatFilenamesOptions))
.pipe(gulp.dest('./output/'));
}
gulp.task('file-manifest', fileManifest);
running gulp file-manifest
now produces a file called manifest.txt
with the contents
==> one.txt <==
==> two.txt <==
FAQs
Similar to concat, but creates a file with a list of filenames,not file contents.
The npm package gulp-concat-filenames receives a total of 4,664 weekly downloads. As such, gulp-concat-filenames popularity was classified as popular.
We found that gulp-concat-filenames 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.