s3-glob

0.2.0 • Public • Published

s3-glob

Retrieve object list entries in S3 using minimatch-style globbing.

build status coverage license version downloads

Features:

  • Full support for minimatch-style syntax,
  • Streaming output,
  • Ready for piping into S3.getObject or S3.headObject.
var GlobStream = require('s3-glob');
 
var stream = new GlobStream([ 's3://my-bucket/*.jpg', '!test*' ]);
 
stream.on('readable', function() {
    var entry;
    while (null !== (entry = this.read())) {
        console.log(entry);
    }
});
var GlobStream = require('s3-glob');
 
var stream = GlobStream([ 's3://my-bucket/*.jpg' ], { format: 'query' });
//...

Readme

Keywords

Package Sidebar

Install

npm i s3-glob

Weekly Downloads

114

Version

0.2.0

License

CC0-1.0

Last publish

Collaborators

  • izaakschroeder