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

static-sitemap-cli

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-sitemap-cli - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "static-sitemap-cli",
"description": "Simple CLI to pre-generate XML sitemaps for static sites locally.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Jason Lee <jason@zerodevx.com>",

@@ -6,0 +6,0 @@ "bin": {

@@ -50,3 +50,3 @@ ![npm](https://img.shields.io/npm/v/static-sitemap-cli)

| -h | --help | show CLI help |
| -v | --version | show CLI version |
| -V | --version | show CLI version |
| -r | --root | [default: current dir] root directory to start from |

@@ -92,11 +92,11 @@ | -m | --match | [default: **/*.html,!404.html] list of globs to match |

The `-p` and `-c` flags allow multiple entries and accept `glob-*` pairs as input. A `glob-*` pair is basically
`<glob-pattern>=<value>`, where `=` separates the two. For example, a glob-frequency pair should be input as
The `-p` and `-c` flags allow multiple entries and accept `glob-*` pairs as input. A `glob-*` pair is input as
`<glob-pattern>=<value>`, where `=` is used as the separator. For example, a glob-frequency pair should be input as
`events/**/*.html=daily`.
Entries input later will override the earlier ones. So for example in this,
Latter entries will override the former. So for example in
`sscli https://example.com -f '**/*=weekly' -f 'events/**=daily'`
all page entries will contain `<changefreq>weekly</changefreq>` while pages that match `event/**` will contain
all URL entries will contain `<changefreq>weekly</changefreq>` while pages that match `event/**` will contain
`<changefreq>daily</changefreq>`.

@@ -107,5 +107,5 @@

Sitemaps can be generated in a simple [text file](https://support.google.com/webmasters/answer/183668?hl=en) format as well,
Sitemaps can be formatted as a simple [text file](https://support.google.com/webmasters/answer/183668?hl=en) as well,
where each line contains exactly one URL. Pass the option `-t` to do so. In this case, `--priority` and `--changefreq`
are redundant.
are redundant and ignored.

@@ -160,4 +160,7 @@

**v1.0.1** - 2019-08-16:
* Bugfix - empty line at EOF in text mode.
**v1.0.0** - 2019-08-15:
* **BREAKING:** `--ignore` is deprecated. Use `--matches` instead.
* **BREAKING:** `--ignore` is deprecated. Use `--match` instead.
* **BREAKING:** Glob-* pairs are no longer comma-seperated. Use `=` instead.

@@ -164,0 +167,0 @@ * **BREAKING:** Logic for multiple glob-* pairs changed. Later pairs override the earlier ones now.

@@ -38,3 +38,2 @@ const {Command, flags} = require('@oclif/command');

};
baseUrl = addSlash(baseUrl);

@@ -47,12 +46,12 @@

if (flags.verbose) {
console.warn(`[static-sitemap-cli] found ${files.length} files!`);
console.warn('\x1b[36m%s\x1b[0m', `[static-sitemap-cli] found ${files.length} files!`);
}
if (flags.text) {
let out = '';
for (let a = 0; a < files.length; a++) {
out += `${getUrl(files[a].path)}
`;
if (flags.verbose) {
console.warn(files[a].path);
}
this.log(getUrl(files[a].path));
}
this.log(out);
return;

@@ -59,0 +58,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