
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.
torrent-clean
Advanced tools
CLI utility deletes files not listed in selected torrent. Useful when torrent is updated and some files have been removed.
npm i -g torrent-clean
C:\Downloads\NaturePack\torrent-clean -t C:\torrents\nature-pack.torrent
gets files' paths from nature-pack.torrent
and compares them with files from C:\Downloads\NaturePack\
. Then files not presented in nature-pack.torrent
can be deleted.
torrent-clean
has tc
alias.
--torrent
(or -t
) - Torrent id (as described in webtorrent api)
magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36
)d2474e86c95b19b8bcfdb92bc12c9d44667cfa36
)--dir
(or -d
) - Path to directory with downloaded files
--version
- Outputs the app version
torrent-clean
allows specifying some parameters via config file (.torrent-cleanrc
, .torrent-cleanrc.json
, .torrent-cleanrc.yaml
, .torrent-cleanrc.yml
or .torrent-cleanrc.js
). There are might be many files - torrent-clean
will collect and merge all files up to root directory. The closer config to the directory is, the higher its priority
Parameter are:
ignore
- an array of globs (picomatch) or filenames that will be excluded from the list of extra files.cleanTorrentDir
accepts options object:
{
torrentId: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
// Directory to clean
directoryPath: 'C:/Downloads/wallpapers/nature',
// Do not delete files immediately. Instead return `deleteFiles` function
dryRun: true,
// Config with highest priority
customConfig: { ignore: ['**/*\(edited\)*'] }
}
const cleanTorrentDir = require('torrent-clean')
const { extraFiles } = await cleanTorrentDir({
torrentId: 'C:/Downloads/torrents/nature wallpapers.torrent',
directoryPath: 'C:/Downloads/wallpapers/nature'
})
console.log('Removed', extraFiles)
const cleanTorrentDir = require('torrent-clean')
const { extraFiles, deleteFiles } = await cleanTorrentDir({
torrentId: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
directoryPath: 'C:/Downloads/wallpapers/nature',
dryRun: true,
customConfig: { ignore: ['**/*\(edited\)*'] }
})
console.log('Removing', extraFiles)
await deleteFiles(extraFiles)
1.6.0 - 2020-04-12
dryRun
options to postpone deleting filestc
as alias for torrent-clean
recursive-readdir
with readdirp
FAQs
Deletes files that are not listed in selected torrent file
The npm package torrent-clean receives a total of 9 weekly downloads. As such, torrent-clean popularity was classified as not popular.
We found that torrent-clean 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.