urlmg

1.1.0 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i urlmg

Weekly Downloads

3

Version

1.1.0

License

ISC

Unpacked Size

2.71 kB

Total Files

3

Last publish

Collaborators

  • tgm