open-index/open-npm huggingface dataset:
npm package: @jcyrss/hyload
Description: Node.js performance testing framework
Author: jcyrss
Latest version: 0.1.4

# hyload

`hyload` is a Node.js library for writing HTTP/API load test scripts.

## Install

```bash
npm install @jcyrss/hyload
```

## Exports

```js
import {
  Stats,
  HttpClient,
  HttpResponse,
  runTask,
  waitForTasksDone,
  sleep
} from '@jcyrss/hyload';
```

## Quick Start

```js
import { Stats, HttpClient, runTask, waitForTasksDone, sleep } from '@jcyrss/hyload';

Stats.start();

async function behavior(username, password) {
  const client = new HttpClient({ timeout: 10000, connections: 4 });
  try {
    const res = await client.post('http://127.0.0.1/api/mgr/signin', {
      data: { username, password }
    });

    if (res.statusCode !== 200) {
      Stats.one_error('signin failed');
    }
  } finally {
    await client.close();
  }
}

for (let i = 0; i < 10; i++) {
  runTask(behavior, `user${i}`, '88888888');
  await sleep(1000);
}

await waitForTasksDone();
```

## HttpClient options

- `timeout`: request timeout in milliseconds, default `10000`
- `connections`: max connections per origin within the selected pool scope, default `1000`
- `poolScope`: connection reuse scope, one of `client` (default), `global`, or `none`
- `pipelining` is fixed to `1`
- `debug`: set to `true` to print request and response URL, headers, and body

`client` reuses keep-alive connections only inside the current `HttpClient` instance, which is the default and better matches one virtual user owning one client session. `global` keeps the old process-wide shared pool behavior. `none` disables keep-alive reuse and sends requests with `Connection: close`.

If you create short-lived `HttpClient` instances, call `await client.close()` when the virtual user finishes so idle sockets are released promptly.

## Monitor

`stats_center` is a local Node.js monitor for loading existing stats files, merging per-second data, and showing charts in the browser.

### Start

```bash
npx hyload-stats-center
```


By default it listens on `http://127.0.0.1:14799`.

You can change the host and port with environment variables:

```bash
set STATS_CENTER_HOST=0.0.0.0
set STATS_CENTER_PORT=14799
npx hyload-stats-center
```

You can also pass command line arguments directly:

```bash
npx hyload-stats-center --host 0.0.0.0 --port 14799
```


> On Windows PowerShell, the generated `hyload-stats-center.ps1` shim may be blocked. If that happens, run `hyload-stats-center.cmd` or `cmd /c hyload-stats-center` instead.

### Features

- Displays listening address and health status
- Draws `rps` / `tps` / `tops` / `eps` / `avgRespTime` with ECharts
- Shows aggregated sender counts
- Provides `Plot` and `Clear` buttons
npm package: @jd-carroll/gatsby-remark-external-links
Description: Automatically adds the target and rel attributes to external links in markdown.
Author: Joseph Carroll
Latest version: 0.1.0

# gatsby-remark-external-links
Adds the target and rel attributes to external links in markdown.

This is a gatsby port of the [remark-external-links](https://github.com/xuopled/remark-external-links) remark plugin.

## Usage 
1. Install plugin to your site:

```bash
yarn add gatsby-remark-external-links
```

2. Add following to your `gatsby-config.js`:
```js
    plugins: [      
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
          {
            resolve: "gatsby-remark-external-links",
            options: {
              target: "_self",
              rel: "nofollow"
            }
          }
          ]
        }
      },
```

3. Restart gastby.

## API

#### options

##### target

Type: `string`
Default: `_blank`

Specifies where to display the linked URL.
The value should be on of : `_self`, `_blank`, `_parent`, `_top`

*You can specify `null` to not add the `target` attribute to your links*

##### rel

Type: `string`
Default: `nofollow noopener noreferrer`

Specifies the relationship of the target object to the link object.
The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).

*You can specify `null` to not add the `rel` attribute to your links*

*[When using target, consider adding rel="noopener noreferrer" to avoid exploitation of the window.opener API.](https://developer.mozilla.org/en/docs/Web/HTML/Element/a)*

## License

MIT
npm package: @jd-wmfe/honeycomb-types
Description: Shared types and DTOs for MCPool project
Author: BDSH_BEST_AI
Latest version: 0.0.1

# tsdown-starter

A starter for creating a TypeScript package.

## Development

- Install dependencies:

```bash
npm install
```

- Run the unit tests:

```bash
npm run test
```

- Build the library:

```bash
npm run build
```
npm package: @jd1378/feathers-casl
Description: Add access control with CASL to your feathers application.
Author: fratzinger
Latest version: 3.1.9

# feathers-casl

## =========== IMPORTANT ============

This is a fork of [feathers-casl](https://www.npmjs.com/package/feathers-casl) package, made solely for releasing the PRs I made to the original library for my own use.

## License

Licensed under the [MIT license](LICENSE).

<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" /> </a>