anyfs-s3-adapter
v0.1.1
Published
AWS S3 adapter for AnyFS
Downloads
5
Readme
anyfs-s3-adapter
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