1.0.0 • Published 9 years ago

s3cas-gzip v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

s3cas-gzip

Content addressable gzipped storage on top of S3

Build Status Dependency Status NPM version

Installation

npm install s3cas-gzip

Usage

var assert = require('assert');
var connect = require('s3cas-gzip');

var client = connect(process.env.CONNECTION);

client.put(new Buffer('Hello World')).then(function (id) {
  assert(typeof id === 'string');
  return client.get(id);
}).then(function (buffer) {
  assert(Buffer.isBuffer(buffer));
  assert(buffer.toString('utf8') === 'Hello World');
}).done(function () {
  console.log('tests passed')
});
CONNECTION="{key}@{secret}@{bucket}" node test

License

MIT