# lotion-connect

> browser-friendly lotion light client

Latest version **0.1.22** (published 2019-05-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install lotion-connect
pnpm add lotion-connect
yarn add lotion-connect
bun add lotion-connect
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.22 |
| Published | 2019-05-11 |
| First published | 2018-04-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Judd Keppel |
| Maintainers | kep |

## Links

- npm: https://www.npmjs.com/package/lotion-connect
- npm.io page: https://npm.io/package/lotion-connect

## Dependencies (9)

- [merk](https://npm.io/package/merk.md) 1.3.9
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [proxmise](https://npm.io/package/proxmise.md) ^1.0.0
- [varstruct](https://npm.io/package/varstruct.md) ^6.1.2
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [tendermint](https://npm.io/package/tendermint.md) ^4.0.5
- [create-hash](https://npm.io/package/create-hash.md) ^1.2.0
- [discovery-channel](https://npm.io/package/discovery-channel.md) ^5.5.1
- [deterministic-json](https://npm.io/package/deterministic-json.md) ^1.0.5

## Recent versions

- 0.1.22 (latest) — 2019-05-11
- 0.1.21 — 2019-05-09
- 0.1.20 — 2019-05-08
- 0.1.19 — 2019-05-07
- 0.1.18 — 2019-05-07
- 0.1.17 — 2019-05-04
- 0.1.16 — 2019-05-04
- 0.1.15 — 2019-04-30
- 0.1.14 — 2019-02-08
- 0.1.13 — 2019-02-08
- 0.1.12 — 2019-02-06
- 0.1.11 — 2019-02-06
- 0.1.10 — 2019-02-06
- 0.1.9 — 2019-01-15
- 0.1.8 — 2018-12-21
- … 9 more at https://npm.io/package/lotion-connect/versions

## README

# lotion-connect

The [Lotion](https://github.com/keppel/lotion) `connect()` API in a standalone, browser-friendly module.

## Installation

```bash
$ npm install lotion-connect
```

## Usage

Connecting by GCI isn't supported in this module just yet, so for now, connect to your app like this:

```js
let connect = require('lotion-connect')

let { state, send } = await connect(null, { 
  genesis: require('./genesis.json'),
  nodes: [ 'ws://localhost:46657' ]
})

console.log(await state)
console.log(await send({ foo: 'bar' }))
```

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