
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@pnpm/check-package
Advanced tools
Checks the integrity of a package
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 it via npm.
npm install @pnpm/npm-resolver
'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))
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.
FAQs
Checks the integrity of a package
We found that @pnpm/check-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.