← 返回
开发者工具 中文

Paycheck

Calculate salary breakdowns with taxes and deductions. Use when estimating take-home pay, checking withholdings, comparing deductions, analyzing components.
计算工资明细(含税及扣除项)。用于估算实发工资、核对预扣款、比较扣除项、分析工资组成。
ckchzh
开发者工具 clawhub v2.0.2 2 版本 99823 Key: 无需
★ 0
Stars
📥 564
下载
💾 8
安装
2
版本
#latest

概述

Paycheck

Paycheck v2.0.0 — a versatile utility toolkit for recording, tracking, and managing paycheck-related data entries across multiple categories. Each command logs timestamped entries to local files, supports searching, exporting in multiple formats, and reviewing activity history. All data is stored locally with no network access required.

Commands

CommandDescription
----------------------
paycheck run Record a run entry (no args: show recent run entries)
paycheck check Record a check entry (no args: show recent check entries)
paycheck convert Record a convert entry (no args: show recent convert entries)
paycheck analyze Record an analyze entry (no args: show recent analyze entries)
paycheck generate Record a generate entry (no args: show recent generate entries)
paycheck preview Record a preview entry (no args: show recent preview entries)
paycheck batch Record a batch entry (no args: show recent batch entries)
paycheck compare Record a compare entry (no args: show recent compare entries)
paycheck export Record an export entry (no args: show recent export entries)
paycheck config Record a config entry (no args: show recent config entries)
paycheck status Record a status entry (no args: show recent status entries)
paycheck report Record a report entry (no args: show recent report entries)
paycheck statsShow summary statistics across all log files
paycheck search Search all entries for a keyword (case-insensitive)
paycheck recentShow the 20 most recent history entries
paycheck helpShow usage information
paycheck versionShow version (v2.0.0)

Note: The script also has utility-level _export (json/csv/txt) and _status (health check) functions accessible via the helper paths in the case statement.

Data Storage

All data is stored locally in ~/.local/share/paycheck/:

  • {command}.log — One file per command (e.g., run.log, check.log, analyze.log, convert.log). Each line is timestamp|value.
  • history.log — Unified activity log with timestamps for every recorded action.
  • export.{json|csv|txt} — Generated export files when using the utility-level export:
  • JSON — Array of {type, time, value} objects
  • CSV — Header row type,time,value followed by data rows
  • TXT — Sections grouped by command name with all entries

The stats command reads all .log files and reports per-file entry counts, total count, and disk usage. The search command performs case-insensitive grep across all log files and displays matches grouped by category.

Requirements

  • bash 4+ (uses local, set -euo pipefail)
  • Standard POSIX utilities: date, wc, du, tail, head, grep, sed, basename, cut, cat
  • No external dependencies, no API keys, no network access

When to Use

  1. Logging paycheck calculations — Record each salary computation with paycheck run to maintain a timestamped audit trail of pay calculations.
  2. Tracking pay comparisons — Use paycheck compare
    to log side-by-side comparisons of different pay structures, tax brackets, or benefit options.
  3. Analyzing deductions — Record analysis entries with paycheck analyze to document detailed deduction reviews for each pay period.
  4. Generating payroll reports — Use paycheck report to log periodic payroll summaries, then paycheck search to find specific entries later.
  5. Exporting pay records — Use paycheck stats for a quick summary of all recorded entries, or the utility-level export to generate JSON/CSV/TXT files for external use.

Examples

# Record a paycheck run entry
paycheck run "Monthly salary: gross 15000, tax 2250, insurance 1500, net 11250"
#   [Paycheck] run: Monthly salary: gross 15000, tax 2250, insurance 1500, net 11250
#   Saved. Total run entries: 1

# View recent run entries (no arguments)
paycheck run
# Recent run entries:
#   2025-03-18 10:00|Monthly salary: gross 15000, tax 2250, insurance 1500, net 11250

# Record an analyze entry for deduction breakdown
paycheck analyze "Q1 average deductions: federal 15%, state 5%, 401k 6%, health 3%"
#   [Paycheck] analyze: Q1 average deductions...
#   Saved. Total analyze entries: 1

# Compare two pay structures
paycheck compare "Offer A: 120k base + 10k bonus vs Offer B: 110k base + 20k bonus"

# Search all entries for a keyword
paycheck search "bonus"
# Searching for: bonus
#   --- compare ---
#     2025-03-18 10:15|Offer A: 120k base + 10k bonus vs Offer B: 110k base + 20k bonus

# View summary statistics
paycheck stats
# === Paycheck Stats ===
#   run: 1 entries
#   analyze: 1 entries
#   compare: 1 entries
#   ---
#   Total: 3 entries
#   Data size: 4.0K

# Show recent activity from the unified history log
paycheck recent
# === Recent Activity ===
#   03-18 10:00 run: Monthly salary: gross 15000...
#   03-18 10:05 analyze: Q1 average deductions...
#   03-18 10:15 compare: Offer A vs Offer B...

Output

All results are printed to stdout. Every action that records data also appends to history.log for unified tracking. Redirect output with paycheck > output.txt if needed.

Configuration

The data directory defaults to ~/.local/share/paycheck/. It is created automatically on first run.


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

版本历史

共 2 个版本

  • v2.0.2 当前
    2026-03-30 03:30 安全 安全
  • v1.0.1
    2026-03-20 05:16

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Short Drama Writer

ckchzh
短剧剧本生成器。竖屏短剧、微短剧、剧情设计、角色塑造。Short drama script generator for vertical video dramas, plot design, character building. 短剧脚本
★ 8 📥 3,521
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,336
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,821