New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

s3ls

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3ls

Readable stream of object keys in a S3 bucket

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

s3ls

Readable stream of object keys in a S3 bucket. Listings with more items than the S3 maximum of 1000 are automagically paginated.

dependency status

Example

var s3ls = require('s3ls', {
  key: process.env.AWS_ACCESS_KEY,
  secret: process.env.AWS_SECRET_KEY,
  region: process.env.AWS_REGION,
  bucket: process.env.S3_BUCKET
});

s3ls('img').pipe(process.stdout);

Methods

var s3ls = require('s3ls')(opts);

The following opts must be passed in:

  • opts.key - AWS access key ID.
  • opts.secret - AWS secret access key.
  • opts.region - AWS geographic region.
  • opts.bucket - Existing S3 bucket for uploads.

var ls = s3ls(prefix)

Return a readable stream of object keys under the given prefix.

License

MIT

Keywords

s3

FAQs

Package last updated on 02 Oct 2013

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