Thumbor client Node JS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.npmignore
README.md
index.js
package.json

README.md

ThumborUrlBuilder

Thumbor client for Node JS

Usage

# Install thumbor-url-builder module

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

var ThumborUrlBuilder = require('thumbor-url-builder');
var thumborURL = new ThumborUrlBuilder('MY_KEY', 'http://myserver.thumbor.com');

// Generate your url :

var thumborUrl = thumborURL.setImagePath('00223lsvrnzeaf42.png').resize(50, 50).smartCrop(true).buildUrl();