Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including xml-urls with all npm packages installed. Try it out:

var xmlUrls = require("xml-urls")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

xml-urls v2.1.8

Get all urls from a Feed/Atom/RSS/Sitemap xml markup.


Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status Donate

Get all urls from a Feed/Atom/RSS/Sitemap xml markup.


$ npm install xml-urls --save


const xmlUrls = require('xml-urls')

;(async () => {
  const url = process.argv[2]
  if (!url) throw new TypeError('Need to provide an url as first argument.')
  const urls = await xmlUrls(url)

  urls.forEach(url => console.log(url))

  // => [
  //  '',
  //  '',
  //  '',
  //  '',
  //  '',
  //  '',
  //  ...
  // ]

See more at examples.


xmlUrls(urls, [options])


Type: string


Type: object

Use it for providing html-get#options.


Type: array
Default: []

A list of links to be excluded from the final output. It supports regex patterns.

See [matcher]( for know more.


  • html-urls – Get all urls from a HTML markup.
  • css-urls – Get all URLs referenced from stylesheet files.


xml-urls © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors. · GitHub @Kiko Beats · Twitter @Kikobeats

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free