Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/check-package

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/check-package

Checks the integrity of a package

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
3
Weekly downloads
 
Created
Source

@pnpm/check-package

Checks the integrity of a package

npm version Build Status

When pnpm saves a package to the store, it creates an integrity.json file. integrity.json contains a hash for each file of the package. @pnpm/check-package can check whether the resources of the package were modified, using integrity.json.

Install

Install it via npm.

npm install @pnpm/npm-resolver

Usage

'use strict'
const checkPackage = require('@pnpm/check-package').default

checkPackage('test/fixtures/good/pkg')
  .then(ok => {
    console.log(Boolean(ok))
    //> true
  })
  .catch(err => console.error(err))

API

checkPackage(packagePath) => Promise<matchedIntegrity | false>

If the package has been touched, false is returned. If the package has its "canonical" form, the content of integrity.json is returned.

License

MIT © Zoltan Kochan

Keywords

FAQs

Package last updated on 15 Mar 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc