Skip to content
qino

Since 0.1.0

MarkdownStats

The return type of getMarkdownStats.

@qino/cms/utils
import type { MarkdownStats } from "@qino/cms/utils";

type MarkdownStats = {
  wordCount: number;
  proseCharacterCount: number;
  sourceCharacterCount: number;
};

Fields

FieldDescription
wordCountWord-like segments in the extracted prose
proseCharacterCountGrapheme count of the prose after whitespace collapsing
sourceCharacterCountGrapheme count of the raw input, including syntax and code

See getMarkdownStats for what counts as prose.