JSPM

  • Created
  • Published
  • Downloads 315392
  • Score
    100M100P100Q176886F
  • License MIT

Read a package.json

Package Exports

  • @pnpm/read-package-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/read-package-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@pnpm/read-package-json

Read a package.json

npm version Build Status

Installation

npm i -S @pnpm/read-package-json

Usage

import readPackageJson from '@pnpm/read-package-json'

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

API

default: readPackageJson(path): Promise<PackageJson>

Arguments

  • path - String - path to the package.json

fromDir(path): Promise<PackageJson>

Arguments

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

License

MIT © Zoltan Kochan