Skip to content

Latest commit

 

History

History
62 lines (33 loc) · 1011 Bytes

File metadata and controls

62 lines (33 loc) · 1011 Bytes
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > FileSystem > createReadStream

FileSystem.createReadStream() method

Creates a readable stream for an existing file. Behind the scenes it uses fs.createReadStream()<></>.

Signature:

static createReadStream(filePath: string): FileSystemReadStream;

Parameters

Parameter

Type

Description

filePath

string

The path to the file. The path may be absolute or relative.

Returns:

FileSystemReadStream

A new readable stream for the file.