0.2.3 • Published 4 months ago

noseyparker-compact v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Install

npm install -g noseyparker-compact

Usage

npc -f <format> (-i <file> | < file) [-o <file>]

Options

Examples

# Using stdin
cat report.json | npc -f csv
cat report.json | npc -f json -o compact.json

# Directly using noseyparker
noseyparker report -f json | npc -f csv
noseyparker report -f json | npc -f json

# Using input file
npc -f csv -i report.json
npc -f json -i report.json -o output.json

# Using npx (no installation required)
npx noseyparker-compact -f csv -i report.json
cat report.json | npx noseyparker-compact -f json

Structure

[
  {
    "rule_name": "Generic Password",
    "mime_essence": "text/plain",
    "kind": "git_repo",
    "repo_path": "./xxxxxxxxxxxx/.git",
    "blob_path": "xxxxxxxxx/xxxxxxxxxxxxxxxx/xxxxxx.xx",
    "commit_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "committer_name": "John",
    "committer_email": "John.Doe@acm.com",
    "committer_timestamp": "9999999999 +1000",
    "author_name": "John",
    "author_email": "John.Doe@acm.com",
    "author_timestamp": "8888888888 +1000",
    "message": "xxxx xxxxxxx, xxxxxx xxxxxxx, xxxxx xxxxxxxxx xxx xxxxxxxx",
    "source_span": "25@28:25@59",
    "offset_span": "531:563",
    "snippet_after": "# 'xxxxxxxx':\"xxxxxxxxxxxxxxxxxx\", # 'xxxx':'xxxxxxxxxxxxxxx', 'xxxx':\"xxxxxxxxxxxxxxxx\", 'xxxxxxxx':\"xxxxxxxxxxxxxxxxxxxx\"",
    "snippet_matching": "xxxxxxxx':\"xxxxxxxxxxxxxxxxxxxx\"",
    "snippet_before": "xxxxxx = { 'xxxxxxx':\"xxxxxxx.xxxxxxxxxxxxxx.xxxxx\", 'xxxxxxxxx':\"xxxxxxxxxx\", 'xxxxxx':\"xxxxx\", # 'xxxx': \"xxxxxxxxxxxxxxx\""
  },
  // ...
]

License

MIT

0.2.3

4 months ago

0.2.2

4 months ago

0.2.1

4 months ago

0.2.0

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago