nekomap
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Nekomap

This is a sitemap utility that extracts sitemap url and all the urls from the sitemap.

note: This is not a sitemap generator or web crawler.

Installation

npm  install nekomap
pnpm add nekomap
yarn add nekomap

Usage

import NekoMap from 'nekomap';

const websiteUrl = 'https://example.com'; // https://example.com/sitemap.xml or any url
const nekoMap = new NekoMap(websiteUrl);

nekoMap.getSiteMapUrls().then(sitemapUrls => {
    console.log(sitemapUrls); // string | null if no sitemap url found
});

nekoMap.getUrls().then(urls => {
    console.log(urls); // string[] | null if no urls found
});

License

MIT

Author

Sayed Ahmed

Disclaimer

This is a personal project and not affiliated with any organization. Use at your own risk.

Package Sidebar

Install

npm i nekomap

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

8.44 kB

Total Files

7

Last publish

Collaborators

  • hitarashi