minigame-std
    Preparing search index...

    Function isFileHandleLike

    • Checks whether the given handle-like object represents a file.

      Parameters

      Returns handle is FileSystemFileHandleLike

      true if the handle-like object represents a file, otherwise false.

      1.1.0

      statSync('/path/to/file')
      .inspect(handle => isFileHandleLike(handle) && console.log(`File size: ${ handle.size }`));