UNPKG

@jsdocs-io/extractor

Version:

The API extractor for npm packages powering jsdocs.io

6 lines (5 loc) 216 B
import { readPackage } from "read-pkg"; /** `getPackageJson` returns the `package.json` file found in the given directory. */ export async function getPackageJson(dir) { return await readPackage({ cwd: dir }); }