Skip to content

isFileUrl

Determines whether a given string is a file:// URL.

Import:

import { isFileUrl } from 'obsidian-dev-utils/url';

Signature:

function isFileUrl(str: string): boolean

Parameters:

ParameterTypeDescription
strstringThe string to check.

Returns: booleantrue if the string uses the file: scheme, otherwise false.