1.0.2 • Published 11 years ago

s3ls v1.0.2

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

s3ls

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

Example

var s3ls = require('s3ls');

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

ls.pipe(process.stdout);

Methods

var ls = s3ls(prefix, opts)

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

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.

License

MIT

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago