Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 598 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 598 Bytes

Thumbor-Lite

Thumbor client for Node JS or browser (not recommended).

Forked from thumbor, but does not rely on node.js builtins.

Usage

# Install thumbor module

npm install thumbor-lite
// Declare thumbor-url-builder in JS
// Your encryption key is not required, but your link will be unsafe.

const Thumbor = require('thumbor-lite');
const thumbor = new Thumbor('MY_KEY', 'http://myserver.thumbor.com');

// Generate your url :

let thumborUrl = thumbor.setImagePath('00223lsvrnzeaf42.png').resize(50,50).buildUrl();