bucket-list

1.0.0 • Public • Published

Bucket List

Get a file list from an Amazon S3 bucket.

Supports streams and callbacks.

Install

npm install bucket-list

Usage

 
var BucketList = require('bucket-list');
var bucket = BucketList.connect({
  key: 's3-key',
  secret: 's3-secret'
  bucket: 'name-of-the-s3-bucket'
});
 
 
// Stream bucket files
 
var bucketStream = bucket('folder_name');
 
bucketStream.on('data', function (fileNameWithPath) {
  console.log(fileNameWithPath);
});
 
 
// Callback style with bucket files
 
bucket('folder_name', function (err, files) {
  console.log(files);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.3.3
    0
  • 0.3.2
    0
  • 0.3.1
    0
  • 0.1.0
    1

Package Sidebar

Install

npm i bucket-list

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • scottcorgan