https://github.com/knorpelsenf/sitemap-cli
Deno CLI to create a sitemap from build output
https://github.com/knorpelsenf/sitemap-cli
cli generation sitemap
Last synced: about 1 year ago
JSON representation
Deno CLI to create a sitemap from build output
- Host: GitHub
- URL: https://github.com/knorpelsenf/sitemap-cli
- Owner: KnorpelSenf
- License: mit
- Created: 2023-02-13T15:04:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T23:05:50.000Z (over 2 years ago)
- Last Synced: 2025-04-28T14:55:00.731Z (about 1 year ago)
- Topics: cli, generation, sitemap
- Language: TypeScript
- Homepage: https://deno.land/x/sitemap
- Size: 41 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sitemap CLI
Deno CLI to create a sitemap from build output.
## Usage
Usage: `deno run https://deno.land/x/sitemap/cli.ts [args]`
Deno CLI to generate a XML sitemap from a local directory.
Options:
```sh
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-b, --basename - Base URL (required)
-r, --root - Root working directory (Default: ".")
-o, --out - Output file, or - for standard out
-m, --match - Glob patterns to match (Default: "**/*.html")
-i, --ignore - Glob patterns to ignore (Default: "404.html")
--clean - Strip HTML file extensions
```
Works well together with
[`deno install`](https://deno.land/manual/tools/script_installer).
## Contributions
All contributions are welcome!
Install [Deno](https://deno.land).
### Formatting
```sh
deno fmt
```
### Linting
```sh
deno lint
```
### Typechecks
```sh
deno check *.ts
```
## Credits
- for inspiration.
- for the initial implementation.