Files
pnpm/pkg-manifest/reader

@pnpm/pkg-manifest.reader

Read a package.json

npm version

Installation

pnpm add @pnpm/pkg-manifest.reader

Usage

import { readPackageJson } from '@pnpm/pkg-manifest.reader'

const pkgJson = await readPackageJson('package.json')

API

default: readPackageJson(path): Promise<PackageManifest>

Arguments

  • path - String - path to the package.json

fromDir(path): Promise<PackageManifest>

Arguments

  • path - String - path to the directory with the package.json

License

MIT