Skip to content

JS API for Thum.io, can be used in Node or in browser

License

Notifications You must be signed in to change notification settings

diablomedia/thum.io-js

 
 

Repository files navigation

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

About

JS API for Thum.io, can be used in Node or in browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.6%
  • TypeScript 34.4%