Skip to content
Get a list of keys from S3 by Bucket, Prefix, and extension (or custom regex)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
gulpfile.js
index.js
package.json

README.md

lambduh-list-s3-objects

Get a list of keys from S3 by Bucket, Prefix, and extension (or custom regex)

npm i --save lambduh-list-s3-objects

Usage

var list = require('lambduh-list-s3-objects')

list({
  Bucket: 'mybucket', //S3 Bucket
  Prefix: 'events/party/', //Key Prefix
  pattern: /\.png/ // Optional Regex for filtering returned keys
}).then(function(keys) {
  console.log(keys); // Keys from that bucket/prefix/pattern
}, function(err) {
  console.log(err); // some err
});
You can’t perform that action at this time.