Socket
Book a DemoInstallSign in
Socket

screengrab.js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screengrab.js

Take screengrabs of HTML elements or React components on your website

0.1.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

ScreenGrab.js

Take screengrabs of HTML elements or React components on your website

Website: https://screengrab.cloud

Docs: https://docs.screengrab.cloud

Github: https://github.com/screengrab-cloud/screengrab.js

Get Started

Fist log into https://screengrab.cloud and get your API Key from the dashboard

Quick Start

Install screengrab.js library

npm install --save screengrab.js

or

yarn add screengrab.js

The simplest is to use the cloud hosted ScreenGrab.cloud

import { ScreenGrab } from 'screengrab.js'

const screengrab = ScreenGrab('api-key')

const image = await screengrab.url('https://memezoo.app').grab()

console.log('screengrab url', image.url)

If you want to test on your localhost use the screengrab-server dev server

Instructions on installing dev server: https://github.com/imageapi-dev/screengrab-server

Then add your server location to screengrab.js when initializing.

import { ScreenGrab } from 'screengrab.js'

const screengrab = ScreenGrab({
  server: 'http://localhost:3031'
})

const image = await screengrab.url('https://memezoo.app').grab()

console.log('screengrab url', image.url)

For detailed information refer to https://docs.screengrab.cloud

FAQs

Package last updated on 09 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.