
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.
@iyulab/oops-cli
Advanced tools
CLI for Oops - Safe text file editing with automatic backup and simple undo.
# Global installation (recommended)
npm install -g @iyulab/oops-cli
# Local installation
npm install @iyulab/oops-cli
# Start tracking a file (creates backup automatically)
oops config.txt
# Edit the file with your preferred editor
nano config.txt
# Check what changed
oops diff config.txt
# Apply changes permanently
oops keep config.txt
# Or undo changes back to backup
oops undo config.txt
# Check status of all tracked files
oops status
oops <file>
Start tracking a file safely. Creates a backup and initializes workspace if needed.
oops myfile.txt
oops src/config.js
oops /path/to/important.conf
oops diff [file]
Show changes in tracked files.
oops diff # Show all changes
oops diff config.txt # Show changes in specific file
oops keep <file>
Apply changes and stop tracking the file.
oops keep config.txt
oops undo <file>
Revert file to backup and stop tracking.
oops undo config.txt
oops status
Show status of all tracked files and workspace information.
oops status
-V, --version
- Show version number-v, --verbose
- Enable verbose output-q, --quiet
- Suppress output--no-color
- Disable colored output--workspace <path>
- Use specific workspace path--yes
- Skip confirmation prompts-h, --help
- Display help--tool <tool>
- Use external diff tool (code, vimdiff, meld)--no-color
- Disable colored diff output--no-confirm
- Skip confirmation prompt--no-confirm
- Skip confirmation promptOOPS_WORKSPACE
- Workspace path (default: temp directory)OOPS_DIFF_TOOL
- External diff tool (code, vimdiff, meld)NO_COLOR
- Disable colored output# Start tracking
oops nginx.conf
# → ✨ Creating temporary workspace at: /tmp/oops-abc123
# → 📁 Starting to track: nginx.conf
# → 💾 Backup created: .oops/files/def456/backup
# Make changes
vim nginx.conf
# Review changes
oops diff nginx.conf
# → Shows colored diff output
# Apply changes
oops keep nginx.conf
# → ✅ Changes applied to nginx.conf
# Track multiple files
oops config.js
oops package.json
oops README.md
# Check status
oops status
# → Workspace: /tmp/oops-abc123 (3 files tracked)
# → 📝 config.js - modified
# → 📝 package.json - modified
# → 📄 README.md - clean
# Review all changes
oops diff
# → Shows changes for all modified files
# Use VS Code for diff
oops diff --tool code config.txt
# Set environment variable
export OOPS_DIFF_TOOL=vimdiff
oops diff config.txt
# Use custom workspace
oops --workspace ./my-workspace config.txt
# Set via environment
export OOPS_WORKSPACE=/path/to/workspace
oops config.txt
The CLI works well with any text editor:
# With vim
oops config.txt && vim config.txt && oops diff config.txt
# With VS Code
oops package.json && code package.json
# With nano
oops .bashrc && nano .bashrc && oops keep .bashrc
#!/bin/bash
# Safe config editing script
FILE="$1"
oops "$FILE"
$EDITOR "$FILE"
echo "Review changes:"
oops diff "$FILE"
read -p "Apply changes? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
oops keep "$FILE"
echo "✅ Changes applied"
else
oops undo "$FILE"
echo "↩️ Changes reverted"
fi
File not found error
oops: error: File does not exist: nonexistent.txt
Make sure the file path is correct and the file exists.
Permission denied
oops: error: Permission denied: /etc/passwd
Ensure you have read/write permissions for the file.
Workspace corruption
oops: error: Workspace corrupted, please run: oops clean
The workspace has integrity issues. Clean and reinitialize.
oops help # General help
oops help status # Command-specific help
oops --help # Options and examples
MIT - see LICENSE for details.
FAQs
CLI for Oops - Safe text file editing with automatic backup
We found that @iyulab/oops-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.