Remix
Remix
remix/fs · FunctionView Source

openLazyFile

Summary

Returns a LazyFile from the local filesystem.

The returned file's name property will be set to the filename argument as provided, unless overridden via options.name.

Signature

function openLazyFile(filename: string, options: OpenLazyFileOptions): LazyFile;

Parameters

filename

The path to the file

options

Options to override the file's metadata

Returns

A LazyFile object