tokmd-content 1.9.0

Content scanning helpers for tokmd analysis (TODOs, duplicates, imports).
Documentation

tokmd-content

Read, hash, and score file content for tokmd analysis.

Problem

Use this crate when path listings are not enough and you need bounded content sampling for tags, entropy, hashes, or function-level complexity.

What it gives you

  • read_head, read_head_tail, read_lines, read_text_capped
  • is_text_like, hash_bytes, hash_file
  • count_tags, entropy_bits_per_byte
  • complexity::analyze_functions
  • complexity::estimate_cyclomatic_complexity
  • complexity::estimate_cognitive_complexity
  • complexity::analyze_nesting_depth

Quick use / integration notes

[dependencies]
tokmd-content = { workspace = true }

Use the head/tail readers for bounded sampling, then feed the bytes into entropy or tag checks.

Go deeper

Tutorial: Root README How-to: Recipes Reference: Source Reference: Complexity module Explanation: Architecture