i-promise-page-metrics

1.0.0 • Public • Published

i-promise-page-metrics

A node module for retrieving different page metrics for an URL

For those of you who want to get page metrics for different URLs. This module will supply you with Alexa, Google+ and Moz metrics.

Install

Install with npm

$ npm i-promise-page-metrics --save

Usage

 
const pageMetrics = require("i-promise-page-metrics");
 
pageMetrics.alexa(url)
  .then((response) => {
    //=> {globalRank: 1000, popularityAt: "United States", regionalRank: 200, backLinks: 5000}
  });
 
pageMetrics.googleplus(url)
  .then((response) => {
    //=> {count: 66}
  });
 
pageMetrics.moz(url)
  .then((response) => {
    //=> {da: 1, pa: 22, rank: 2, links: 100}
  });
 

Running tests

Install dev dependencies:

$ npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

License

Released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i i-promise-page-metrics

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • odynvolk