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 - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

17

index.js

@@ -49,5 +49,8 @@ "use strict";

const opts = {
url: "http://www.checkmoz.com/",
url: "http://www.checkmoz.com/moz-metrics/index_ajax.php",
form: {
"f_urls": url
"enter_url": url,
"checks1": "68719476736",
"checks2": "34359738368",
"checks3": "16384"
}

@@ -60,9 +63,9 @@ };

const $ = cheerio.load(data);
const metricsRow = $(".rowclass1 td");
const tds = $("td");
return {
da: $(metricsRow[1]).text(),
pa: $(metricsRow[2]).text(),
ranks: $(metricsRow[3]).text(),
links: $(metricsRow[4]).text()
da: $(tds[3]).text(),
pa: $(tds[5]).text(),
ranks: $(tds[7]).text(),
links: $(tds[19]).text()
};

@@ -69,0 +72,0 @@ });

{
"name": "i-promise-page-metrics",
"version": "0.0.5",
"version": "0.0.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Fetches different page metrics for a given URL",

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