Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c4-string-regex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c4-string-regex

A simple Typescript template to start your package

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Pharaoh Macros

Fairly judge C4 Bot Reports by using Regex

Features

Auto-Judge all duplicates

Auto-Judge folders

Count scores

Count and store in CSV

Declare your Keys and Scores

Workflow

First Parse the Reports with Pharaoh (get a title and a score, on separate lines)

Then use the tool

## Commands

All commands are bodged, you have to open each respective file and change the CONSTANTS

    "auto": "ts-node src/auto_judge_folder.ts",
    "start": "ts-node src/index.ts",
    "dev": "ts-node src/index.ts",
    "count": "ts-node src/count.ts",
    "folder": "ts-node src/count_folder.ts",

Start / Dev

Compares one file at a time

Count

Counts Results in one File

Folder

Counts Results in one Folder (and stores in a csv)

Auto

Given a list of reports (regex selector), applies the judging to the other reports (another regex selector)

In case of multiple differente judgments it adds a TODO with all possible judging results

NOTE: Conflict resolution is nunanced, you should consider whether you would want a revert (add a Throw) or if you prefer a TODO as part of your workflow

FAQs

Package last updated on 04 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc