Class Hyperdrive

Hierarchy

Constructors

Properties

blobs: null | Hyperblobs
contentKey: null | Buffer
core: Hypercore<"binary", undefined>
db: Hyperbee<any>
discoveryKey: null | Buffer
id: null | string
key: null | Buffer
version: number

Methods

  • Returns any

  • Parameters

    • path: string
    • Optionalopts: {
          diff?: boolean;
      }
      • Optionaldiff?: boolean

    Returns Promise<null | {
        blocks: number;
    }>

  • Returns Promise<void>

  • Parameters

    • path: string
    • Optionalopts: {
          core?: Hypercore<"binary", undefined>;
          end?: number;
          length?: number;
          start?: number;
      }
      • Optionalcore?: Hypercore<"binary", undefined>
      • Optionalend?: number
      • Optionallength?: number
      • Optionalstart?: number

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Parameters

    • path: string
    • Optionalopts: {
          executable?: boolean;
          metadata?: any;
      }
      • Optionalexecutable?: boolean
      • Optionalmetadata?: any

    Returns Writable<any, any, any, false, true, WritableEvents<any>>

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • version: number
    • folder: string
    • Optionalopts: any

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Parameters

    • Optionalfolder: string
    • Optionalopts: {
          recursive?: boolean;
      }
      • Optionalrecursive?: boolean

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Parameters

    • version: number
    • folder: string
    • Optionalopts: any

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Parameters

    Returns {
        destroy: (() => void);
        done: Promise<void>;
    }

    • destroy: (() => void)
        • (): void
        • Returns void

    • done: Promise<void>
  • Parameters

    • opts: any

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Parameters

    Returns Promise<null | Buffer>

  • Parameters

    • folder: string
    • Optionalopts: {
          recursive?: boolean;
      }
      • Optionalrecursive?: boolean

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Returns any

  • Parameters

    • path: string
    • blob: Buffer
    • Optionalopts: {
          executable?: boolean;
          metadata?: any;
      }
      • Optionalexecutable?: boolean
      • Optionalmetadata?: any

    Returns Promise<void>

  • Parameters

    • folder: string

    Returns Readable<any, any, any, true, false, ReadableEvents<any>>

  • Returns Promise<void>

  • Parameters

    • Optionaloptions: {
          wait?: boolean;
      }
      • Optionalwait?: boolean

    Returns Promise<Boolean>