# nestjs-nats

> NestJS module integrating Nats

Latest version **1.1.0** (published 2020-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install nestjs-nats
pnpm add nestjs-nats
yarn add nestjs-nats
bun add nestjs-nats
```

## 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.1.0 |
| Published | 2020-07-03 |
| First published | 2020-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Robert Dz |
| Maintainers | dev-lightwaverf |
| Keywords | nestjs |

## Links

- npm: https://www.npmjs.com/package/nestjs-nats
- npm.io page: https://npm.io/package/nestjs-nats

## Dependencies (1)

- [ts-nats](https://npm.io/package/ts-nats.md) ^1.2.15

## Recent versions

- 1.1.0 (latest) — 2020-07-03
- 1.0.0 — 2020-07-03

## README

<h1 align="center"></h1>

<div align="center">
  <a href="http://nestjs.com/" target="_blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="150" alt="Nest Logo" />
  </a>
</div>

<h3 align="center">A module for utilizing ts-nats with NestJs</h3>

### Installation

> npm install nestjs-nats

(or yarn equivalent)

### About Nats

This module is a thin layer on top of the [NatsJS library](https://natsjs.org/).

### Quick Start

To configure your NATS connection, import the `Nats` module using the familiar `register()` / `registerAsync()` pattern. Basically, you configure the module with at least a `options` object. These options objects map directly to the connection, configuration, and driver options [in the ts-nats docs](https://nats-io.github.io/nats.ts/).

Once configured, inject the `SINGLETON` connection object into any service using the `NATS_CONNECTION` injection token.

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