Skip to content
Node.js client for Transloadit API
JavaScript
Latest commit d8d8c24 Jul 20, 2014 Geoff van der Meer committed with Deprecation information.
Failed to load latest commit information.
lib fix wrap JSON.parse into try-catch (from chmanie) Dec 22, 2013
test Fix jslint warning Nov 30, 2011
.gitignore Initial commit Nov 29, 2011
LICENSE Initial commit Nov 29, 2011
Makefile Initial commit Nov 29, 2011
README.md Deprecation information. Jul 20, 2014
index.js Initial commit Nov 29, 2011
package.json Increment version Dec 23, 2013

README.md

Deprecated

Please use the official Transloadit Node SDK.

No further development is planned on this project.

Overview

This is a Node.js client for the Transloadit service, a cloud transcoder for images, video and other content.

Before you get started you'll want to enable API authentication.

Installation

npm install node-transloadit

API

var transloadit = require('node-transloadit');

var client = new transloadit('AUTH_KEY', 'AUTH_SECRET');

client.addStream(name, stream);
client.addFile(file_name, file_path);
client.send(params, ok_callback, fail_callback);

Example

var transloadit = require('node-transloadit');

var client = new transloadit('AUTH_KEY', 'AUTH_SECRET');
var params = {
    steps: {
        ':original': {
            robot: '/http/import',
            url: 'http://example.com/file.mov'
        }
    },
    template_id: 'your_template_id_here'
};

client.send(params, function(ok) {
    // success callback [optional]
    console.log('Success: ' + JSON.stringify(ok));
}, function(err) {
    // error callback [optional]
    console.log('Error: ' + JSON.stringify(err));
});

Authors

Contributions from:

  • Chase Brammer
  • Christian Maniewski
  • Greg Allan
  • Helge Skogly Holm
  • Tejesh Mehta
Something went wrong with that request. Please try again.