Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/globber/src/utils.ts>normalize

Include and excludes files and directories from a deep search of the provided root directory
Latest
function normalize
import { normalize } from "https://deno.land/x/globber@0.1.0/src/utils.ts";

Normalize a path and remove any leading ./ current directory indicator.

Parameters

filePath: string

The path to normalize

optional
stripTrailing: boolean

Returns

string

a normalized path with posix style separators