sitemapping

1.0.1 • Public • Published

Sitemapping

Sitemapping is a powerful yet simple sitemap parser. It is able to parse a sitemap containing urls of pages, or urls of other sitemaps as well.

Installation

npm install sitemapping

Usage 1; sitemap containing url to pages

(async() => {
  const sitemapping = require('sitemapping');
  const urls = await sitemapping('https://baremetrics.com/podcast-sitemap.xml');
  console.log(urls[0]); // https://baremetrics.com/founder-chats/john-sheehan
})();

Usage 1; sitemap containing url to other sitemaps

(async() => {
  const sitemapping = require('sitemapping');
  const urls = await sitemapping('https://baremetrics.com/sitemap.xml');
  console.log(urls[0]); // https://baremetrics.com/academy/3-places-to-find-customers-for-your-business
})();

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i sitemapping

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • said