@glowsrc/screenshot
v0.1.4
Published
An library to screenshot a page easily using puppeteer
Downloads
3
Readme
Screenshot
A library which wraps puppeteer
to make it easy taking screenshots
Installation
- cli
npm i -g @glowsrc/screenshot
- node
npm i @glowsrc/screenshot
Typescript & NodeJs
import { ScreenShot } from "@glowsrc/screenshot";
import { writeFile } from "node:fs/promises";
const shotter = new ScreenShot()
shotter.screenshot("https://npmjs.org/")
.then(buf => writeFile("image.png", buf))
.then(() => shotter.destroy())
Browser
No supports;
Cli
ss https://npmjs.com/ screen.png(if nothing, image.png)