![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 151 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.