New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

joe-audit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joe-audit

A security dependency audit tool for local and remote projects

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

joe-audit

A lightweight security dependency audit tool for frontend projects, built on npm audit, providing a clean command-line interface and standard Markdown audit reports.

Features

  • Fast Installation: One-click installation via npm
  • Command-line Interface: Intuitive and easy-to-use CLI tool
  • Interactive Operation: Supports parameter-less query mode
  • Multi-target Support: Local directory and remote repository auditing
  • Custom Output: Support for specifying audit report filenames
  • Markdown Reports: Generate standardized audit result documents
  • npm audit Integration: Use npm's official audit functionality
  • Real-time Progress Display: Dynamically show audit progress and current stage
  • Animation Effects: Provide smooth rotation animations to enhance user experience

System Requirements

  • Node.js: v14.13.0 or higher (supports ES modules)
  • Dependencies: Only ejs is required as a template engine

Installation

npm install joe-audit --save-dev

Global Installation

npm install -g joe-audit

Quick Start

Command-line Usage

Basic Usage

# Interactive audit of current directory
joe-audit

# Audit specified local directory
joe-audit /path/to/your/project

# Audit remote repository
joe-audit https://github.com/yourusername/your-repo

Custom Output File

# Audit current directory and specify output file
joe-audit -o my-audit.md

# Audit specified directory and customize output
joe-audit /path/to/project -o project-audit.md

# Audit remote repository and customize output
joe-audit https://github.com/yourusername/your-repo -o repo-audit.md

Available Command Aliases

The tool provides multiple command aliases, you can choose to use according to your personal preference:

  • joe-audit (Recommended)
  • joeaudit
  • joeAudit
  • JoeAudit

Command Parameters

ParameterShortDescription
<target>-Audit target, which can be a local directory path or remote repository URL
--output <filename>-oCustom audit report output filename
Default: joe-audit-result-YYYYMMDDHHMMSS.md
--help-hShow help information
--version-vShow current version

Help Command

joe-audit --help

Usage as Node.js Module

import { auditPackage } from 'joe-audit';

// Audit local project
await auditPackage('/path/to/local/project', 'audit-result.md');

// Audit remote repository
await auditPackage('https://github.com/yourusername/your-repo', 'repo-audit.md');

API

auditPackage(projectRoot, outputFile)

Execute frontend dependency security audit.

Parameters:

  • projectRoot (string): Project root directory path or remote repository URL
  • outputFile (string): Audit report output filename

Return Value:

  • Promise<void>: Promise resolved after audit completion

Progress Display

During the audit process, the tool will display a progress bar in real-time, allowing you to understand the current audit progress:

Progress Bar Information

The progress bar includes the following information:

  • Completion percentage: Shows the overall progress of the audit
  • Current stage: Shows the current step of the audit (7 steps total)
  • Animation effect: Shows a rotation animation in time-consuming steps (| → / → - → )

Audit Steps

The complete audit process includes the following 7 steps:

  • Create temporary working directory
  • Parse project structure and dependency information
  • Generate dependency lock file
  • Execute security audit
  • Generate audit report
  • Clean up temporary files
  • Save audit results

Progress Bar Example

进度: [██████████████████░░░░░░░░░░░░░░░░░░░░░] 50% | 阶段: 步骤 4/7 | 执行安全审计 /

Audit Report Format

The generated Markdown report contains the following content:

  • Project name and audit title
  • Audit results summary
  • Vulnerability details (if any):
    • Vulnerability level (High/Medium/Low)
    • Vulnerability description
    • Affected packages and versions
    • Fix recommendations

Example Output

# `your-project` Audit Results

## Audit Summary

✅ No security vulnerabilities found

All direct and indirect dependencies passed the security audit.

License

ISC

Contributing

Welcome to submit Issues and Pull Requests to help improve this tool!

Feedback

If you encounter any problems during use, please submit an Issue on the GitHub repository: https://github.com/qiao915/joe-audit/issues

Languages

Keywords

security-audit

FAQs

Package last updated on 10 Dec 2025

Did you know?

Socket

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.

Install

Related posts