@tom4u/npm-project-root
v1.1.2
Published
Get the path to a Yarn or NPM based project root directory.
Downloads
1
Maintainers
Readme
npm-project-root
Installation
npm install --save-dev @tom4u/npm-project-root
Description
Get the path to a Yarn or NPM based project root directory.
Usage
import { getProjectRoot } from '@tom4u/npm-project-root';
getProjectRoot().then((rootDir: string) => { // do something here ... });