docparse-user-in-upload
v1.1.0
Published
Test if a given user is an owner of a given upload
Downloads
5
Readme
Docparse Upload Fetch
Test if a given user is an owner of a given upload
Dependency tracking by David
Usage
var inspect = require('eyespect').inspector();
var userInUpload = require('docparse-user-in-upload');
var data = {
upload: {} // this should be an instance of docparse-upload
user: {} // this should be an instance of docparse-user
}
userInUpload(data, function(err, reply) {
if(err) {
inspect(err, 'error fetching upload);
return;
}
inspect(reply, 'is user in upload?');
});
Installation
npm install docparse-user-in-upload