# dwarf-client

> gRPC Dwarf node client.

Latest version **1.0.7** (published 2019-10-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install dwarf-client
pnpm add dwarf-client
yarn add dwarf-client
bun add dwarf-client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-10-03 |
| First published | 2018-09-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | psaia, rafaelgou |

## Links

- npm: https://www.npmjs.com/package/dwarf-client
- npm.io page: https://npm.io/package/dwarf-client

## Dependencies (2)

- [grpc](https://npm.io/package/grpc.md) ^1.15.1
- [@grpc/proto-loader](https://npm.io/package/@grpc/proto-loader.md) ^0.3.0

## Recent versions

- 1.0.7 (latest) — 2019-10-03
- 1.0.6 — 2019-10-03
- 1.0.5 — 2019-06-25
- 1.0.4 — 2019-06-25
- 1.0.3 — 2018-09-30
- 1.0.2 — 2018-09-30
- 1.0.1 — 2018-09-30
- 1.0.0 — 2018-09-29

## README

# gRPC client for Dwarf

Use with [dwarf](https://github.com/LevInteractive/dwarf) microservice on a node web server.
Use `DWARF_GRPC_SERVER` env var to set the gRPC server.

```typescript
import { shorten } from "dwarf-client";

async function main() {
  try {
    const shortenedUrls = await shorten(["http://google.com", "http://whatever.com"]);
    console.log(shortenedUrls); // -> { urls: ["short-link-1", "short-link-2"] }
  } catch (err) {
    console.error(err);
  }
}
```

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