# rxlize

> Rxlize is a library for manage state, asynchronous task and others actions in reactive (RxJS) way.

Latest version **0.4.0** (published 2021-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install rxlize
pnpm add rxlize
yarn add rxlize
bun add rxlize
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2021-07-09 |
| First published | 2020-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 610.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | t7yang |
| Maintainers | t7yang |
| Keywords | rxlize, rxjs, angular, state |

## Links

- npm: https://www.npmjs.com/package/rxlize
- Repository: https://github.com/t7yang/rxlize
- Issues: https://github.com/t7yang/rxlize/issues
- npm.io page: https://npm.io/package/rxlize

## Dependencies (2)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.12.5
- [@babel/runtime-corejs3](https://npm.io/package/@babel/runtime-corejs3.md) ^7.12.5

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 0.4.0 (latest) — 2021-07-09
- 0.5.0 (next) — 2021-08-05
- 0.3.1 — 2021-07-05
- 0.3.0 — 2021-02-20
- 0.2.0 — 2021-01-24
- 0.1.1 — 2021-01-18
- 0.1.0 — 2020-09-13
- 0.0.6 — 2020-09-10
- 0.0.2 — 2020-09-09
- 0.0.1 — 2020-09-09

## README

# Rxlize

Rxlize is a library for manage state, asynchronous task and others actions in reactive (RxJS) way.

## Install

```
npm install rxlize
```

```
yarn add rxlize
```

## Usage

### With NPM

Install Rxlize then import and don't forget to install peer dependency(ies).

### In browser

Make sure to load `rxjs` globally before loading `rxlize.min.js`.

## List of function

- State

  - `rxStore` -- Create a simple store that can dispatch action to update.
  - `rxToggle` -- Create a boolean state that provide `on`, `off`, `toggle`, `next` to change the state.

- Side Effect

  - `rxAsync` -- Handle an async process and provide loading state and error stream.
  - `rxNext` -- Special case of `rxAsync` which provide a default `Subject`.

- Angular
  - Lifecycle hooks
    - `RxNgHooks` - Decorate on a component property which is component lifecycle observable object.
    - `createRxNgHooks` - Create a component lifecycle observable object.
  - Input Property
    - `@RxNgInput` - Decorate on a component property which is component `@Input` properties observable object.
    - `createRxNgInput` - Helper function to create RxInput observable object.

## Cautions

This is a preview version, functions in this library not yet cover by test and signature may change from time to time, so take your own risk to use.

### Angular

- `@angular/cli` may generate warning message about `CommonJS or AMD dependencies can cause optimization bailouts.` on building, This because `@babel/runtime-corejs3` export only with CommonJS module.

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