@theclawlab/xwc
v1.0.0
Published
Chinese word count CLI for Markdown articles — counts CJK characters, bold highlights, blockquotes, and image placeholders
Maintainers
Readme
xwc — Chinese Word Count for Markdown
CLI tool for counting words in Chinese Markdown articles. Designed for content creators who write in Chinese and need accurate character counts that understand Markdown structure.
Features
- Counts CJK characters + alphanumeric tokens (excludes punctuation, spaces, Markdown syntax)
- Detects bold highlights (金句), blockquotes (段子), and image placeholders (配图)
- Supports versioned article directories (v1.md → v2.md → final.md) with compression ratio tracking
- Batch mode for scanning multiple articles at once
Install
npm install -g @theclawlab/xwcQuick Start
# Count a single file
xwc article.md
# Count all versions of an article
xwc my-article/
# Summarize all articles in a directory
xwc drafts/See USAGE.md for full documentation.
License
MIT
