Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i-promise-page-metrics

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i-promise-page-metrics

Fetches different page metrics for a given URL

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 13 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc