0.1.0
Retrieve a path for files or directories relative to the current file
Repository
Current version released
2 years ago
Dependencies
std
Versions
find-up-deno
Find the path of a given file or directory by walking up similar to find-up on npm.
Usage
import { findUp } from 'https://deno.land/x/find-up-deno/mod.ts';
// cwd: /home/user/foo/src/nested/
// package.json exists at /home/user/foo/package.json
const result = await findUp('package.json');
console.log(result); // /home/user/foo/package.json