Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@galactiks/sitemap

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galactiks/sitemap - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

14

dist/index.js

@@ -1,2 +0,2 @@

import { SitemapStream, streamToPromise } from 'sitemap';
import { SitemapStream, streamToPromise, SitemapIndexStream, } from 'sitemap';
import { createWriteStream } from 'fs';

@@ -34,14 +34,6 @@ import { join } from 'path';

// Generate index sitemap
const indexSitemap = new SitemapStream({
hostname,
xmlns: {
news: true,
xhtml: true,
image: false,
video: false,
},
});
const indexSitemap = new SitemapIndexStream();
Object.entries(sitemaps).forEach(([type, stream]) => {
const sitemapPath = `/sitemap-${type.toLowerCase()}.xml`;
indexSitemap.write({ url: sitemapPath });
indexSitemap.write({ url: new URL(sitemapPath, hostname).toString() });
stream.pipe(createWriteStream(join(destinationDir, sitemapPath)));

@@ -48,0 +40,0 @@ });

{
"name": "@galactiks/sitemap",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple sitemap generator for Galactiks",

@@ -5,0 +5,0 @@ "author": "thegalactiks",

@@ -1,18 +0,20 @@

# @galactiks/config
# @galactiks/sitemap
This package allows reading [Galactiks](https://www.galactiks.com) configurations files and get config during website generation.
[![npm](https://img.shields.io/npm/v/@galactiks/sitemap)](https://www.npmjs.com/package/@galactiks/sitemap)
A simple and easy-to-use sitemap generator for [Galactiks](https://www.galactiks.com).
## Installation
Install the `@galactiks/config` package using your preferred package manager:
Install the `@galactiks/sitemap` package using your preferred package manager:
```sh
# npm
npm i @galactiks/config
npm i @galactiks/sitemap
# yarn
yarn add @galactiks/config
yarn add @galactiks/sitemap
# pnpm
pnpm i @galactiks/config
pnpm i @galactiks/sitemap
```

@@ -19,0 +21,0 @@

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