
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Get the MD5-sum of a given directory, with low memory usage, even on huge files.
Get the MD5-sum of a given directory, with low memory usage, even on huge files.
npm install --save md5-dir
const md5Dir = require('md5-dir')
/* Async usage */
md5Dir('Documents', (err, hash) => {
if (err) throw err
console.log(`The MD5 sum of Documents is: ${hash}`)
})
/* Sync usage */
const hash = md5Dir.sync('Documents')
console.log(`The MD5 sum of Documents is: ${hash}`)
You can optionally exclude the callback argument to receive a promise:
const md5Dir = require('md5-dir')
md5Dir('Documents').then(hash => {
console.log(`The MD5 sum of Documents is: ${hash}`)
})
md5Dir(dirname: string[, options: Options], cb?: function)
Asynchronously get the MD5-sum of the directory at dirname
.
The callback cb
will be called with (err: Error, hash: string)
.
md5Dir.sync(dirname: string[, options: Options]) => string
Synchronously get the MD5-sum of the directory at dirname
.
Options
ignore
File or list of files to ignore. Follows the same format as .gitignore
-files. Uses the ignore
module.
MIT
FAQs
Get the MD5-sum of a given directory, with low memory usage, even on huge files.
The npm package md5-dir receives a total of 563 weekly downloads. As such, md5-dir popularity was classified as not popular.
We found that md5-dir 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.