Socket
Socket
Sign inDemoInstall

@pnpm/read-package-json

Package Overview
Dependencies
37
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pnpm/read-package-json

Read a package.json


Version published
Weekly downloads
278K
decreased by-10.06%
Maintainers
2
Install size
768 kB
Created
Weekly downloads
 

Readme

Source

@pnpm/read-package-json

Read a package.json

npm version

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 the package.json

fromDir(path): Promise<PackageManifest>

Arguments

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

License

MIT

Keywords

FAQs

Last updated on 09 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc