Socket
Socket
Sign inDemoInstall

thum.io

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

thum.io

Thum.io API for JS (can be used in the browser or in Node)


Version published
Maintainers
1
Weekly downloads
471
decreased by-10.29%

Weekly downloads

Readme

Source

Thum.io JS API

JS bindings for Thum.io, a fast and reliable website screenshot generator. Can be used in the browser or in Node.

Installation

npm install --save thum.io

Documentation

import { getThumURL } from 'thum.io'

console.log(getThumURL({ url: 'https://bbc.com' }));
// '//image.thum.io/get/https://bbc.com'

Full list of options

OptionType
urlString
authString | { keyId: Number, secret: String, type: 'raw' | 'md5' | 'referer'}
maxAgeNumber
widthNumber
cropNumber
pngBoolean
ogImageBoolean
protocolString

Keywords

FAQs

Last updated on 21 Oct 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc