open-index/open-npm huggingface dataset:
npm package: @sneezry/benchctl
Description: **benchctl** is a CLI tool designed to generate benchmark references for **ISO 5055 Security-related CWEs** using GitHub CodeQL. It automates the process of setting up CodeQL, preparing query suites (including gap queries for missing coverage), fetching C
Latest version: 0.1.3

# benchctl

**benchctl** is a CLI tool designed to generate benchmark references for **ISO 5055 Security-related CWEs** using GitHub CodeQL. It automates the process of setting up CodeQL, preparing query suites (including gap queries for missing coverage), fetching CodeQL databases, and analyzing repositories to produce structured findings.

## Installation

```bash
npm install -g @sneezry/benchctl
```

## Prerequisites

*   **Node.js**: >= 18
*   **CodeQL CLI**:
    *   **macOS/Linux**: `benchctl` can automatically download and install the CodeQL CLI.
    *   **Windows**: You may need to install the CodeQL CLI manually if it's not found in your path or `CODEQL_BINARY` environment variable.

## Usage

The typical workflow involves four steps:

### 1. Setup

Ensure the CodeQL CLI is installed and available.

```bash
benchctl setup
```

### 2. Prepare

Generate the ISO 5055 query suites and gap queries. This step scans existing CodeQL packs to determine coverage and generates "gap queries" for CWEs that are applicable but not covered by standard queries.

```bash
benchctl prepare
```

*   Use `--no-pull` to skip updating CodeQL packs if you are offline or want to save time.

### 3. Fetch Database

Download a CodeQL database for a specific GitHub repository.

```bash
benchctl fetch-db <owner>/<repo>
```

Example:
```bash
benchctl fetch-db expressjs/express
```

### 4. Analyze

Run the analysis using the generated ISO 5055 suites.

```bash
benchctl analyze <owner>/<repo> [options]
```

**Options:**

*   `--kind <gap|real|all>`: Filter findings by evidence type.
    *   `real`: Only show findings from actual CodeQL queries.
    *   `gap`: Only show findings from generated gap queries (indicating missing coverage).
    *   `all`: Show all findings (default).
*   `--output <file>`: Write the JSON results to a specific file.

**Example:**

```bash
benchctl analyze expressjs/express --kind all --output results.json
```

## Global Options

*   `--no-interactive`: Disable the interactive UI (spinners, progress bars) and use plain console logging. This is automatically enabled in CI environments.

## License

MIT
npm package: @snehabahuguna/core
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.
Latest version: 0.0.1

# Core

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.

## Code scaffolding

Run `ng generate component component-name --project core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core`.
> Note: Don't forget to add `--project core` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build core` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build core`, go to the dist folder `cd dist/core` and run `npm publish`.

## Running unit tests

Run `ng test core` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).