Skip to content

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

Notifications You must be signed in to change notification settings

izaakschroeder/s3-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' });
//...

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published