Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    s3caspublic

    s3cas

    Content Addressable Storage on top of Amazon S3

    Build Status Dependency Status NPM version

    Installation

    npm install s3cas
    

    Usage

    var assert = require('assert');
    var connect = require('s3cas');
     
    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.js
    

    License

    MIT

    Keywords

    none

    install

    npm i s3cas

    Downloadsweekly downloads

    7

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar