
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
read-closest-package
Advanced tools
Reads the closest package.json file and parses its JSON.
require('read-closest-package')(function(err, data, filename) {
console.log(data.version)
console.log(data.description)
console.log(filename)
})
Also has a sync API which returns null
on any errors:
var closest = require('read-closest-package')
var pkg = closest.sync()
if (pkg)
console.log(pkg.version)
closest([opt], cb)
Looks for the closest package and calls the callback cb
with (err, data, filename)
.
cwd
the working directory to search up from for the package.json (defaults to process.cwd()
)filter
a filter passed to closest-packageIf there was an error finding the pacakge or parsing JSON, err
will be non-null.
data = closest.sync([opt])
The same as above, but synchronous. Returns null on any errors.
MIT, see LICENSE.md for details.
FAQs
reads the closest package.json file
The npm package read-closest-package receives a total of 2,675 weekly downloads. As such, read-closest-package popularity was classified as popular.
We found that read-closest-package 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.