0.1.2 • Published 10 years ago

npm-cleversafe v0.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

Synopsis

This is a wrapper around the request module that simplifies the interaction with Cleversafe instances. It makes it easier to set up a proxy in case your cleversafe instance is behind a firewall.

Code Example

	var cleversafe = require('npm-cleversafe')

	//Create cleversafe instance
	var conn = new cleversafe(USERNAME,PASSWORD,CLEVERSAFE_HOST,PROXY URL)

	//Get the vault list in JSON form
	conn.vaultList(function(list){
	    console.log(list);
	});

	//Set the vault we will be working with
	conn.setVault(VAULT_NAME)

	//List objects in the specified vault in JSON form
	conn.objectList(function(list){
	    console.log(list);
	});

	//Deposit file in the vault
	conn.deposit("image.jpg")

	//Get file from cleversafe. The file will be stored in the local directory
	conn.retrieve("image.jpg")

	//Delete file on cleversafe
	conn.delete("image.jpg")

Motivation

I decided to create this wrapper since I couldn't find any npm packages that simplified the interactions with cleversafe

Installation

	$ npm install --save npm-cleversafe

Contributors

robert@bluechasm.com ryan@bluechasm.com

Feel free to contact us for suggestions or questions about this package

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago