puppeteer2pdf2png
v1.0.1
Published
fetch url get dom info by cheerio
Downloads
2
Readme
To create a random UUID...
- Install
npm install dom-selector-cheerio
- Usage
import { generateScreenshot } from "./src/image/get_image.js";
import { generatePDF } from "./src/pdf/get_pdf.js";
let url = 'https://www.xxx.com'
let outputFileName = 'xx.png'
generateScreenshot(url, outputFileName)
.then(() => console.log(`Screenshot generated: ${outputFileName}`))
.catch(err => console.error('Screenshot generation failed:', err));