get-first-image

1.0.5 • Public • Published

Usage

var getFirstImage = require('get-first-image');
 
var defaultImage = 'http://your-default-image-url';
var image = getFirstImage('<img src="smiley.gif" alt="Smiley face" height="42" width="42"/>', defaultImage);

Readme

Keywords

Package Sidebar

Install

npm i get-first-image

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.66 kB

Total Files

5

Last publish

Collaborators

  • alfenfebral