Latest Supply Chain Attack:Mini Shai-Hulud Hits @antv npm Packages, 639 Versions Compromised.Learn More
Socket
Book a DemoSign in
Socket

site-index

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

site-index

CLI for generating sitemap and robots.txt artifacts from site-index modules.

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

site-index

CLI for creating site-index modules and generating/checking sitemap and robots.txt artifacts.

npm version Code Quality Code Coverage Socket

Repository README

Install

npm install -D site-index

Requirements:

  • Node.js >=22

When to use

Use site-index when you want command-line workflows for:

  • scaffolding *.site-index.* modules
  • generating sitemap and robots.txt artifacts
  • validating site-index modules in CI

When not to use

Global options

  • --quiet: suppress informational output
  • --verbose: enable verbose logging

Commands

make

site-index make <filePath> [--format <format>] [--force]

Behavior:

  • creates a new site-index module template
  • supports --format ts
  • supports --format esm
  • defaults format to ts
  • refuses to overwrite existing files unless --force is used
  • normalizes output filenames to:
    • <name>.site-index.ts
    • <name>.site-index.mjs

build

site-index build --site-url <url> [--root <path>] [--out <dir>] [--config <path>]

Behavior:

  • generates site-index artifacts
  • writes artifacts to --out (default: dist)
  • requires --site-url
  • validates --site-url as a valid URL
  • validates --out resolves within --root
  • uses Vite config when --config is provided
  • --root defaults to current working directory
  • --config must resolve within --root

check

site-index check --site-url <url> [--root <path>] [--config <path>]

Behavior:

  • validates discovered site-index modules for CI
  • requires --site-url
  • fails when warnings are produced
  • uses Vite config when --config is provided
  • --root defaults to current working directory
  • --config must resolve within --root

Examples

npx site-index make src/pages.site-index.ts --format ts
npx site-index make src/pages.site-index.mjs --format esm
npx site-index build --site-url https://example.com
npx site-index check --site-url https://example.com

Local monorepo development:

npm run cli -- build --site-url https://example.com

How it fits in the monorepo

site-index is the user-facing CLI package built on:

Keywords

site-index

FAQs

Package last updated on 15 May 2026

Did you know?

Socket

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.

Install

Related posts