Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 974 Bytes

docs.md

File metadata and controls

42 lines (27 loc) · 974 Bytes

cloudhound

Build Status Coverage Status

Flexible and fluent interface for searching cloud storage

Common examples

List all with pagination

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);