360 Secure SkillHub
360 安全技能中心

Web Module Runner

Wmr是面向现代Web应用的终端一体化工具,核心功能涵盖Web模块的运行、检查、转换、分析等十余类操作,支持批量处理、配置对比、数据导出等。典型场景包括跟踪模块构建任务、对比配置差异、批量处理模块等。所有操作日志本地存储,可搜索查看,支持导出为JSON/CSV/TXT格式,输入为终端命令及参数,输出默认至标准输出,可重定向保存。

xueyetianya
xueyetianya
热度 64.32
最近更新 2026-05-17 15:45:11
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / 数据处理 / 自动化脚本 / DevOps ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add web-module-runner
Metadata
version
1.0.0
name
Wmr
description
👩‍🚀 The tiny all-in-one development tool for modern web apps. web-module-runner, javascript, build-tool, esmodules, preact.

Web Module Runner

👩‍🚀 The tiny all-in-one development tool for modern web apps — a versatile utility toolkit for running, checking, converting, analyzing, and managing web module tasks from your terminal.

Commands

All commands accept optional <input> arguments. Without arguments, they display recent entries from their log.

Command Description
web-module-runner run <input> Run a web module task and log the result
web-module-runner check <input> Check a module, dependency, or configuration
web-module-runner convert <input> Convert between module formats or configurations
web-module-runner analyze <input> Analyze a module, bundle, or dependency tree
web-module-runner generate <input> Generate boilerplate, configs, or module scaffolds
web-module-runner preview <input> Preview output or rendered results
web-module-runner batch <input> Batch process multiple items at once
web-module-runner compare <input> Compare two modules, builds, or configurations
web-module-runner export <input> Log an export operation
web-module-runner config <input> Log or update configuration entries
web-module-runner status <input> Log status check results
web-module-runner report <input> Generate or log a report entry
web-module-runner stats Show summary statistics across all log files
web-module-runner export json|csv|txt Export all data in JSON, CSV, or plain text format
web-module-runner search <term> Search across all log entries for a keyword
web-module-runner recent Show the 20 most recent activity entries
web-module-runner help Show all available commands
web-module-runner version Print version (v2.0.0)

Data Storage

All data is stored locally in ~/.local/share/web-module-runner/. Each command maintains its own .log file with timestamped entries in YYYY-MM-DD HH:MM|value format. A unified history.log tracks all operations across commands.

Export formats supported:

  • JSON — Array of objects with type, time, and value fields
  • CSV — Standard comma-separated with type,time,value header
  • TXT — Human-readable grouped by command type

Requirements

  • Bash 4.0+ with set -euo pipefail (strict mode)
  • Standard Unix utilities: date, wc, du, grep, tail, sed, cat
  • No external dependencies — runs on any POSIX-compliant system

When to Use

  1. Tracking web module build tasks — Log and review module runs, builds, and conversions over time
  2. Comparing module configurations — Use compare and analyze to record side-by-side evaluations
  3. Batch processing workflows — Record batch operations and review history for repeatability
  4. Generating reports from logged data — Export accumulated logs to JSON/CSV for downstream analysis
  5. Quick health checks — Use status and stats to verify the toolkit state and entry counts at a glance

Examples

# Run a module task and log it
web-module-runner run "build main.js --target es2020"

# Analyze a dependency
web-module-runner analyze "preact@10.x bundle size"

# Batch process multiple modules
web-module-runner batch "convert all legacy modules to ESM"

# Search for previous entries containing a keyword
web-module-runner search "preact"

# Export everything to JSON for external tooling
web-module-runner export json

# View summary statistics
web-module-runner stats

# Show recent activity log
web-module-runner recent

How It Works

Web Module Runner stores all data locally in ~/.local/share/web-module-runner/. Each command creates a dedicated log file (e.g., run.log, check.log, analyze.log). Every entry is timestamped and appended, providing a full audit trail of all operations. The history.log file aggregates activity across all commands for unified tracking.

When called without arguments, each command displays its most recent 20 entries, making it easy to review past work without needing to manually inspect log files.

Output

All output goes to stdout. Redirect to a file with:

web-module-runner stats > report.txt
web-module-runner export json  # writes to ~/.local/share/web-module-runner/export.json

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com