# lightning-hackday-slashtags-pay

> ## Install

Latest version **1.4.0** (published 2022-02-26) · 0 weekly downloads

## Install

```sh
npm install lightning-hackday-slashtags-pay
pnpm add lightning-hackday-slashtags-pay
yarn add lightning-hackday-slashtags-pay
bun add lightning-hackday-slashtags-pay
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2022-02-26 |
| First published | 2022-02-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nzh |

## Links

- npm: https://www.npmjs.com/package/lightning-hackday-slashtags-pay
- npm.io page: https://npm.io/package/lightning-hackday-slashtags-pay

## Dependencies (11)

- [b4a](https://npm.io/package/b4a.md) ^1.3.1
- [chalk](https://npm.io/package/chalk.md) ^5.0.0
- [corestore](https://npm.io/package/corestore.md) ^6.0.1-alpha.9
- [hyperswarm](https://npm.io/package/hyperswarm.md) ^3.0.1
- [log-update](https://npm.io/package/log-update.md) ^5.0.0
- [cli-spinners](https://npm.io/package/cli-spinners.md) ^2.6.1
- [multiformats](https://npm.io/package/multiformats.md) ^9.6.4
- [dht-universal](https://npm.io/package/dht-universal.md) ^0.3.2
- [random-access-memory](https://npm.io/package/random-access-memory.md) ^4.0.0
- [@synonymdev/slashtags-common](https://npm.io/package/@synonymdev/slashtags-common.md) ^0.2.1
- [lightning-hackday-slashtags-pay](https://npm.io/package/lightning-hackday-slashtags-pay.md) ^1.1.0

## Recent versions

- 1.4.0 (latest) — 2022-02-26
- 1.3.0 — 2022-02-26
- 1.2.0 — 2022-02-26
- 1.1.0 — 2022-02-26
- 1.0.0 — 2022-02-26

## README

# lightning-hackday-slashtags-pay

## Install

```
npm i lightning-hackday-slashtags-pay
```

## Usage

### Server side

```js
import { slashtagsPayServer } from './index.js';

const lnNodeResponse = (request = { amount: 100, description: 'foo' }) => {
  console.log('got request', request);
  return 'this is an ln invoice for ' + JSON.stringify(request);
};

const slashtag = slahtagsPayServer(lnNodeResponse);
```

### Client side

```js
import { slashtagsPayClient } from './index.js';
// Pass the slashtag to the client side somehow
const response = await slashtagsPayClient(slashtag);
```

---
_Source: https://npm.io/package/lightning-hackday-slashtags-pay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
