@jupyterlite


@jupyterlite / @jupyterlite/contents / FILE / hasFormat

Function: hasFormat()#

hasFormat(ext, fileFormat): boolean

Defined in: packages/services/lib/contents/tokens.d.ts:20

Determine whether the given extension matches a given fileFormat.

Parameters#

ext#

string

fileFormat#

"json" | "text" | "base64"

Returns#

boolean