sitemap-generator
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "sitemap-generator", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Creates an XML-Sitemap by crawling a given site.", | ||
@@ -40,4 +40,4 @@ "homepage": "https://github.com/lgraubner/node-sitemap-generator", | ||
"scripts": { | ||
"test": "mocha test" | ||
"test": "mocha test" | ||
} | ||
} |
@@ -20,2 +20,6 @@ # Node Sitemap Generator | ||
The crawler will fetch all sites matching folder URLs and certain file extensions. You can include files with `-i ext` or ignore files with `-e ext`. Most of the common file types are already black listed. File types parsed by Google are not black listed. | ||
**Note**: Omit the URL protocol, the crawler will detect the right one. | ||
### Options | ||
@@ -22,0 +26,0 @@ ```BASH |
@@ -74,3 +74,3 @@ #!/usr/bin/env node | ||
c.on("complete", function() { | ||
if (chunk.length === 0) { | ||
if (_.isEmpty(chunk)) { | ||
console.error(chalk.red.bold("Error: Site '" + program.args[0] + "' could not be found.")); | ||
@@ -77,0 +77,0 @@ process.exit(1); |
8252
41