Skip to content

anyfs/s3-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published