New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

lambduh-list-s3-objects

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambduh-list-s3-objects

Get a list of keys from S3 by Bucket, Prefix, and regex


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 15 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts