squeeze

0.5.0 • Public • Published

Squeeze

Squeeze is a library to access the UploadJuicer API from node.js.

It supports both push URL notifications or a polling mechanism to notify your application when an image operation is done.

Example usage:

var squeeze = require('squeeze');

var s = new squeeze.Image('Image URL', 'API key');
s.op('size', '100x100>')
 .op(...)
 .perform(function(err, data) {
     // data is parsed JSON reply
     console.log("Transformed image is at " + data.url);
});

Status

  • Supports one operation per image.
  • Supports poll based notification of jobs.

Requirements

You will need an UploadJuicer API key to use Squeeze.

Installation and Usage

Simply include the library in your application and require() it or use npm.

For usage please see API.md and the examples -- example/polling.js.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.0
    1

Package Sidebar

Install

npm i squeeze

Weekly Downloads

1

Version

0.5.0

License

none

Last publish

Collaborators

  • nsm