Installation
npm install --save @types/find-pkg-dir
Summary
This package contains type definitions for find-pkg-dir (https://github.com/shinnn/find-pkg-dir).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-pkg-dir.
index.d.ts
/**
* Find the root directory of a Node.js project from a given path.
*
* @return the path for the nearest directory to startingPath containing a
* package.json file or `null` if no one found.
*
* @param startingPath The path to start searching from, e.g. __dirname
*/
declare function findPkgDir(dir: string): string | null;
export = findPkgDir;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by David GABISON.