Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
gulp-footer
Advanced tools
The canonical location of this project is now gulp-community/gulp-footer.
gulp-footer is a Gulp extension to add a footer to file(s) in the pipeline. Gulp is a streaming build system utilizing node.js.
var footer = require('gulp-footer');
Type: String
Default: ''
The template text.
Type: Object
Default: {}
The data object used to populate the text.
var footer = require('gulp-footer');
gulp.src('./foo/*.js')
.pipe(footer('Hello'))
.pipe(gulp.dest('./dist/')
gulp.src('./foo/*.js')
.pipe(footer('Hello <%= name %>\n', { name : 'World'} ))
.pipe(gulp.dest('./dist/')
gulp.src('./foo/*.js')
.pipe(footer('Hello ${name}\n', { name : 'World'} ))
.pipe(gulp.dest('./dist/')
//
var pkg = require('./package.json');
var banner = ['/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v<%= pkg.version %>',
' * @link <%= pkg.homepage %>',
' * @license <%= pkg.license %>',
' */',
''].join('\n');
//passing in the text
gulp.src('./foo/*.js')
.pipe(footer(banner, { pkg : pkg } ))
.pipe(gulp.dest('./dist/')
//reading from a file for the text
var bannerText = fs.readFileSync('banner.js');
/*********************************************/
//If you want the text from a file...
var fs = require('fs');
var banner = fs.readFileSync('banner.txt');
FAQs
Gulp extension to add footer to file(s) in the pipeline.
We found that gulp-footer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.