openLazyFile

View Source

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;

Params

filename

The path to the file

options

Options to override the file's metadata

Returns

A LazyFile object