Skip to content
jc-rs
GitHub

wc

--wcv1.4.0

Converts `wc` command output to JSON

LinuxmacOSFreeBSDcommandslurpable
$ wc | jc-rs --wc

A real pair

From the reference corpus (osx-10.14.6/wc-stdin.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

wcosx-10.14.6
       1       2      12
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "filename": null,
    "lines": 1,
    "words": 2,
    "characters": 12
  }
]

Fixture coverage

3/3oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs wcjc-rs runs the command itself and parses what it prints. Recognised for: `wc`

Source: crates/jc-rs-parsers/src/system/wc.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare