
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@ltcode/crosshot
Advanced tools
Cross-platform desktop screenshot utility for Node.js applications
# Install globally
npm install -g @ltcode/crosshot
# Use CLI
crosshot --help
crosshot -n="screenshot" -f="jpg" -q=85
// Use as library
import { captureScreen } from '@ltcode/crosshot';
const result = await captureScreen({
filename: 'my-screenshot',
format: 'png',
returnBase64: true // ✨ NEW: Get base64 data
});
console.log(result.filepath); // File saved
console.log(result.base64); // Data URL for web use
captureScreen(options)const result = await captureScreen({
outputDir: './screenshots/', // Output directory
filename: 'capture', // Filename (without extension)
format: 'png', // png, jpg, webp, bmp
quality: 100, // 1-100 for lossy formats
returnBase64: false, // Include base64 in result
silent: true // Suppress console output
});
Returns:
{
success: true,
filename: "capture.png",
filepath: "./screenshots/capture.png",
size: { bytes: 1024, kb: 1.0, mb: 0.001 },
tool: "spectacle",
platform: "linux",
format: "png",
base64?: "data:image/png;base64,iVBORw0KGg...", // if returnBase64: true
base64Raw?: "iVBORw0KGg..." // if returnBase64: true
}
# Basic usage
crosshot
# Custom filename and format
crosshot -n="screenshot" -f="jpg" -q=85
# Custom output directory
crosshot -o="~/Screenshots/" -f="webp"
# Help
crosshot --help
Linux: grim, spectacle, gnome-screenshot, wayshot, scrot, maim
Windows: PowerShell (native), NirCmd
macOS: screencapture (native)
MIT © Lucas Tiago
FAQs
Cross-platform desktop screenshot utility
We found that @ltcode/crosshot demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.