🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

get-site-urls

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-site-urls

Crawl a URL to generate a sitemap and find 404 errors with one command

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
267
-59.91%
Maintainers
1
Weekly downloads
 
Created
Source

đź”— get-site-urls

Crawl a URL to generate a sitemap and find 404 errors with one command

Usage

Command line interface

npx get-site-urls polaris.shopify.com

Function in nodeJS

import getSiteUrls from "get-site-urls";

const urls = await getSiteUrls("alexpage.dev");

CLI options

$ npx get-site-urls --help

Get all of the URL's from a website.

Usage
	$ get-site-urls <url>

Options
	--output=<string>, -o   File saved to the system
	--max-depth=<number>,   Maximum depth of routes to search
	--alias=<string>,       Replace <url> with <alias> for sitemap generation

Examples
	$ get-site-urls polaris.shopify.com --output=sitemap.xml
	âś… Created sitemap.xml with 137 urls

Release History

  • v3.0.0 - stdout replaced with output file
  • v2.0.4 - Remove exports, relative bin entry, index.js !# to run in node env
  • v2.0.3 - Rename main to exports in package.json
  • v2.0.2 - Add name to bin entry in package.json
  • v2.0.1 - Add missing bin entry in package.json
  • v2.0.0 - Convert get-site-urls to a cli tool
  • v1.1.7 - Update dependencies and GitHub actions to yml syntax
  • v1.1.6 - Use xo and ava, update dependencies
  • v1.1.5 - Add tests for urls with ending slash, update documentation
  • v1.1.4 - Use files instead of .npmignore
  • v1.1.3 - Replace travis with GitHub actions
  • v1.1.2 - Update package.json link
  • v1.1.1 - Fix issue with CI
  • v1.1.0 - Fixing bugs with urls, adding tests and basic auth support
  • v1.0.0 - đź’Ą First commit

Keywords

crawl

FAQs

Package last updated on 25 Aug 2022

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