Socket
Socket
Sign inDemoInstall

gulp-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sitemap - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

.npmignore

3

package.json
{
"name": "gulp-sitemap",
"version": "0.1.6",
"version": "0.2.0",
"description": "Generate a search engine friendly sitemap.xml using a Gulp stream",

@@ -20,2 +20,3 @@ "license": "MIT",

"scripts": {
"watchTest": "mocha -R spec --watch test/test.js",
"test": "mocha test/test.js"

@@ -22,0 +23,0 @@ },

@@ -33,3 +33,5 @@ # [gulp](https://github.com/wearefractal/gulp)-sitemap

read: false
}).pipe(sitemap())
}).pipe(sitemap({
siteUrl: 'http://www.amazon.com'
}))
.pipe(gulp.dest('build/'));

@@ -39,5 +41,5 @@ });

* File content isn't necessary when reading files - so to speed up building - use the `{read:false}` on `gulp.src`.
* index.html will be turned into directory path `/`.
* 404.html will be skipped automatically. No need to unglob it.
* File content isn't necessary when reading files - so to speed up building - use `{read:false}` on `gulp.src`.
* *index.html* will be turned into directory path `/`.
* *404.html* will be skipped automatically. No need to unglob it.

@@ -57,3 +59,3 @@ ## Example with all options and their defaults

priority: '0.5',
siteUrl: '',
siteUrl: 'http://www.amazon.com',
spacing: ' '

@@ -67,26 +69,39 @@ }))

### siteUrl
**required**
Your website's base url. This gets prepended to all documents locations.
### fileName
Determine the output filename for the sitemap. Default: `sitemap.xml`.
Default: `sitemap.xml`
### siteUrl
Determine the output filename for the sitemap.
What is your website's url. This gets prepended to all documents locations. Default: ``.
### changeFreq
Gets filled inside the sitemap in the tag `<changefreq>`. Default: `daily`.
Default: `daily`
Gets filled inside the sitemap in the tag `<changefreq>`.
### priority
Gets filled inside the sitemap in the tag `<priority>`. Default: `0.5`.
Default: `0.5`
Gets filled inside the sitemap in the tag `<priority>`.
### newLine
How to join line in the target sitemap file. Defaults to your system OS or `\n`.
Default: Your OS's new line, mostly: `\n`
How to join line in the target sitemap file.
### spacing
Default: ' '
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).
spaces if you'd like.

@@ -93,0 +108,0 @@ ## Thanks

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc