Back to Home
kmalakoff icon

npm-check-prepublish

Verified Safe

by kmalakoff

Overview

A verification tool for npm packages (modules, CLI tools) to catch common packaging and runtime issues before publishing.

Installation

Run Command
npx npm-check-prepublish

Security Notes

The project uses 'eval' in its `bin/cli.js` entry point for dual ESM/CJS compatibility. While this is a recognized pattern for this specific use case to ensure a single executable works across module environments without requiring two separate bin files, `eval` is generally a high-risk function and warrants careful scrutiny. However, in this context, it's not used for arbitrary user input. The tool also extensively uses `child_process.execSync` to run `npm` commands and the package's own CLI binaries. These commands are constructed internally from `package.json` fields or hardcoded strings, not directly from untrusted user input, which mitigates the risk. There are no apparent hardcoded secrets or malicious network activity beyond standard npm operations.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Stars0
Forks0
Last Update2025-12-27

Tags

npmpackageverificationtestingCLI