Skip to content

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

License

Notifications You must be signed in to change notification settings

lambduh/lambduh-list-s3-objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published