thum.io
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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

Option Type
url String
auth String \| { keyId: Number, secret: String, type: 'raw' \| 'md5' \| 'referer'}
maxAge Number
width Number
crop Number
png Boolean
ogImage Boolean
protocol String

Package Sidebar

Install

npm i thum.io

Weekly Downloads

713

Version

1.0.9

License

MIT

Unpacked Size

20.3 kB

Total Files

14

Last publish

Collaborators

  • golmansax