Skip to content

URIs

Retrieve all the URIs over the target URL

uris.js
import createClient from 'microlink.io'

const microlink = createClient()

const code = ({ url, html }) => {
  const htmlUrls = require('html-urls')
  return htmlUrls({ html, url }).map(({ url }) => url)
}

const uris = (url, props) => microlink.function(url, code, props)

const { value } = await uris('https://rauchg.com/')

console.log(value)