Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/path/index.ts>isFsPath

A JavaScript extension package for building strong and modern applications.
Latest
function isFsPath
Re-export
import { isFsPath } from "https://deno.land/x/ayonli_jsext@v0.9.72/path/index.ts";

Checks if the given path is a file system path.

Examples

Example 1

import { isFsPath } from "@ayonli/jsext/path";

console.assert(isFsPath("/usr/bin"));
console.assert(isFsPath("C:\\Windows\\System32"));
console.assert(isFsPath("./foo/bar"));
console.assert(isFsPath("../foo/bar"));

Parameters

path: string

Returns

boolean