
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
gulp-header-license
Advanced tools
License plugin for Gulp. gulp-header-license is a Gulp extension to add a header license to file(s) in the pipeline.
npm install gulp-header-license --save-dev
Something like this will add license to your file(s):
var gulp = require("gulp");
var license = require('gulp-header-license');
gulp.task('license', function () {
var year = (new Date()).getFullYear();
gulp.src('./assets/**/*.js')
.pipe(license('Copyright (c) ${year}, B3log.org', {year: year}))
.pipe(gulp.dest('./public/'));
});
You can also use header.txt, doing something like this:
'use strict';
var gulp = require("gulp");
var license = require('gulp-header-license');
var fs = require('fs');
gulp.task('license', function () {
var year = (new Date()).getFullYear();
gulp.src('./assets/**/*.js')
.pipe(license(fs.readFileSync('header.txt', 'utf8'), {year: year}, 0.9))
.pipe(gulp.dest('./public/'));
});
license:String
The license template string.
config:JSON
The JSON object used to populate the license template.
rate:Float, default value is 0.8.
Less then this rate, add license, otherwise update license.
FAQs
Gulp extension to add license to file(s) in the pipeline.
The npm package gulp-header-license receives a total of 205 weekly downloads. As such, gulp-header-license popularity was classified as not popular.
We found that gulp-header-license 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.