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

x/easy_std/src/path.ts>findUp

Generic Deno standard library, focused on ease of use | 通用 Deno 标准库,专注于易用性
Go to Latest
function findUp
import { findUp } from "https://deno.land/x/easy_std@v0.7.0/src/path.ts";

find back from the root path requires the --allow-read flag.

Examples

Example 1

import { findUp } from "https://deno.land/x/easy_std@version/src/path.ts";

findUp("bar") // Returns the possible paths from the root directory upwards

Parameters

name: string
optional
root = [UNSUPPORTED]