Skip to main content
Module

x/metapages/mod.ts>getNearestFileWithPrefix

Deno scripts for managing build/test/deploy/publish commands
Latest
variable getNearestFileWithPrefix
import { getNearestFileWithPrefix } from "https://deno.land/x/metapages@v0.0.25/mod.ts";

Return the first file found with the given prefix, in the current directory, and continuing searching into the parent down to the root.

type

(prefix: string, root?: string | undefined) => string | undefined