JS bindings for Thum.io, a fast and reliable website screenshot generator. Can be used in the browser or in Node.
npm install --save thum.io
import { getThumURL } from 'thum.io'
console.log(getThumURL({ url: 'https://bbc.com' }));
// '//image.thum.io/get/https://bbc.com'
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 |