1.0.0 • Published 3 years ago
dir-finder v1.0.0
dir-finder
TypeScript Library for finding directory.
By this library, you can find git/node root easily in your code.😉
install
$ npm i dir-finder
How to use
Find git root
function find by .git
existing
import { find_git_root } from './index';
// find git root
const res = find_git_root(__dirname);
Find node root
function find by node_modules
existing
import { find_git_root } from './index';
// find node root
const res = find_node_root(__dirname);
1.0.0
3 years ago