@tom4u/npm-project-root
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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 ... });

Package Sidebar

Install

npm i @tom4u/npm-project-root

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

4.27 kB

Total Files

7

Last publish

Collaborators

  • tom4u-personal