1.1.0 • Published 4 years ago

urlmg v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

urlmg

URL→img(URLs) Turn a URL into some (urls of) images.

Perhaps you'd like to display a list of sites, but you'd like to show an image along with the title/URL or whatever other info you have for them.

Example

import urlImg from './index.js';
(async () => {
  try {
    const imgUrls = await urlImg('https://github.com/hcientist/urlmg')
    // console.log(imgUrls)
    [og, touch, fav, screenshot] = imgUrls
    console.log(og, touch, fav) //screenshot is just too much
  } catch (err) {
    console.error('got error from urlImg')
  }
})()

what images?

Try to get the images from these places:

Pronunciation

"Earl Midge"