<commit_before>json-map

streaming command line newline-delimited json transformer utility

Usage:

  json-map "<expression>"
  
Options

  --no-parse     treats incoming data as newline separated strings, skips JSON.parse
  --file         load a file as a transform instead of using "<expression>"
  --through      boolean, default false, treat file/expression as a through stream

Example

  cat foo.json | json-map "this.foo = bar"<commit_msg>fix usage<commit_after>jsonmap

streaming command line newline-delimited json transformer utility

Usage:

  jsonmap "<expression>"
  
Options

  --no-parse     treats incoming data as newline separated strings, skips JSON.parse
  --file         load a file as a transform instead of using "<expression>"
  --through      boolean, default false, treat file/expression as a through stream

Example

  cat foo.json | jsonmap "this.foo = bar"
{'fraction_non_alphanumeric': 0.07344632768361582, 'fraction_numerical': 0.0, 'mean_word_length': 3.4079601990049753, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6828935', 'n_tokens_mistral': 243, 'n_tokens_neox': 234, 'n_words': 98}