@pnpm/read-package-json
v1000.0.1
Published
Read a package.json
Downloads
1,083,486
Readme
@pnpm/read-package-json
Read a package.json
Installation
pnpm add @pnpm/read-package-json
Usage
import readPackageJson from '@pnpm/read-package-json'
const pkgJson = await readPackageJson('package.json')
API
default: readPackageJson(path): Promise<PackageManifest>
Arguments
path
- String - path to thepackage.json
fromDir(path): Promise<PackageManifest>
Arguments
path
- String - path to the directory with thepackage.json
License
MIT