# rxify-class

> Decorates an existing class with methods supporting Rxjs. No more ugly callback functions :). In contrast to other modules you can wrap a whole class in one go, specifying the methods you want to decorate.

Latest version **1.0.8** (published 2020-02-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install rxify-class
pnpm add rxify-class
yarn add rxify-class
bun add rxify-class
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2020-02-18 |
| First published | 2018-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sebastian Landwehr |
| Maintainers | dword-design |
| Keywords | class, rxify, rxjs |

## Links

- npm: https://www.npmjs.com/package/rxify-class
- Repository: https://github.com/dword-design/rxify-class
- Homepage: https://github.com/dword-design/rxify-class#readme
- Issues: https://github.com/dword-design/rxify-class/issues
- npm.io page: https://npm.io/package/rxify-class

## Dependencies (1)

- [rx](https://npm.io/package/rx.md) ^4.1.0

## Recent versions

- 1.0.8 (latest) — 2020-02-18
- 1.0.7 — 2020-02-06
- 1.0.6 — 2020-02-05
- 1.0.5 — 2020-01-01
- 1.0.4 — 2019-12-12
- 1.0.3 — 2019-12-04
- 1.0.2 — 2019-11-25
- 1.0.1 — 2019-10-31
- 0.1.6 — 2019-10-27
- 0.1.5 — 2019-10-26
- 0.1.4 — 2018-03-23
- 0.1.3 — 2018-03-23
- 0.1.2 — 2018-03-23
- 0.1.1 — 2018-03-23
- 0.1.0 — 2018-03-23

## README

<!-- TITLE/ -->
# rxify-class
<!-- /TITLE -->

<!-- BADGES/ -->
[![NPM version](https://img.shields.io/npm/v/rxify-class.svg)](https://npmjs.org/package/rxify-class)
![Linux macOS Windows compatible](https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue)

[![Build status](https://img.shields.io/github/workflow/status/dword-design/rxify-class/build)](https://github.com/dword-design/rxify-class/actions)
[![Coverage status](https://img.shields.io/coveralls/dword-design/rxify-class)](https://coveralls.io/github/dword-design/rxify-class)
[![Dependency status](https://img.shields.io/david/dword-design/rxify-class)](https://david-dm.org/dword-design/rxify-class)
![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen)

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/dword-design/rxify-class)
<!-- /BADGES -->

<!-- DESCRIPTION/ -->
Decorates an existing class with methods supporting Rxjs. No more ugly callback functions :). In contrast to other modules you can wrap a whole class in one go, specifying the methods you want to decorate.
<!-- /DESCRIPTION -->

<!-- INSTALL/ -->
# Install

```bash
# NPM
$ npm install rxify-class

# Yarn
$ yarn add rxify-class
```
<!-- /INSTALL -->

## Usage

Example with in-memory MongoDB:

```js
const rxifyClass = require('rxify-class');

const MongoInMemory = rxifyClass(
  require('mongo-in-memory'),
  ['start', 'getConnection']
);

var mongoInMemory = new MongoInMemory(8000);
mongoInMemory.start().subscribe(config => {
  mongoInMemory.getConnection('test').subscribe(client => {
    ...
  });
});
```

<!-- LICENSE/ -->
# License

Unless stated otherwise all works are:

Copyright &copy; Sebastian Landwehr <info@dword-design.de>

and licensed under:

[MIT License](https://opensource.org/licenses/MIT)
<!-- /LICENSE -->

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