Socket
Book a DemoInstallSign in
Socket

scrim

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrim

scrape image URIs from HTML

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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

Keywords

scrape

FAQs

Package last updated on 12 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts