open-index/open-npm huggingface dataset:
npm package: @rdrd-agent/utils
Description: ### Install
Latest version: 0.1.2

# Utility Packages Collection

### Install

```sh
$ npm install @rdrd-agent/utils
# or
$ yarn add @rdrd-agent/utils
#or
$ pnpm add @rdrd-agent/utils
```

## Usage

### jsonrpc

```typescript
import { jsonrpc } from '@rdrd-agent/utils';

const sendData = (data: jsonrpc.Omnichannel.SentMethodData) => {
  window.parent.postMessage(data, '*');
};

const receivedData = (event: { data: jsonrpc.Omnichannel.ReceivedNotifactionData | jsonrpc.Omnichannel.ReceivedResponseData }) => {
  const { data } = event ?? {};
  if (data?.method === 'progress' && data.params.status === 'completed') {
    sendData({ jsonrpc: '2.0', method: 'login', id: 1, params: { account: 'xxx', password: 'xxx' } });
  }

  if ('id' in data && data.id === 1) {
    if ('error' in data) {
      console.log('login error, error =>', data.error);
    } else {
      console.log('login success, result =>', data.result);
    }
  }

  // to do something
};
```
npm package: @rdrudra99/hello-npm
Description: A simple npm package that says hello
Author: @Rdrudra99
Latest version: 1.0.0

# Hello NPM

A simple npm package that provides a greeting function.

## Installation

```bash
npm install @rdrudra99/hello-npm
```

## Usage

### ES Modules

```javascript
import { sayHello } from '@rdrudra99/hello-npm';

console.log(sayHello('World')); // Output: Hello, World
```

### CommonJS

```javascript
const { sayHello } = require('@rdrudra99/hello-npm');

console.log(sayHello('World')); // Output: Hello, World
```

### Browser

```html
<script src="https://unpkg.com/@rdrudra99/hello-npm/dist/umd/index.min.js"></script>
<script>
  console.log(helloNpm.sayHello('World')); // Output: Hello, World
</script>
```

## API

### sayHello(name)

Returns a greeting message with the provided name.

- **name** (string): The name to include in the greeting.
- **returns** (string): A greeting message.

## License

MIT