pagerank-hk

0.0.4 • Public • Published

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/

Readme

Keywords

Package Sidebar

Install

npm i pagerank-hk

Weekly Downloads

8

Version

0.0.4

License

MIT

Last publish

Collaborators

  • tinyhill