npm.io
0.1.0 • Published 3 years ago

@wei-tools/fund-up

Licence
MIT
Version
0.1.0
Deps
1
Size
6 kB
Vulns
0
Weekly
0

find-up

Find the corresponding file in the current or higher directory.

usage

# npm install @wei-tools/find-up
# yarn add @wei-tools/find-up
import findUp, { findUpSync } from '@wei-tools/find-up';

// "/home/user/Desktop/project/node_modules/@wei-tools/find-up"
await findUp('/node_modules/@wei-tools/find-up');
// "/home/user/Desktop/project/node_modules/@wei-tools/find-up"
findUpSync('/node_modules/@wei-tools/find-up');