Skip to content

chobbs/vera-node-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VeraLabs - Node Library for the Vera API's

Motivation

This is a wrapper around the Vera APIs, however this project is just getting started and should be considered a testing release only.

This library is intended to provide the basic functionality you need to secure and unsecure files using Vera: This library does not attempt to provide application level support, e.g. administration, auditing, and user management. If you're looking for those kinds of features, you should check with Vera Support.

var vera = new Vera(veraAppID, veraAppSecret, veraEndpoint);
vera.protect({file:'myfile.pdf', docName: 'myfile.pdf', destination: 'file-secured.html'}).then(function(result){
	console.log(JSON.stringify(result)); // Show the stream returm results from Vera. 
	done();
    }).catch(function (err) {
    done(err)
})

NOTE: If value of "destination" is not provided, the return result will be encoded to a stream.

vera.policy().then(function(result){
	console.log(JSON.stringify(result)); // Show the stream returm results from Vera. 
	done();
     }).catch(function (err) {
	done(err)
})
vera.meta({file:'file-secured.html'}).then(function(result){
	console.log(JSON.stringify(result)); // Show the stream returm results from Vera. 
	done();
     }).catch(function (err) {
	done(err)
})
   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published