uploadcare-node
Node module for uploadcare.com that allows API interaction as well as local file upload.
Usage
var uploadcare = require('../lib/main')('public_key', 'private_key'),
fs = require('fs');
uploadcare.files.info('file_id', handler);
uploadcare.files.store('file_id', handler);
uploadcare.files.remove('file_id', handler);
uploadcare.file.upload(fs.createReadStream(path), function(err,res){
console.log(err,res);
});
uploadcare.file.fromUrl('http://host/image/path', function(err,res){
console.log(err,res);
})
Installation
npm install uploadcare