Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

Grab all the image URLs from a document or HTML string

Notifications You must be signed in to change notification settings

booc0mtaco/image-url-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-url-parser

This module will help extract the images used in a web page. It currently handles:

  • IMG tags within an HTML document <img src="path/to/image.jpg">.
  • Images specified as background-image values in the style attribute of an HTML element.
  • Images specified as background-image values in the CSS connected to a particular element.

Using this on a document or HTML string will return an arry containing all the unique values for the given document.

Installation

npm -i image-url-parser

Testing

mocha

License

MIT © Andrew Holloway

About

Grab all the image URLs from a document or HTML string

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published