webpage-info

0.1.5 • Public • Published

Return a webpage's title and favicon.

Installing the library

npm install webpage-info -g

API signature

// Signature (timeout is in milliseconds):
webpage_info = require('webpage-info')
webpage_info.parse(url, callback, timeout)

Example

webpage_info = require('webpage-info')
callback = function(obj) { 
    console.log(obj.title); 
    console.log(obj.favicon); 
    console.log(obj.error); // Will be set if an error happend
}
webpage_info.parse('http://www.youtube.com/watch?v=9bZkp7q19f0', callback)

/webpage-info/

    Package Sidebar

    Install

    npm i webpage-info

    Weekly Downloads

    10

    Version

    0.1.5

    License

    MIT

    Last publish

    Collaborators

    • amix