Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Node utility to list symlinks made by npm link
, yarn link
, or fs.link
npm install symlinked
Local install as above is best practice if you are using in a shared codebase because then all developers will use the same version. CLI can be used locally via npx or via npm scripts. npm install
has a --global
flag you can add if you prefer global use. Yarn can be used via yarn add
and yarn global add
respectively if you prefer yarn.
Usage: symlinked <command> [<path>]
Finds all linked package names of an npm package.
Commands:
names Get linked package names
paths Get linked package paths
roots Get linked package roots
links Get linked package links
Options:
-h, --help Display this usage info
require
var symlinked = require("symlinked")
symlinked.names(dir: ".")
get array of linked package namessymlinked.paths(dir: ".")
get array of linked package pathssymlinked.roots(dir: ".")
get array of linked package rootssymlinked.links(dir: ".")
get array of linked package linkssymlinked.is(path)
test if path exists and is linkedsymlinked.read(path)
read linksaid
dependency linked on both endssymlinked.names()
// [ 'said' ]
symlinked.paths()
// [ '/Users/jdoe/symlinked/node_modules/said' ]
symlinked.roots()
// [ '/Users/jdoe/symlinked/node_modules/said/node_modules' ]
symlinked.links()
// [ '/Users/said' ]
resolve.modules
configuration to resolve dependencies of linked dependenciesmodule.exports = {
resolve: {
modules: ["node_modules"].concat(symlinked.roots())
}
}
FAQs
Node utility to list packages that are npm linked
We found that symlinked demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.