Skip to content

basalt / drives-dropbox/src / DropboxContentHash

Class: DropboxContentHash ​

Defined in: drives-dropbox/src/content-hash.ts:21

Incremental hasher, so a streamed file is never held in memory.

Constructors ​

Constructor ​

> new DropboxContentHash(): DropboxContentHash

Returns ​

DropboxContentHash

Methods ​

digest() ​

> digest(): string

Defined in: drives-dropbox/src/content-hash.ts:40

Lowercase hex, exactly as Dropbox reports it.

Returns ​

string


update() ​

> update(chunk): this

Defined in: drives-dropbox/src/content-hash.ts:26

Parameters ​

chunk ​

Uint8Array

Returns ​

this

Released under the MIT License.