Flexible and fluent interface for searching cloud storage
List all objects from a given bucket:
const CloudHound = require('cloudhound');
const objects = CloudHound.newQuery({ bucket: 'myBucket' }).find();
console.log(objects);
List objects given a prefix:
const CloudHound = require('cloudhound');
const objects = await CloudHound.newQuery({ bucket: 'myBucket' })
.prefix('csv')
.find();
console.log(objects);
Limit the number of objects:
const CloudHound = require('cloudhound');
const objects = await CloudHound.newQuery({ bucket: 'myBucket' })
.limit(10)
.find();
console.log(objects);