@types/find-pkg-dir
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/find-pkg-dir

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types