pagemeta

Created: 2014-05-19 16:03
Updated: 2019-02-28 05:24
License: mit

README.md

#pagemeta Build Status

Node.js module/CLI app for viewing meta data for a webpage.

##Installation

$ npm install pagemeta

You can also install it globally to use the CLI version

$ npm install pagemeta -g

##Test

Make sure you have installed Mocha globally or go to the pagemeta folder and do an nmp install.

$ npm test

##Usage - module

Pass the uri for the page you want to view.

var pmd = require('pagemeta');
var uri = 'http://www.google.com';

pmd(uri, function(err, data){
  if(err){
    throw err;
  }
  console.log(data);
});

##Usage - CLI

To use it as a CLI app install it globally.

To display help

$ pagemeta --help

To display version

$ pagemeta --version

Usage:

$ pagemeta <uri>

##Output

{
  "title": "Google",
  "description": "Velkommen til Google Søk. Finn det du leter etter på nettet på et blunk.",
  "robots": "noodp"
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more