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

x/deno/tools/release/deps.ts>dax.PathRef#normalize

A modern runtime for JavaScript and TypeScript.
Go to Latest
method dax.PathRef.prototype.normalize
Re-export
import { dax } from "https://deno.land/x/deno@v1.39.3/tools/release/deps.ts";
const { PathRef } = dax;

Normalizes the path, resolving '..' and '.' segments. Note that resolving these segments does not necessarily mean that all will be eliminated. A '..' at the top-level will be preserved, and an empty path is canonically '.'.