Skip to main content

Reference / Modules / client-node / NodeFile

Class: NodeFile

client-node.NodeFile

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NodeFile(path, name, mimeType): NodeFile

Parameters

NameType
pathstring
namestring
mimeTypeMimeType

Returns

NodeFile

Overrides

NodeStreamFile.constructor

Defined in

client-node/src/index.ts:49

Properties

mimeType

Readonly mimeType: MimeType

Inherited from

NodeStreamFile.mimeType

Defined in

client/dist/ComponentFactory.d.ts:16


name

Readonly name: string

Inherited from

NodeStreamFile.name

Defined in

client/dist/ComponentFactory.d.ts:15


path

Private path: string

Defined in

client-node/src/index.ts:54

Methods

getHashAndSize

getHashAndSize(): Promise<HashAndSize>

Returns

Promise<HashAndSize>

Inherited from

NodeStreamFile.getHashAndSize

Defined in

client-node/src/index.ts:25


getStream

getStream(): ReadableStream

Returns

ReadableStream

Overrides

NodeStreamFile.getStream

Defined in

client-node/src/index.ts:56