s4
super simple storage solution: aws s3 client
Last updated 8 years ago by brianleroux .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install s4 
SYNC missed versions from official npm registry.

super simple storage solution client

Super high level wrapper client for Amazon S3.

Why?

Wanted something cleaner to quickly fuck around w/ S3 without diving into lower level and more verbose http business. Especially decent in the terminal. If you want to be close to the metal I suggest Knox and/or just using Mikeals Request.

Install

npm install s4

Usage

var config = {key:'', secret:'', bucket:'io.brian.photos', folder:'funny'}
,   photos = require('s4').create(config)
,   pic    = require('path').join(__dirname, 'funny.jpg')

photos.save(pic, function(err, key) {
    console.log('key to pic: ' + key)
})

API

create(config)

save(path, callback)

keys(callback)
keys(options, callback)

all(callback)
all(options, callback)

nuke(callback)

destroy(callback)

Current Tags

  • 0.1.6                                ...           latest (8 years ago)

7 Versions

  • 0.1.6                                ...           8 years ago
  • 0.1.5                                ...           8 years ago
  • 0.1.4                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |