scrim

scrape image URIs from HTML

npm install scrim
16 downloads in the last month

scrim - scrape image URIs from HTML

Build Status

The scrim Node.js module scrapes image URIs from HTML documents. Pipe an HTML formatted string to it, and scrim emits image URIs.

Usage

var scrim = require('scrim')
  , cop = require('cop')
  , http  = require('http')

http.get('http://www.nodejs.org', function (res) {
  res
    .pipe(scrim())
    .pipe(cop(function (uri) { return uri + '\n' }))
    .pipe(process.stdout)
})

scrim()

The scrim module exports a single function that returns a Transform stream.

Installation

Install with npm:

npm install scrim

License

MIT License

npm loves you