
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
bare-module-resolve
Advanced tools
Low-level module resolution algorithm for Bare.
npm i bare-module-resolve
const resolve = require('bare-module-resolve')
function readPackage (url) {
if (url.href === 'file:///directory/package.json') {
return {
main: './index.js'
}
}
return null
}
for (const resolution of resolve('./file', new URL('file:///directory/'), { extensions: ['.js'] }, readPackage)) {
console.log(resolution)
}
Apache-2.0
FAQs
Low-level module resolution algorithm for Bare
The npm package bare-module-resolve receives a total of 76,433 weekly downloads. As such, bare-module-resolve popularity was classified as popular.
We found that bare-module-resolve demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.