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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i sitemapping

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • said