UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

12 lines (11 loc) 462 B
import { type PackageJson } from 'type-fest'; /** * Read the `package.json` file contained within the given directory. * * @category Node : Npm * @category Package : @augment-vir/node * @throws `TypeError` if the given directory has no `package.json` or the `package.json` is * invalid. * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare function readPackageJson(dirPath: string): Promise<PackageJson>;