nekomap
v0.1.1
Published
Sitemap utility. NOTE: This is not a sitemap generator.
Downloads
12
Maintainers
Readme
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
Author
Disclaimer
This is a personal project and not affiliated with any organization. Use at your own risk.