Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

pnpm/read-package-json

Repository files navigation

this package was moved to the pnpm monorepo: https://github.com/pnpm/pnpm

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published