
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
gulp-sitemap
Advanced tools
Generate a search engine friendly sitemap.xml using a Gulp stream
Easily generate a search engine friendly sitemap.xml from your project.
:bowtie: Search engines love the sitemap.xml and it helps SEO as well.
Install with npm
npm i -D gulp-sitemap
#or use the long and tiring version:
npm install --save-dev gulp-sitemap
var gulp = require('gulp');
var sitemap = require('gulp-sitemap');
gulp.task('sitemap', function () {
gulp.src('build/**/*.html', {
read: false
}).pipe(sitemap())
.pipe(gulp.dest('build/'));
});
{read:false}
on gulp.src
./
.var gulp = require('gulp');
var sitemap = require('gulp-sitemap');
gulp.task('sitemap', function () {
gulp.src('build/**/*.html', {
read: false
}).pipe(sitemap({
fileName: 'sitemap.xml',
newLine: '\n',
changeFreq: 'daily',
priority: '0.5',
siteUrl: '',
spacing: ' '
}))
.pipe(gulp.dest('build/'));
});
Determine the output filename for the sitemap. Default: sitemap.xml
.
What is your website's url. This gets prepended to all documents locations. Default: ``.
Gets filled inside the sitemap in the tag <changefreq>
. Default: daily
.
Gets filled inside the sitemap in the tag <priority>
. Default: 0.5
.
How to join line in the target sitemap file. Defaults to your system OS or \n
.
How should the sitemap xml file be spaced. You can use \t
for tabs, or
with 2
spaces if you'd like. Default:
(4 spaces).
To grunt-sitemap for the inspiration on writing this.
MIT ©2014 Gilad Peleg
FAQs
Generate a search engine friendly sitemap.xml using a Gulp stream
The npm package gulp-sitemap receives a total of 1,124 weekly downloads. As such, gulp-sitemap popularity was classified as popular.
We found that gulp-sitemap 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.