
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@qualweb/get-dom-puppeteer
Advanced tools
Puppeteer module for QualWeb.
$ npm i @qualweb/get-dom-puppeteer --save
'use strict';
const { getDom } = require('@qualweb/get-dom-puppeteer');
(async () => {
const { source, processed } = await getDom('https://act-rules.github.io/pages/about/');
console.log(source.html.plain); // html before javascript processing
console.log(source.html.parsed); // source html parsed by 'htmlparser2' (https://github.com/fb55/htmlparser2)
console.log(source.elementCount); // number of elements of the source html
console.log(source.title); // title of the source html, if exist
console.log(processed.html.plain); // html after javascript processing
console.log(processed.html.parsed); // processed html parsed by 'htmlparser2' (https://github.com/fb55/htmlparser2)
console.log(processed.elementCount); // number of elements of the processed html
console.log(processed.title); // title of the processed html, if exist
})();
'use strict';
const { getDom } = require('@qualweb/get-dom-puppeteer');
(async () => {
const options = {
mobile: true, // default false
landscape: true, // default false
userAgent: 'your custom user agent',
resolution: {
width: 1440, // default 1920
height: 720 // default 1080
},
computedStyle: false, // default true - adds the computed style to each element in a custom attribute [computed-style]
elementsPosition: false // default true - adds the element position in relation to the viewport and scroll, attributes [w-scrollx, w-scrolly, b-right, b-bottom]
};
const dom = await getDom('https://act-rules.github.io/pages/about/', options);
})();
ISC
FAQs
Obtains a DOM from a given url
The npm package @qualweb/get-dom-puppeteer receives a total of 0 weekly downloads. As such, @qualweb/get-dom-puppeteer popularity was classified as not popular.
We found that @qualweb/get-dom-puppeteer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.