stripPathSegments(): string
strips a specified number of segments from the beginning of a path
The path with the specified number of segments removed
@reliverse/pathkit is a slash‑consistent, cross‑platform path manipulation, with POSIX forward slash, drop‑in for node:path and unjs/pathe. This library extends the node:path module with a set of functions for manipulating file paths.
stripPathSegments(): string
strips a specified number of segments from the beginning of a path
The path with the specified number of segments removed
Add Package
deno add jsr:@reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";
Import directly with a jsr specifier
import { stripPathSegments } from "jsr:@reliverse/pathkit";
Add Package
pnpm i jsr:@reliverse/pathkit
pnpm dlx jsr add @reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";
Add Package
yarn add jsr:@reliverse/pathkit
yarn dlx jsr add @reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";
Add Package
vlt install jsr:@reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";
Add Package
npx jsr add @reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";
Add Package
bunx jsr add @reliverse/pathkit
Import symbol
import { stripPathSegments } from "@reliverse/pathkit";