anyfs-s3-adapter

0.1.1 • Public • Published

anyfs-s3-adapter

npm npm Travis npm

AWS S3 adapter for AnyFS

Usage

var AnyFS = require('anyfs');
var Adapter = require('anyfs-s3-adapter');
var adapter = new Adapter({
    "accessKeyId": "AWS access key",
    "secretAccessKey": "AWS secret",
    "region": "S3 region",
    "bucket": "S3 bucket"
});
 
var fs = new AnyFS(adapter);
 
fs.list('/dir', function(err, list) {
    console.log(list);
});

Test

Create .secret.json with credentials of your AWS S3 bucket:

{
    "accessKeyId": "AWS access key",
    "secretAccessKey": "AWS secret",
    "region": "S3 region",
    "bucket": "S3 bucket"
}

Then run:

npm install
npm test

Reference

S3 API

Readme

Keywords

Package Sidebar

Install

npm i anyfs-s3-adapter

Weekly Downloads

12

Version

0.1.1

License

MIT

Last publish

Collaborators

  • dong