Nightmarish Pawnshop Mystic

    @cityssm/get-site-urls
    TypeScript icon, indicating that this package has built-in type declarations

    3.5.0 • Public • Published

    get-site-urls

    npm (scoped) Codacy grade Code Climate maintainability Code Climate coverage AppVeyor Snyk Vulnerabilities for GitHub Repo

    Get all of the URLs from a website.

    Forked from alex-page/get-site-urls.

    Install

    npm install @cityssm/get-site-urls

    Usage

    import { 'getSiteUrls' } from "@cityssm/get-site-urls";
    
    getSiteUrls( 'https://saultstemarie.ca' )
    	.then( links => console.log( links ) );
    
    ( async () => {
    	const links = await getSiteUrls( 'https://saultstemarie.ca' );
    	console.log( links );
    
    /*
    {
    	pages: [
    		'https://saultstemarie.ca',
    		'https://saultstemarie.ca/City-Hall.aspx',
    		'https://saultstemarie.ca/City-Hall/City-Council.aspx',
    		...,
    		'https://saultstemarie.ca/Contact-Us.aspx',
    		'https://saultstemarie.ca/Site-Map.aspx'
    	],
    	errors: [
    		'https://saultstemarie.ca/Broken-Link.aspx'
    	]
    }
    */
    })();

    Parameters

    The function getSiteUrls() takes two parameters:

    getSiteUrls( url, maxDepth );
    1. url - The URL to search.
    2. maxDepth - The maximum depth to search, default 1.

    Install

    npm i @cityssm/get-site-urls

    DownloadsWeekly Downloads

    78

    Version

    3.5.0

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • dgowans