open-index/open-npm huggingface dataset:
npm package: @satsczar/telegraf-command-parts
Description: Command Parts Splitter for Telegraf
Author: Samuel Kaiser
Latest version: 1.0.5

# Command Parts for Telegraf

This module is a plugin for the [Telegraf](http://telegraf.js.org/) Telegram
Bot Framework.

It provides a middleware that splits a command in a Telegram text message to
its parts. These parts are stored in `ctx.state.command`.

For example, if your text message is `/start@yourbot Hello world!`, the
`ctx.state.command` holds the following properties:

- `text` '/start@yourbot Hello world!'
- `command` 'start'
- `bot` 'yourbot'
- `args` 'Hello world!'
- `splitArgs` ['Hello', 'world!']

## installation

To use this module in your Telegraf app, require it and pass it to app.use.

```javascript
const commandParts = require('@satsczar/telegraf-command-parts');

app.use(commandParts());
```
npm package: @satsterminal-sdk/bridge
Description: Bridge module for the SatsTerminal SDK
Latest version: 1.6.27

# @satsterminal-sdk/bridge

Bridge module for SatsTerminal (V2). Provides helpers to request deposit addresses, submit bridge proofs, and fetch activity.

## Install

```bash
npm install @satsterminal-sdk/bridge
# or via aggregator:
npm install satsterminal-sdk
```

## Usage

```ts
import { BridgeSDK } from '@satsterminal-sdk/bridge';

const bridge = new BridgeSDK({ apiKey: process.env.API_KEY! });

const btcAddr = await bridge.getBTCDepositAddress({
  userPublicKey: '0x...',
  runeId: '840000:3',
  amount: '1000000',
});
```
npm package: @satsterminal-sdk/swaps
Description: Swaps module for the SatsTerminal SDK
Latest version: 1.6.27

# @satsterminal-sdk/swaps

Swaps-only client for the SatsTerminal platform. Existing `SatsTerminal` usage works unchanged; new consumers can import this package directly for a slimmer install.

## Installation

```bash
npm install @satsterminal-sdk/swaps
# or use the aggregator if you also need borrow/bridge:
npm install satsterminal-sdk
```

## Usage (swaps only)

```typescript
import { SatsTerminal } from '@satsterminal-sdk/swaps';

const swaps = new SatsTerminal({ apiKey: process.env.API_KEY! });
const quote = await swaps.swapQuote({
  amount: '0.001',
  fromToken: 'BTC',
  toToken: 'USDC',
  address: 'bc1...',
  protocol: 'runes',
  params: {}
});
```

## Usage via aggregator

```typescript
import { createClient } from 'satsterminal-sdk';

const { swaps } = createClient({ apiKey: process.env.API_KEY! });
const result = await swaps.fetchQuote({ /* ... */ });
```

## Exports
- `SatsTerminal` (class)
- `createSwapsClient(config)` helper
- All swaps-related types