New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generate-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-sitemap - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

index.js

@@ -8,3 +8,3 @@ var fs = require('fs');

pagePath: 'templates',
indexDest: 'static-html'
dest: 'static-html'
}

@@ -15,3 +15,3 @@

var linksHTML = '';
var indexHTML = '';
var resultsHTML = '';

@@ -34,3 +34,3 @@ fs.readdir(options.base, function(err, items) {

indexHTML =
resultsHTML =
`<!DOCTYPE html>

@@ -125,3 +125,3 @@ <html lang="en">

fs.mkdir(options.indexDest, {
fs.mkdir(options.dest, {
recursive: true

@@ -131,3 +131,3 @@ }, (err) => {

fs.writeFile(options.indexDest + '/index.html', indexHTML, function(err) {
fs.writeFile(options.dest + '/index.html', resultsHTML, function(err) {
if (err) throw err;

@@ -134,0 +134,0 @@ });

{
"name": "generate-sitemap",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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