open-index/open-npm huggingface dataset:
npm package: @ruso/nestjs-socket-client
Description: A minimal Socket-IO client wrapper for your NestJS applications
Author: Ruslan Gonzalez
Latest version: 0.1.0

# NestJS Socket.IO Client

A minimal Socket-IO client wrapper for your NestJS applications.

## Instalation

> Package has to be installed with the socket.io-client v4+.

Via npm `npm install @ruso/nestjs-socket-client socket.io-client`

Via yarn `yarn add @ruso/nestjs-socket-client socket.io-client`

## Usage

In your AppModule file:

```ts
import { Module } from '@nestjs/common';
import { SocketIoClientModule } from '@ruso/nestjs-socket-client';

@Module({
	imports: [
		SocketIoClientModule.forRoot({
			url: 'ws://localhost'
			// ... options for the client
			// https://socket.io/docs/v4/client-api/#new-Manager-url-options
		})
	]
})
export class AppModule {}
```

For asyncrounous configuration use `forRootAsync()`:

```ts
import { Module } from '@nestjs/common';
import { SocketIoClientModule } from '@ruso/nestjs-socket-client';

@Module({
	imports: [
		SocketIoClientModule.forRootAsync({
			import: [ConfigModule],
			useFactory: (config: ConfigService) => ({
				url: config.get('SOCKET_IO_URL')
				// ... options for the client
				// https://socket.io/docs/v4/client-api/#new-Manager-url-options
			}),
			injectable: [ConfigService]
		})
	]
})
export class AppModule {}
```

And in your service:

```ts
import { Injectable, Inject, Logger } from '@nestjs/common';
import { SocketIoClientModule, OnSocketEvent, SOCKET_IO_CLIENT } from '@ruso/nestjs-socket-client';
import { Socket } from 'socket.io-client';

@Injectable()
export class Service {
	private logger = new Logger('Service');

	/**
	 * Inject the socket instance and use it's methods this way:
	 */
	constructor(@Inject(SOCKET_IO_CLIENT) private readonly socket: Socket) {}

	@OnSocketEvent('connect')
	onConnect() {
		this.logger.log('Successfully connected the socket.io server!');
	}
}
```

## Thanks

This repository is an extended version of [another project](https://github.com/danocmx/nestjs-socket.io-client) built by [@danocmx](https://github.com/danocmx), so special thanks to him for this contribution.

## Author

Ruslan Gonzalez

- Twitter: [@ruslangonzalez](https://twitter.com/ruslangonzalez)
- GitHub: [@ruslanguns](https://github.com/ruslanguns)
npm package: @rusoft/dialog-esms
Description: Dialog eSMS API SDK for Node.js and React Native
Author: Rumesh Weerasinghe
Latest version: 1.0.3


# @rusoft/dialog-esms

Dialog eSMS API SDK for **Node.js** and **React Native**.  
Provides a simple wrapper for authentication, sending SMS, checking campaign status, and balance queries.

---

## Installation
```bash
npm install @rusoft/dialog-esms

````
## Usage
````

import DialogESMS from '@rusoft/dialog-esms';

const client = new DialogESMS({
  username: "YOUR_USERNAME",
  password: "YOUR_PASSWORD"
});

async function run() {
  // Authenticate
  const auth = await client.login();
  console.log("Logged in:", auth.status);

  // Send SMS
  const smsRes = await client.sendSMS({
    msisdn: [{ mobile: "9477xxxxxxx" }],
    sourceAddress: "YOURMASK",
    message: "Hello from Dialog eSMS API",
    transaction_id: 1001,
    payment_method: 0,
    push_notification_url: "https://your-server.com/dlr"
  });
  console.log("SMS response:", smsRes);

  // Check campaign
  const status = await client.checkCampaign(1001);
  console.log("Campaign status:", status);

  // Balance check (URL flow)
  const balance = await client.checkBalance("YOUR_ESMSQK");
  console.log("Balance:", balance);
}
run();


````
## API

````

new DialogESMS({ baseUrl, username, password })

baseUrl (optional): defaults to https://esms.dialog.lk

username: your Dialog eSMS username

password: your Dialog eSMS password

````

## login()
````
Authenticates and stores the bearer token.
````
## sendSMS(payload)
````
Send SMS to one or more recipients.
````
## checkCampaign(transactionId)
````
Check status of a campaign by transaction ID.
````
## checkBalance(esmsqk)
````
Check wallet/package balance for URL-based flow.
````
## Notes
````
Default base URL is https://esms.dialog.lk

Auth path is /api/v2/user/login

Requires a valid Dialog eSMS account with API access enabled.
````
## Developed

[Rumesh Weerasighe](https://rumeshweerasinghe.com 'RW') in [AdsStore](https://adsstore.lk 'AdsStore')
npm package: @russ-b/gitlab-downloader
Description: A CLI tool to download GitLab repositories with filtering options
Author: Russ Balabanov
Latest version: 1.2.0

# GitLab Downloader

GitLab Downloader is a CLI tool to download GitLab repositories with filtering options. It allows you to specify which folders to include or exclude during the download process.

## Installation

To install the GitLab Downloader, you can use npm:

```sh
npm install @russ-b/gitlab-downloader
```

## Usage

You can use the GitLab Downloader by running the following command:

```sh
gitlab-downloader --token <your_gitlab_token> --hostUrl <gitlab_host_url> --projectId <project_id> [options]
```

### Options

- `--token, -t` (required): GitLab Personal Access Token (PAT). Default: `process.env.REPOSITORY_TOKEN`
- `--hostUrl, -u` (required): GitLab host URL.
- `--projectId, -p` (required): GitLab Numeric Project ID.
- `--branch, -b`: Branch name. Default: `master`.
- `--includeOnly, -i`: Comma-separated list of folders to include.
- `--dir, -d`: Directory to download files to. Default: current directory.

### Example

```sh
gitlab-downloader --token your_token --hostUrl https://gitlab.com --projectId 123456 --branch develop --includeOnly src,docs --dir ./downloads
```