Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 538 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 538 Bytes

page-info

A simple page info taker.

Installation

npm install page-info

Features

  • follow 301 302 redirection

Quick Start

var pageInfo = require('page-info');

pageInfo('google.com', function (page) {

  log(page.icon())
  log(page.favicon())
  log(page.shortcutIcon())

  log(page.title())
  log(page.description())
  log(page.bodyText())
  log(page.firstDivText())
  log(page.firstParagraphText())

  log(page.thumbnail())
  log(page.firstImg())

});

API

License

MIT