open-index/open-npm huggingface dataset:
npm package: @speedmeter/cli
Description: Command-line tool for testing internet speed via SpeedMeter.dev
Author: SpeedMeter.dev
Latest version: 1.0.0

# SpeedMeter CLI

Command-line tool for testing internet speed via [SpeedMeter.dev](https://speedmeter.dev).

## Installation

```bash
npm install -g @speedmeter/cli
```

Or run without installing:

```bash
npx @speedmeter/cli
```

## Usage

```bash
# Run speed test
speedmeter

# Output as JSON (for scripts)
speedmeter --json

# Simple output (no progress animation)
speedmeter --simple

# Use custom server
speedmeter --server custom.speedmeter.dev
```

## Options

| Option | Alias | Description |
|--------|-------|-------------|
| `--help` | `-h` | Show help message |
| `--version` | `-v` | Show version |
| `--json` | `-j` | Output results as JSON |
| `--simple` | `-s` | Simple output without progress |
| `--server <url>` | `-S` | Use custom server |

## Output Example

```
🚀 SpeedMeter.dev CLI v1.0.0
   Server: https://speedmeter.dev

   Your IP: 192.168.1.1

   Ping:     15 ms (jitter: 2.3 ms)
   Download: 245.32 Mbps
   Upload:   98.45 Mbps

   ─────────────────────────────────
   Results:
   Download: 245.32 Mbps
   Upload:   98.45 Mbps
   Ping:     15 ms
   Jitter:   2.3 ms
   ─────────────────────────────────
```

## JSON Output

```bash
speedmeter --json
```

```json
{
  "download": 245.32,
  "upload": 98.45,
  "ping": 15,
  "jitter": 2.3,
  "server": "https://speedmeter.dev",
  "ip": "192.168.1.1",
  "timestamp": "2024-01-09T12:00:00.000Z"
}
```

## Use in Scripts

```bash
# Bash
SPEED=$(speedmeter --json | jq '.download')
echo "Download speed: $SPEED Mbps"

# PowerShell
$result = speedmeter --json | ConvertFrom-Json
Write-Host "Download: $($result.download) Mbps"
```

## Requirements

- Node.js 14.0.0 or higher
- Internet connection

## Links

- Website: [speedmeter.dev](https://speedmeter.dev)
- GitHub: [github.com/miskatul-anwar/speedmeter-cli](https://github.com/miskatul-anwar/speedmeter-cli)

## License

MIT
npm package: @speedsters/performance
Description: A simple way of testing your application performance
Author: Diego Oliveira
Latest version: 0.1.0

# Speedsters

A simple way of tracking your javascript app speed.

#### SETUP
In your main/root js file import `@speedsters/react` and initiate the connection.

```js
import sperformance from '@speedsters/performance';

const connectionOptions = {
  name: 'My Application name',
};

sperformance.connect(connectionOptions);

```

#### Start/Stop a performance
Once you've connected you're ready to go.

```js
import sperformance from '@speedsters/performance';

/*
 * sperformance.start(@key, @group, @options);
 * @key: The performance name.
 * @group: You can group multiple @keys.
 * @options: { milliseconds } // how long this performance should tale.
 */

/*
 * The start method returns a object and on that
 * object return a stop() method that you can use
 * to stop the performance
*/
const track_a = sperformance.start('initial-loading');
track_a.stop();


// You can just call start/stop as well
const homePageGroupKeyName = 'home-page';
sperformance.start('loop-data', homePageGroupKeyName);
sperformance.stop('loop-data-2', homePageGroupKeyName);

const track_c = sperformance.start('page-transition', homePageGroupKeyName, {
  milliseconds: 1000,
});
track_c.stop();


const track_d = sperformance.start('image-load', null, {
  milliseconds: 2000,
});

track_d.stop();

```
npm package: @speedsters/react
Description: A simple way of testing your react application performance
Author: Diego Oliveira
Latest version: 0.2.0

# Speedsters

A simple way of tracking your react/react-native render/methods speed.

#### SETUP
In your main/root react file import `@speedsters/react` and initiate the connection.

##### React-js
```tsx
...
import ReactDOM from 'react-dom';
import sreact from '@speedsters/react';

const connectionOptions = {
  name: 'My Application name',
};
sreact.connect(connectionOptions);

```

##### React-Native
```tsx
...
import { AppRegistry, Platform} from 'react-native';
import sreact from '@speedsters/react';

const connectionOptions = {
  name: 'My Application name',

  /*
   * Since emulator on Android runs on it's own
   * VM we need to change the default host name
   * for the connection.
   * 
   * NOTE:
   * If you're using Expo may need to change to
   * another host.
   */
  host: Platform.select({
    ios: 'localhost',
    android: '10.0.2.2',
  }),
};


sreact.connect(connectionOptions);
```

#### Tracking
Once you've connected you're now able to track the performance
of you react/react-native class

```jsx
import React from 'react';
import sreact from '@speedsters/react';

export default class App extends React.Component<Props, State> {
  constructor(props) {
    super(props);

    const options = {
      excludes: {
        // Exclude this method.
        handlePushViewButton: true,
      },
      // specify the performance that you wanna this component to have
      milliseconds: 16;
    };

    sreact.classComponent(this, options);

    /*
     * Because those methods are been bind in the constructor 
     * it will be measure by the sreact.classComponent.
     */
    this.handleChangeViewButton = this.handleChangeViewButton.bind(this);
    this.handlePushViewButton = this.handlePushViewButton.bind(this);
  }

  handleChangeViewButton() {
    ...
  }

  handlePushViewButton() {
    ...
  }

  // Arrow function will not be measured.
  handleEditButton = () => {
    ...
  };
}
```

#### THAT'S IT
And you're ready to rock! open the speedsters desktop application reload your
react/react-native app and all your performance measurement will show there.