0.0.4 • Published 9 years ago

pagerank-hk v0.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

node-pagerank

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

Build Status

Installation

npm install -g pagerank-hk

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/