Options
All
  • Public
  • Public/Protected
  • All
Menu

crawfishcloud

Index

Namespaces

Properties

Functions

Properties

default

default: CrawfishCloud

Functions

Const asS3

Const asVfile

Const asVinyl

  • asVinyl(o: S3Item, i: number): Promise<File>

Const crawler

  • The crawler takes a base config of your S3Client object, and some base configs, that setup your defaults for the crawler.

    todo
    • code to help lack of acccess to S3
    example
    import crawler from 'crawfishcloud'
    import {S3, SharedIniFileCredentials} from 'aws-sdk'
    const credentials = new SharedIniFileCredentials({profile:'default'})
    const s3c = new S3({credentials, region:'us-west-2'})
    const crab = crawler({s3c}, 's3://ericdmoore.com-images/*.jpg')
    const ret = await crab.vfileArray()
    

    Parameters

    • input: { body?: boolean; maxkeys?: number; s3c: S3 }
      • Optional body?: boolean
      • Optional maxkeys?: number
      • s3c: S3

        a configured S3 Client that is authorized to make calls

    • Rest ...filters: string[]

      default set of S3 Url globs

    Returns CrawfishCloudReturnNoProto

Generated using TypeDoc