Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Scrape image URIs from HTML document
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.