
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
nzb-cleanup
Advanced tools
Library and CLI tool to help clean up NZB file names.
# library only
$ npm i nzb-cleanup
# cli tool
$ npm i nzb-cleanup -g
The library exports a single function that will take an NZB file name, and return a cleaned up version of it:
const cleanup = require('nzb-cleanup');
let NZBNAME = '[Gr0uP] my tv show season 3 episode 8 awesome title HDTV H.264.nzb';
console.log( cleanup(NZBNAME) );
// → My.Tv.Show.S03E08.Awesome.Title.HDTV.x264-Gr0uP.nzb
The function takes an optional numerical argument to specify a score threshold, below which the original file name will be returned (to prevent mis-parsing particularly badly formatted file names). The default threshold is 100 (a typical successful parse yields a score of about 300 or higher).
The CLI tool accepts one or more NZB file names to clean up, and optionally an option to set the threshold (see Library):
$ nzb-cleanup [-t threshold] NZBNAME [NZBNAME ...]
Thanks to @skerit for their awesome epinfer
module!
FAQs
Clean up NZB file names
We found that nzb-cleanup 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.