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

x/globber/src/normalize_path.ts>normalizePath

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

Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.

Adapted from https://github.com/jonschlinkert/normalize-path

Parameters

path: string
optional
stripTrailing = [UNSUPPORTED]