Skip to main content
Module

x/swissKnife/mod.ts>screenshot

Deno Swiss Knife tools
Go to Latest
function screenshot
import { screenshot } from "https://deno.land/x/swissKnife@1.3/mod.ts";

Capture screenshot

Parameters

imagePath: string
  • String: local path to save the PNG image
optional
monitor: Monitor = [UNSUPPORTED]
  • String: Monitor options, "Single", "Dual", or "Window"
optional
screen: Screen
  • {x, y, width, height} Screen option Return the saved image path

Returns

Promise<string>