Get information (title, images, etc.) about a HTML document
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
LICENSE
README.md
bench.js
bench_urls.json
index.js
package.json
test.js
timer.js

README.md

This module returns information about an HTML document located at the given URI. Currently the following information is available:

  • Title
  • Images (that meet size criteria)

GraphicsMagick

This module depends on GraphicsMagick being installed on the system. You can find installation instructions here or use your favorite package manager.

Usage

	var pageinfo = require("pageinfo");

	pageinfo("http://en.wikipedia.org/wiki/Fish", function(err, info) {
		if (err) throw err;
		console.log(info.title);
		console.log(info.images.length, "images found");
	});

Tests

Run tests with npm:

    npm test

Authors