Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 917 Bytes

readme.md

File metadata and controls

34 lines (22 loc) · 917 Bytes

node-pagerank

A library for looking up the Google PageRank of any given web page.

Build Status

Installation

npm install -g pagerank

Usage

var PageRank = require('pagerank');

// It's a ReadibleStream
new PageRank('http://example.com/').pipe(myCoolWriteableStream);

// It's an event Emitter
// It will emit one data event with either a number or null
new PageRank('http://example.com/').on('data', console.log).on('error', console.error);

// And it accepts callbacks
// pageRank will either be a number or null
new PageRank('http://example.com/', function(error, pageRank) {
    console.log(error, pageRank);
});

Or, use it via commandline (must be installed with -g):

pagerank http://example.com/