Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/actionify/src/deps/globber.ts>normalizePath

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function normalizePath
import { normalizePath } from "https://deno.land/x/actionify@0.3.0/src/deps/globber.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]