npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jmeter-cli

v1.0.1

Published

```markdown # JMeter CLI - Automated Performance Testing

Readme

# JMeter CLI - Automated Performance Testing

## Overview

The **JMeter CLI** is an automation tool designed to streamline the execution of JMeter scripts. It provides a command-line interface for running performance tests, managing configurations, and generating detailed test reports.

## Key Features

- Easy selection of test modules and sub-modules.
- Configurable user input for performance parameters like number of users, ramp-up period, and loop count.
- Automated result generation in CSV and HTML formats.
- Flexible directory structure for scripts, data files, and output files.

---

## Directory Structure

Here’s the organized structure of the JMeter CLI:

. ├── config.json # Configuration file for script paths and settings ├── datafiles/ # Directory containing input CSV files for JMeter scripts ├── jmeter-scripts/ # Directory containing JMeter (.jmx) scripts ├── output_files/ # Directory for storing test output (CSV/HTML) │ ├── CSV Output/ │ ├── HTML Output/ ├── run.mjs # Main CLI script for automation ├── docs/ # Learning and reference materials for JMeter


---

## Installation

Install the CLI globally via [npm](https://www.npmjs.com/) to make it available as a command-line tool:

```bash
npm install -g jmeter-cli

Configuration

The config.json file defines server settings, script paths, and data file mappings. Below is an example:

{
  "server_ip": "<your_server_ip>",
  "scripts": [
    {
      "name": "Client",
      "scriptPath": "jmeter_scripts/client.jmx",
      "csvFileName": "client.csv"
    },
    {
      "name": "Corporate Events",
      "subScripts": [
        {
          "name": "Equity Rights",
          "scriptPath": "jmeter_scripts/corporate_events/equity_rights.jmx",
          "csvFileName": "corporate_events/equity_rights.csv"
        }
      ]
    }
  ]
}
  • server_ip: Replace with the IP of the target server.
  • scriptPath: Path to the .jmx file.
  • csvFileName: Input file used by the script.

Usage

Run the CLI using the jmeter-cli command:

  1. Start the CLI:

    jmeter-cli
  2. Follow the prompts:

    • Select a module: Choose a main test script.
    • Select a sub-script (if applicable).
    • Enter test parameters: Number of users, ramp-up period, and loop count.
  3. The CLI runs the JMeter test and generates output files in the output_files/ directory.


Example

jmeter-cli

Prompt Interaction:

  1. Select a module: Report Dashboard
  2. Select a sub-module: Report Dashboard - PowerBI
  3. Enter the number of users: 100
  4. Enter the ramp-up period: 60
  5. Enter the loop count: 10

Output:

  • CSV file: output_files/CSV Output/Report Dashboard/Report Dashboard - PowerBI_2025-01-12.csv
  • HTML file: output_files/HTML Output/Report Dashboard/Report Dashboard - PowerBI_2025-01-12.html

Dependencies

This CLI uses the following packages:

  • chalk: For styled terminal output.
  • inquirer: For interactive prompts.
  • cheerio: For parsing JMX files.
  • ora: For loading spinners.

Install dependencies:

npm install

Contributing

We welcome contributions! If you have ideas or bug fixes, please submit a pull request or open an issue.


Suggestions or changes you'd like in this?